Main Page   Class Hierarchy   Compound List   File List   Compound Members  

RTTIType Class Reference

#include <type.h>

Inheritance diagram for RTTIType:

RTTIArrayType RTTIClassDescriptor RTTIDerivedType RTTIMethodType RTTIPtrType List of all members.

Public Types

enum  TypeTag {
  RTTI_UNKNOWN, RTTI_VOID, RTTI_CHAR, RTTI_UCHAR,
  RTTI_SCHAR, RTTI_SHORT, RTTI_USHORT, RTTI_INT,
  RTTI_UINT, RTTI_LONG, RTTI_ULONG, RTTI_FLOAT,
  RTTI_DOUBLE, RTTI_BOOL, RTTI_ARRAY, RTTI_STRUCT,
  RTTI_PTR, RTTI_DERIVED, RTTI_METHOD
}

Public Methods

int getTag ()
virtual void getTypeName (char *buf)
bool isBuiltin ()
bool isScalar ()
bool isArray ()
bool isPointer ()
bool isClass ()
bool isBaseClass ()
 ~RTTIType ()

Static Public Attributes

RTTIType voidType
RTTIType charType
RTTIType ucharType
RTTIType scharType
RTTIType shortType
RTTIType ushortType
RTTIType intType
RTTIType uintType
RTTIType longType
RTTIType ulongType
RTTIType floatType
RTTIType doubleType
RTTIType boolType
RTTIType unknownType

Protected Methods

void destroy ()
 RTTIType (int tag)

Protected Attributes

int tag

Friends

class RTTIClassDescriptor
class RTTIFieldDescriptor
class RTTIMethodDescriptor

Detailed Description

Class representing type


Constructor & Destructor Documentation

RTTIType::~RTTIType  
 

Type descructor


Member Function Documentation

int RTTIType::getTag   [inline]
 

Get type tag

Returns:
one of TypeTag enumaration constants

virtual void RTTIType::getTypeName char *    buf [virtual]
 

Get name of the type as it is written in C, for example (char*, int[10])

Parameters:
buf  buffer to which type name will be printed

Reimplemented in RTTIClassDescriptor, RTTIPtrType, RTTIArrayType, RTTIDerivedType, and RTTIMethodType.

bool RTTIType::isArray   [inline]
 

Checks whether it is array type

bool RTTIType::isBaseClass   [inline]
 

Checks whether type represents inhertited base class

bool RTTIType::isBuiltin   [inline]
 

Checks whether it is built-in type

bool RTTIType::isClass   [inline]
 

Checks whether it is class or struct type

bool RTTIType::isPointer   [inline]
 

Checks whether it is pointer type

bool RTTIType::isScalar   [inline]
 

Checks whether it is integer of floating point type


The documentation for this class was generated from the following file:
Generated on Fri Apr 26 17:39:24 2002 for CppReflection by doxygen1.2.15