Inexor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
tagval Struct Reference

#include <command.hpp>

Inheritance diagram for tagval:
identval nullval

Public Member Functions

void setint (int val)
 
void setfloat (float val)
 
void setstr (char *val)
 
void setnull ()
 
void setcode (const uint *val)
 
void setmacro (const uint *val)
 
void setident (ident *val)
 
const char * getstr () const
 
int getint () const
 
float getfloat () const
 
bool getbool () const
 
void cleanup ()
 

Public Attributes

int type
 
union {
int i
 
float f
 
char * s
 
const uintcode
 
identid
 
}; 
 

Member Function Documentation

void tagval::cleanup ( )

References freearg().

bool tagval::getbool ( ) const
float tagval::getfloat ( ) const
inline

References getfloat(), and type.

int tagval::getint ( ) const
inline

References getint(), and type.

Referenced by at(), and execute().

const char * tagval::getstr ( ) const
inline

References getstr(), and type.

Referenced by at(), format(), loopconc(), and looplistconc().

void tagval::setcode ( const uint val)
inline

References type, and VAL_CODE.

Referenced by callcommand(), and runcode().

void tagval::setfloat ( float  val)
inline
void tagval::setident ( ident val)
inline

References type, and VAL_IDENT.

Referenced by callcommand(), forceident(), and runcode().

void tagval::setint ( int  val)
inline
void tagval::setmacro ( const uint val)
inline

References type, and VAL_MACRO.

Referenced by runcode().

void tagval::setnull ( )
inline

References type, and VAL_NULL.

Referenced by callcommand(), forcenull(), ident::getval(), and runcode().

void tagval::setstr ( char *  val)
inline

Member Data Documentation

union { ... }
int tagval::type

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