Planeshift
Public Member Functions | Protected Types | Protected Attributes

MathVar Class Reference

This holds information about a specific variable in a specific MathEnvironment to be used for MathScripts and allows setting/retrieving all data related to it. More...

#include <mathscript.h>

List of all members.

Public Member Functions

csString Dump () const
iScriptableVarGetObject () const
int GetRoundValue () const
csString GetString () const
double GetValue () const
 MathVar (MathEnvironment *parent)
void SetChangedCallback (MathScriptVarCallback callback, void *arg)
void SetObject (iScriptableVar *p)
void SetString (const char *p)
void SetValue (double v)
csString ToString () const
MathType Type () const

Protected Types

typedef void(* MathScriptVarCallback )(void *arg)

Protected Attributes

MathScriptVarCallback changedVarCallback
void * changedVarCallbackArg
MathEnvironmentparent
double value

Detailed Description

This holds information about a specific variable in a specific MathEnvironment to be used for MathScripts and allows setting/retrieving all data related to it.

Definition at line 270 of file mathscript.h.


Member Typedef Documentation

typedef void(* MathVar::MathScriptVarCallback)(void *arg) [protected]

Definition at line 276 of file mathscript.h.


Constructor & Destructor Documentation

MathVar::MathVar ( MathEnvironment parent) [inline]

Definition at line 281 of file mathscript.h.


Member Function Documentation

csString MathVar::Dump ( ) const
iScriptableVar* MathVar::GetObject ( ) const [inline]

Definition at line 309 of file mathscript.h.

int MathVar::GetRoundValue ( ) const [inline]

Definition at line 299 of file mathscript.h.

csString MathVar::GetString ( ) const [inline]

Definition at line 314 of file mathscript.h.

double MathVar::GetValue ( ) const [inline]

Definition at line 304 of file mathscript.h.

void MathVar::SetChangedCallback ( MathScriptVarCallback  callback,
void *  arg 
) [inline]

Definition at line 287 of file mathscript.h.

void MathVar::SetObject ( iScriptableVar p)
void MathVar::SetString ( const char *  p)
void MathVar::SetValue ( double  v)
csString MathVar::ToString ( ) const
MathType MathVar::Type ( ) const

Member Data Documentation

Definition at line 277 of file mathscript.h.

void* MathVar::changedVarCallbackArg [protected]

Definition at line 278 of file mathscript.h.

Definition at line 274 of file mathscript.h.

double MathVar::value [protected]

Definition at line 273 of file mathscript.h.


The documentation for this class was generated from the following file: