#include <vartype.h>
Collaboration diagram for VM::VarType:
Public Types | |
enum | ID { Unknown = 0, Byte, Short, Int, Long, Flt, Dbl, Ptr } |
Public Member Functions | |
VarType () | |
Construct "unknown" (non-array) var type. | |
VarType (ID _id, uint8 _array) | |
Construct passed var type. | |
VarType (const VarType &vt) | |
Copy var type. | |
~VarType () | |
Destructor: A no-op. | |
VarType & | operator= (const VarType &vt) |
Assign a var type. | |
bool | operator== (const VarType &vt) const |
Compare var types. | |
bool | operator!= (const VarType &vt) const |
Compare var types. | |
bool | IsPointerType () const |
Is this a pointer type (array or Ptr)? | |
TLString | TypeString () const |
Returns string representation of type information. | |
Public Attributes | |
ID | id: 8 |
Type of the variable, or, if array is set, of the elems. | |
uint8 | array |
Array? (0/1). |
This class is C++-safe.
Definition at line 46 of file vartype.h.
|
|
|
Construct "unknown" (non-array) var type.
|
|
Construct passed var type.
Definition at line 66 of file vartype.h. References uint8. |
|
Copy var type.
|
|
Destructor: A no-op.
|
|
Is this a pointer type (array or Ptr)?
Definition at line 84 of file vartype.h. Referenced by VM::VMLinker::_MergeNamespaceInfo_Recursive(), VM::AssemblerFile_Plaintext::_ParseSymbols_Class_Size(), and VM::AssemblerFile_Plaintext::_WriteSymbols_Recursive(). |
|
Compare var types.
|
|
Assign a var type.
|
|
Compare var types.
|
|
Returns string representation of type information.
Definition at line 23 of file vartype.cc. References array, TLString::assign(), Byte, Dbl, Flt, id, Int, Long, Ptr, Short, and Unknown. Referenced by VM::AssemblerFile_Plaintext::_WriteSymbols_Recursive(), VM::NamespaceInfo::DumpTree(), and VM::ClassInfo::DumpTree(). |
|
Array? (0/1).
Definition at line 61 of file vartype.h. Referenced by VM::AssemblerFile_Plaintext::_ParseVarType(), operator!=(), operator=(), operator==(), and TypeString(). |
|
Type of the variable, or, if array is set, of the elems.
Definition at line 60 of file vartype.h. Referenced by VM::AssemblerFile_Plaintext::_ParseVarType(), operator!=(), operator=(), operator==(), and TypeString(). |