class NstIdentifier : public NstTree

Class NstIdentifier

Inheritance:


Public Methods

const char* class_name()
Returns the string NstIdentifier.
const char* class_type()
Returns the string NST_IDENTIFIER.
NstIdentifier* clone()
Recursive cloning.
int compare(const NstIdentifier& i)
Compares two identifiers
void copy(const NstIdentifier& s)
Recursive copy of s.
NstString* id_string()
Returns the id_string (Attribute 0).
NstString* id_string(const NstString& n)
Replaces the id_string (Attribute 0).
NstIdentifier(const char* s)
Creates an identifier from a char*
NstIdentifier(const string& s)
Creates an identifier from a string
NstIdentifier(const NstIdentifier& o)
Recursive copy constructor
NstIdentifier(const NstString& nstr)
Creates a new NstIdentifier
friend int operator == (const NstIdentifier&, const NstIdentifier&)
Compares two identifiers (case insensitive)
friend int operator == (const NstIdentifier&, const string&)
Compares two identifiers (case insensitive)
friend int operator == (const string&, const NstIdentifier&)
Compares two identifiers (case insensitive)
friend int operator == (const NstIdentifier&, const char*)
Compares two identifiers (case insensitive)
friend int operator == (const char*, const NstIdentifier&)
Compares two identifiers (case insensitive)
NstIdentifier& operator= (const NstIdentifier& s)
Same as copy.
int type()
The type is NST_IDENTIFIER.
~NstIdentifier()
Recursive destructor.

Inherited from NstTree:

Public Fields

unsigned long tree_id
NstUserInfo user_info

Public Methods

virtual int base_type()
virtual NstTree* create_default()
virtual NstTree* cut()
NstTree* cut_buffer()
virtual void error(const char* st)
list <NstTree*> fathers()
NstTree* in()
virtual NstTree* init()
virtual NstTree* init(NstTrees::iterator &it)
virtual NstTree* next()
virtual NstTree* next(NstTrees::iterator &it)
friend ostream& operator << (ostream& s, const NstTree& t)
virtual void replace(NstTree& n)
virtual NstDefinition* search(const NstIdentifier& i, int tp = -1)
void traversal(int (*action)(NstTree*, void*), void* extra = NULL)
NstTree* upsearch(int (*comptest)(NstTree*, void*), void* extra = NULL)
virtual void warning(const char* st)
string whoami()

Documentation

Class NstIdentifier
NstIdentifier(const NstString& nstr)
Creates a new NstIdentifier
Parameters:
nstr - id_string

~NstIdentifier()
Recursive destructor.

NstIdentifier(const NstIdentifier& o)
Recursive copy constructor. Creates a new object that is a recursive copy of the parameter.
Parameters:
o - object to copy.

int type()
The type is NST_IDENTIFIER.

const char* class_type()
Returns the string NST_IDENTIFIER.

const char* class_name()
Returns the string NstIdentifier.

void copy(const NstIdentifier& s)
Recursive copy of s.

NstIdentifier* clone()
Recursive cloning.

NstIdentifier& operator= (const NstIdentifier& s)
Same as copy.

NstString* id_string()
Returns the id_string (Attribute 0).

NstString* id_string(const NstString& n)
Replaces the id_string (Attribute 0).

NstIdentifier(const string& s)
Creates an identifier from a string

NstIdentifier(const char* s)
Creates an identifier from a char*

int compare(const NstIdentifier& i)
Compares two identifiers. Uses strcasecmp(). Returns 1 if the identifiers are equals, 0 otherwise.

friend int operator == (const NstIdentifier&, const NstIdentifier&)
Compares two identifiers (case insensitive)

friend int operator == (const char*, const NstIdentifier&)
Compares two identifiers (case insensitive)

friend int operator == (const NstIdentifier&, const char*)
Compares two identifiers (case insensitive)

friend int operator == (const NstIdentifier&, const string&)
Compares two identifiers (case insensitive)

friend int operator == (const string&, const NstIdentifier&)
Compares two identifiers (case insensitive)


This class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de