5 #ifndef CMR_SYMBOL_INCLUDED
6 #define CMR_SYMBOL_INCLUDED
40 operator const AString& ()
const {
return get_name(); }
44 operator const AChar* ()
const {
return get_name(); }
48 operator size_t ()
const {
return get_num(); }
55 const AString& get_name()
const;
59 size_t get_num()
const;
69 bool operator == (
size_t num)
const {
return get_num() == num; }
73 bool operator != (
const AChar* name)
const {
return get_name() != name; }
74 bool operator != (
const AString& name)
const {
return get_name() != name; }
78 bool operator != (
size_t num)
const {
return get_num() != num; }
86 bool operator != (
const Symbol& symbol)
const {
return symb_ != symbol.symb_; }
91 bool operator > (
const Symbol& symbol)
const {
return get_name() > symbol.
get_name(); }
96 bool is_ident()
const;
long CMREXD write_xml(const AString &sIn, OBStream &o)
Definition: AString.cpp:27
int compare(const Symbol &s) const
Definition: Symbol.h:92
Definition: Symbol.cpp:21
CMREXD commore::OBStream & operator<<(commore::OBStream &o, const commore::Symbol &s)
Definition: Symbol.cpp:258
char AChar
Definition: Type.h:65
#define CMREXD
Definition: Compiler.h:22
bool operator==(const pair< T1, T2 > &x, const pair< T1, T2 > &y)
Definition: HMap.h:148
long CMREXD read_xml(AString &sOut, IBStream &i)
Definition: AString.cpp:65
bool operator<(const pair< T1, T2 > &x, const pair< T1, T2 > &y)
Definition: HMap.h:155
Definition: IOBStream.h:166
Definition: IOBStream.h:29
const AString & get_name() const
Definition: Symbol.cpp:186