BIE::BasicType Class Reference

Type descriptors for basic types: string, real, integer, and boolean. More...

#include <BasicType.h>

Inheritance diagram for BIE::BasicType:
Collaboration diagram for BIE::BasicType:

List of all members.

Public Member Functions

 BasicType (string newtypename)
 Constructs a new type with the given name.
bool equals (BasicType *type)
 Checks if two types are equal.
string toString ()
 Returns a string describing the type.
string getTypeName ()
 The string representing the type name.
bool isArrayType ()
 The string representing the type name.

Static Public Attributes

static BasicTypeString
 The object representing the string type.
static BasicTypeInt
 The object representing the int type.
static BasicTypeReal
 The object representing the real type.
static BasicTypeBool
 The object representing the bool type.

Protected Attributes

string type_name
 Name of the type set by constructor.
bool isArray
 Is it ArrayType?

Static Protected Attributes

static BasicType StringObj
 The objects that the publically available types point to.
static BasicType IntObj
static BasicType RealObj
static BasicType BoolObj

Friends

class boost::serialization::access


Detailed Description

Type descriptors for basic types: string, real, integer, and boolean.

In CLI, there are keywords describing these types: string, int, real and bool.

See also:
RecordType

Constructor & Destructor Documentation

BIE::BasicType::BasicType ( string  newtypename  ) 

Constructs a new type with the given name.

This is just a label used for printing/debugging purposes. All the standard types are defined as static (class) variables, so this constructor is should generally not be used.


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

Send suggestions, questions, and feedback to WEINBERG at ASTRO dot UMASS dot EDU.
Documentation generated at Fri Mar 26 00:35:12 2010 by doxygen