commore  1.0.6-SNAPSHOT
 All Classes Namespaces Functions Variables Typedefs Enumerations Pages
commore::Symbol Class Reference

#include <Symbol.h>

Public Member Functions

 Symbol (const AChar *name)
 
 Symbol (const AString &name)
 
 Symbol (const Symbol &name)
 
 Symbol (size_t num)
 
Symboloperator= (const Symbol &)
 
 operator const AString & () const
 
 operator const AChar * () const
 
 operator size_t () const
 
const AStringget_name () const
 
size_t get_num () const
 
bool operator== (const AChar *name) const
 
bool operator== (const AString &name) const
 
bool operator== (size_t num) const
 
bool operator!= (const AChar *name) const
 
bool operator!= (const AString &name) const
 
bool operator!= (size_t num) const
 
bool operator== (const Symbol &symbol) const
 
bool operator!= (const Symbol &symbol) const
 
bool operator< (const Symbol &symbol) const
 
bool operator> (const Symbol &symbol) const
 
int compare (const Symbol &s) const
 
bool is_ident () const
 
long read_xml (IBStream &i)
 
long write_xml (OBStream &o) const
 

Friends

class Tuple
 

Detailed Description

Constructor & Destructor Documentation

commore::Symbol::Symbol ( const AChar *  name)
Parameters
nameof the symbol
commore::Symbol::Symbol ( const AString name)
Parameters
nameof the symbol
commore::Symbol::Symbol ( size_t  num)
Parameters
numof the symbol

Member Function Documentation

const AString& commore::Symbol::get_name ( ) const
Returns
the symbol name
size_t commore::Symbol::get_num ( ) const
Returns
the symbol num
bool commore::Symbol::is_ident ( ) const
Returns
true if Symbol has a name
commore::Symbol::operator const AChar * ( ) const
inline
Returns
the symbol name
commore::Symbol::operator const AString & ( ) const
inline
Returns
the symbol name
commore::Symbol::operator size_t ( ) const
inline
Returns
the symbol num
bool commore::Symbol::operator!= ( const AChar *  name) const
inline
Returns
true if symbol name not equal name
bool commore::Symbol::operator!= ( size_t  num) const
inline
Returns
true if symbol name not equal num
bool commore::Symbol::operator!= ( const Symbol symbol) const
inline
Returns
true if symbol are ot equal
bool commore::Symbol::operator< ( const Symbol symbol) const
inline
Returns
symbol compare
bool commore::Symbol::operator== ( const AChar *  name) const
inline
Returns
true if symbol name equal name
bool commore::Symbol::operator== ( size_t  num) const
inline
Returns
true if symbol name equal num
bool commore::Symbol::operator== ( const Symbol symbol) const
inline
Returns
true if symbol are equal
long commore::Symbol::read_xml ( IBStream i)

Read a CDATA

long commore::Symbol::write_xml ( OBStream o) const

Write as CDATA


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