Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

IntelibTypeId Class Reference

#include <sexpress.hpp>

Collaboration diagram for IntelibTypeId:

Collaboration graph
[legend]
List of all members.

Detailed Description

S-expression type identificators.

The class is used to identify types of S-expressions at runtime. Each descender of SExpression declares a public static member of the IntelibTypeId type to be the identifier of the given type of S-expression. It is named TypeId. So SExpressionInt::TypeId identifies integer S-expressions, SExpressionCons::TypeId - dotted pairs etc.

Definition at line 113 of file sexpress.hpp.

Public Member Functions

 IntelibTypeId ()
 The default constructor.
 IntelibTypeId (const IntelibTypeId *previous)
 This for inherits changeability from the base class.
 IntelibTypeId (const IntelibTypeId *previous, bool a_changeable)
 The most general constructor.
 ~IntelibTypeId ()
 The destructor.
const IntelibTypeIdPrev () const
 Get the pointer to the superclass' identifier.
bool IsSubtypeOf (const IntelibTypeId &op) const
 Searches the chain of supertypes.
bool operator== (const IntelibTypeId &op) const
 Comparision.
bool operator!= (const IntelibTypeId &op) const
 Comparision.
bool IsChangeable () const
 Changeability.


Constructor & Destructor Documentation

IntelibTypeId::IntelibTypeId  ) 
 

The default constructor.

Only used for SExpression::TypeId

Definition at line 120 of file sexpress.hpp.

IntelibTypeId::IntelibTypeId const IntelibTypeId previous  ) 
 

This for inherits changeability from the base class.

Definition at line 123 of file sexpress.hpp.

IntelibTypeId::IntelibTypeId const IntelibTypeId previous,
bool  a_changeable
 

The most general constructor.

Definition at line 126 of file sexpress.hpp.

IntelibTypeId::~IntelibTypeId  ) 
 

The destructor.

Definition at line 129 of file sexpress.hpp.


Member Function Documentation

const IntelibTypeId* IntelibTypeId::Prev  )  const
 

Get the pointer to the superclass' identifier.

Definition at line 132 of file sexpress.hpp.

bool IntelibTypeId::IsSubtypeOf const IntelibTypeId op  )  const
 

Searches the chain of supertypes.

Referenced by SReference::DynamicCastGetPtr().

bool IntelibTypeId::operator== const IntelibTypeId op  )  const
 

Comparision.

Definition at line 137 of file sexpress.hpp.

bool IntelibTypeId::operator!= const IntelibTypeId op  )  const
 

Comparision.

Definition at line 140 of file sexpress.hpp.

bool IntelibTypeId::IsChangeable  )  const
 

Changeability.

Definition at line 144 of file sexpress.hpp.

Referenced by SExpression::IsChangeable().


The documentation for this class was generated from the following file:
Generated on Tue Dec 18 00:41:50 2007 for InteLib by  doxygen 1.4.1