class NstDefinition : public NstTree

Class NstDefinition

Inheritance:


Public Fields

int is_private
is_private.

Public Methods

int base_type()
Gives the base type of the object.
const char* class_name()
Returns the string NstDefinition.
const char* class_type()
Returns the string NST_DEFINITION.
NstDefinition* clone()
Recursive cloning.
void copy(const NstDefinition& s)
Recursive copy of s.
NstTree* create_default()
Creates a default object of the base type.
NstIdentifier* identifier(const NstIdentifier& n)
Replaces the identifier (Attribute 0).
NstIdentifier* identifier()
Returns the identifier (Attribute 0).
NstDefinition* in_definition()
Returns the enclosing definition. This method can return NULL.
NstDefinition(const NstIdentifier& nidf)
Creates a new NstDefinition
NstDefinition(const NstDefinition& o)
Recursive copy constructor
NstDefinition()
Creates a default object. This object is not syntactically correct.
NstDefinition& operator= (const NstDefinition& s)
Same as copy.
int type()
The type is NST_DEFINITION.
~NstDefinition()
Recursive destructor.

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 NstDefinition.

This is the base class for representing a Fortran definition of an object. A definition is the object stored in the symbol table. A definition is associated with each declared entity into a Fortran code. For instance, there is a definition for a declared variable, a subroutine, etc...

NstDefinition()
Creates a default object. This object is not syntactically correct.

NstDefinition(const NstIdentifier& nidf)
Creates a new NstDefinition
Parameters:
nidf - identifier
nis_private - is_private

~NstDefinition()
Recursive destructor.

NstDefinition(const NstDefinition& 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_DEFINITION.

const char* class_type()
Returns the string NST_DEFINITION.

const char* class_name()
Returns the string NstDefinition.

int base_type()
Gives the base type of the object.

NstTree* create_default()
Creates a default object of the base type.

NstDefinition* in_definition()
Returns the enclosing definition. This method can return NULL.

int is_private
is_private.

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

NstDefinition* clone()
Recursive cloning.

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

NstIdentifier* identifier()
Returns the identifier (Attribute 0).

NstIdentifier* identifier(const NstIdentifier& n)
Replaces the identifier (Attribute 0).


Direct child classes:
NstDefinitionVariable
NstDefinitionType
NstDefinitionTopology
NstDefinitionTemplate
NstDefinitionProcedure
NstDefinitionNamelist
NstDefinitionModuleprocedure
NstDefinitionModule
NstDefinitionInterface
NstDefinitionFunction
NstDefinitionExternal
NstDefinitionCompunit
NstDefinitionCommon
NstDefinitionBlockdata

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