class NstDeclarationVariable : public NstDeclaration

Class NstDeclarationVariable

Inheritance:


Public Methods

const char* class_name()
Returns the string NstDeclarationVariable.
const char* class_type()
Returns the string NST_DECLARATION_VARIABLE.
NstDeclarationVariable* clone()
Recursive cloning.
void copy(const NstDeclarationVariable& s)
Recursive copy of s.
NstDefinitionVariable* definition(const NstDefinitionVariable& n)
Replaces the definition (Attribute 1).
NstDefinitionVariable* definition()
Returns the definition (Attribute 1). ATTENTION: this method can return NULL.
NstDefinitionFunction* definition_function(const NstDefinitionFunction& n)
Replaces the definition (Attribute 1).
NstDefinitionFunction* definition_function()
Returns the definition (Attribute 1). ATTENTION: this method can return NULL.
NstDeclarationVariable(const NstDeclarationVariable& o)
Recursive copy constructor
NstDeclarationVariable(const NstType& ntv, const char* name)
Creates a new NstDeclarationVariable
NstDeclarationVariable(const NstType& ntv, const NstDefinitionVariable& ntd)
Creates a new NstDeclarationVariable
NstDeclarationVariable& operator= (const NstDeclarationVariable& s)
Same as copy.
int type()
The type is NST_DECLARATION_VARIABLE.
NstType* variable_type(const NstType& n)
Replaces the variable_type (Attribute 0).
NstType* variable_type()
Returns the variable_type (Attribute 0).
~NstDeclarationVariable()
Recursive destructor.

Inherited from NstDeclaration:

Public Fields

string above_comment
string below_comment
int line_number

Public Methods

int base_type()
NstTree* create_default()

Inherited from NstTree:

Public Fields

unsigned long tree_id
NstUserInfo user_info

Public Methods

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 NstDeclarationVariable
NstDeclarationVariable(const NstType& ntv, const NstDefinitionVariable& ntd)
Creates a new NstDeclarationVariable
Parameters:
ntv - variable_type
ntd - definition

NstDeclarationVariable(const NstType& ntv, const char* name)
Creates a new NstDeclarationVariable
Parameters:
ntv - variable_type
name - of the variable

~NstDeclarationVariable()
Recursive destructor.

NstDeclarationVariable(const NstDeclarationVariable& 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_DECLARATION_VARIABLE.

const char* class_type()
Returns the string NST_DECLARATION_VARIABLE.

const char* class_name()
Returns the string NstDeclarationVariable.

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

NstDeclarationVariable* clone()
Recursive cloning.

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

NstType* variable_type()
Returns the variable_type (Attribute 0).

NstType* variable_type(const NstType& n)
Replaces the variable_type (Attribute 0).

NstDefinitionVariable* definition()
Returns the definition (Attribute 1). ATTENTION: this method can return NULL.

NstDefinitionVariable* definition(const NstDefinitionVariable& n)
Replaces the definition (Attribute 1).

NstDefinitionFunction* definition_function()
Returns the definition (Attribute 1). ATTENTION: this method can return NULL.

NstDefinitionFunction* definition_function(const NstDefinitionFunction& n)
Replaces the definition (Attribute 1).


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