doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Public Attributes | Private Attributes | Friends | List of all members
idVarDef Class Reference

#include <Script_Program.h>

Public Types

enum  initialized_t { uninitialized, initializedVariable, initializedConstant, stackVariable }
 

Public Member Functions

 idVarDef (idTypeDef *typeptr=NULL)
 
 ~idVarDef ()
 
const char * Name (void) const
 
const char * GlobalName (void) const
 
void SetTypeDef (idTypeDef *_type)
 
idTypeDefTypeDef (void) const
 
etype_t Type (void) const
 
int DepthOfScope (const idVarDef *otherScope) const
 
void SetFunction (function_t *func)
 
void SetObject (idScriptObject *object)
 
void SetValue (const eval_t &value, bool constant)
 
void SetString (const char *string, bool constant)
 
idVarDefNext (void) const
 
void PrintInfo (idFile *file, int instructionPointer) const
 

Public Attributes

int num
 
varEval_t value
 
idVarDefscope
 
int numUsers
 
initialized_t initialized
 

Private Attributes

idTypeDeftypeDef
 
idVarDefNamename
 
idVarDefnext
 

Friends

class idVarDefName
 

Detailed Description

Definition at line 325 of file Script_Program.h.

Member Enumeration Documentation

Enumerator
uninitialized 
initializedVariable 
initializedConstant 
stackVariable 

Definition at line 334 of file Script_Program.h.

Constructor & Destructor Documentation

idVarDef::idVarDef ( idTypeDef typeptr = NULL)

Definition at line 564 of file Script_Program.cpp.

idVarDef::~idVarDef ( )

Definition at line 580 of file Script_Program.cpp.

Member Function Documentation

int idVarDef::DepthOfScope ( const idVarDef otherScope) const

Definition at line 613 of file Script_Program.cpp.

const char * idVarDef::GlobalName ( void  ) const

Definition at line 600 of file Script_Program.cpp.

const char * idVarDef::Name ( void  ) const

Definition at line 591 of file Script_Program.cpp.

idVarDef* idVarDef::Next ( void  ) const
inline

Definition at line 358 of file Script_Program.h.

void idVarDef::PrintInfo ( idFile file,
int  instructionPointer 
) const

Definition at line 737 of file Script_Program.cpp.

void idVarDef::SetFunction ( function_t func)

Definition at line 633 of file Script_Program.cpp.

void idVarDef::SetObject ( idScriptObject object)

Definition at line 645 of file Script_Program.cpp.

void idVarDef::SetString ( const char *  string,
bool  constant 
)

Definition at line 721 of file Script_Program.cpp.

void idVarDef::SetTypeDef ( idTypeDef _type)
inline

Definition at line 347 of file Script_Program.h.

void idVarDef::SetValue ( const eval_t value,
bool  constant 
)

Definition at line 657 of file Script_Program.cpp.

etype_t idVarDef::Type ( void  ) const
inline

Definition at line 349 of file Script_Program.h.

idTypeDef* idVarDef::TypeDef ( void  ) const
inline

Definition at line 348 of file Script_Program.h.

Friends And Related Function Documentation

friend class idVarDefName
friend

Definition at line 326 of file Script_Program.h.

Member Data Documentation

initialized_t idVarDef::initialized

Definition at line 338 of file Script_Program.h.

idVarDefName* idVarDef::name
private

Definition at line 364 of file Script_Program.h.

idVarDef* idVarDef::next
private

Definition at line 365 of file Script_Program.h.

int idVarDef::num

Definition at line 329 of file Script_Program.h.

int idVarDef::numUsers

Definition at line 332 of file Script_Program.h.

idVarDef* idVarDef::scope

Definition at line 331 of file Script_Program.h.

idTypeDef* idVarDef::typeDef
private

Definition at line 363 of file Script_Program.h.

varEval_t idVarDef::value

Definition at line 330 of file Script_Program.h.


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