Type Class Reference

#include <Type.h>

List of all members.

Public Types

 T_VOID = 0
 T_BYTE
 T_WORD
 T_DWORD
 T_STRING
 T_PID
 T_VAR
 T_LIST
 T_SLIST
 T_STRPTR
 T_INVALID
enum  ttype {
  T_VOID = 0, T_BYTE, T_WORD, T_DWORD,
  T_STRING, T_PID, T_VAR, T_LIST,
  T_SLIST, T_STRPTR, T_INVALID
}

Public Member Functions

 Type (const ttype t)
 Type ()
Typeoperator= (const ttype t)
Typeoperator= (const Type &t)
bool operator== (const ttype t) const
bool operator!= (const ttype t) const
bool operator== (const Type &t) const
bool operator!= (const Type &t) const
ttype type () const
const char * name () const
uint32 size () const
void print_unk (Console &o) const

Private Attributes

ttype _type

Static Private Attributes

static const char *const _namearr []


Detailed Description

Definition at line 27 of file Type.h.


Member Enumeration Documentation

enum Type::ttype

Enumerator:
T_VOID 
T_BYTE 
T_WORD 
T_DWORD 
T_STRING 
T_PID 
T_VAR 
T_LIST 
T_SLIST 
T_STRPTR 
T_INVALID 

Definition at line 30 of file Type.h.


Constructor & Destructor Documentation

Type::Type ( const ttype  t  )  [inline]

Definition at line 33 of file Type.h.

Type::Type (  )  [inline]

Definition at line 34 of file Type.h.


Member Function Documentation

const char* Type::name (  )  const [inline]

Definition at line 51 of file Type.h.

References _namearr, and _type.

Referenced by DCCallNode::print_extern_unk(), and print_unk().

bool Type::operator!= ( const Type t  )  const [inline]

Definition at line 48 of file Type.h.

References _type.

bool Type::operator!= ( const ttype  t  )  const [inline]

Definition at line 46 of file Type.h.

Type& Type::operator= ( const Type t  )  [inline]

Definition at line 37 of file Type.h.

References _type.

Type& Type::operator= ( const ttype  t  )  [inline]

Definition at line 36 of file Type.h.

References _type.

bool Type::operator== ( const Type t  )  const [inline]

Definition at line 47 of file Type.h.

References _type.

bool Type::operator== ( const ttype  t  )  const [inline]

Definition at line 39 of file Type.h.

References _type, T_BYTE, and T_WORD.

void Type::print_unk ( Console o  )  const

Definition at line 35 of file Type.cpp.

References name(), and Console::Printf().

Referenced by DataType::print_type_unk(), and DCCallNode::print_unk().

uint32 Type::size (  )  const [inline]

Definition at line 52 of file Type.h.

References _type, T_BYTE, T_DWORD, T_INVALID, T_LIST, T_PID, T_SLIST, T_STRING, T_STRPTR, T_VAR, T_VOID, and T_WORD.

ttype Type::type (  )  const [inline]

Definition at line 50 of file Type.h.

References _type.

Referenced by PushVarNode::print_asm(), PopVarNode::print_asm(), PushVarNode::print_bin(), PopVarNode::print_bin(), DataType::print_value_asm(), DataType::print_value_bin(), and DataType::print_value_unk().


Member Data Documentation

const char *const Type::_namearr [static, private]

Initial value:

        { "void", "byte", "word", "dword",
          "string", "pid", "var", "list",
          "slist", "strptr", "invalid"
        }

Definition at line 75 of file Type.h.

Referenced by name().

ttype Type::_type [private]

Definition at line 74 of file Type.h.

Referenced by name(), operator!=(), operator=(), operator==(), size(), and type().


The documentation for this class was generated from the following files:
Generated on Fri Jul 27 22:30:04 2007 for pentagram by  doxygen 1.4.7