class NstDefinition: public NstTree

Class NstDefinition

Inheritance:


Public Fields

[more]int is_private
is_private.

Public Methods

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


Inherited from NstTree:

Public Fields

olong tree_id
oNstUserInfo user_info

Public Methods

oNstTree* cut_buffer() const
ovoid error(const char* st) const
ovoid warning(const char* st) const
oostream& operator << (ostream& s, const NstTree& t)
oNstTree* init()
oNstTree* init(NstTrees::iterator &it)
oNstTree* next()
oNstTree* next(NstTrees::iterator &it)
ovoid traversal(int (*action)(NstTree*, void*), void* extra = NULL)
oNstTree* upsearch(int (*comptest)(NstTree*, void*), void* extra = NULL)
oNstTree* cut()
oNstDefinition* search(const NstIdentifier& i, int tp = -1) const
ovoid replace(NstTree& n)
oNstTree* in() const
o fathers() const
ostring whoami() const


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

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

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

o ~NstDefinition()
Recursive destructor.

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

oint type() const
The type is NST_DEFINITION.

ochar* class_type() const
Returns the string NST_DEFINITION.

ochar* class_name() const
Returns the string NstDefinition.

oint base_type() const
Gives the base type of the object.

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

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

oint is_private
is_private.

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

oNstDefinition* clone() const
Recursive cloning.

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

oNstIdentifier* identifier() const
Returns the identifier (Attribute 0).

oNstIdentifier* 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 HTML hierarchy of classes or Java



This page was generated with the help of DOC++.