class NstUnitModule: public NstUnit

Class NstUnitModule

Inheritance:


Public Fields

[more]NstDeclarationList declarations
declarations.
[more]NstStatementList statements
statements.
[more]NstUnitList internals
internals.

Public Methods

[more] NstUnitModule(const NstDefinitionModule& ndef)
Creates a new NstUnitModule
[more] ~NstUnitModule()
Recursive destructor.
[more] NstUnitModule(const NstUnitModule& o)
Recursive copy constructor
[more]int type() const
The type is NST_UNIT_MODULE.
[more]char* class_type() const
Returns the string NST_UNIT_MODULE.
[more]char* class_name() const
Returns the string NstUnitModule.
[more]void copy(const NstUnitModule& s)
Recursive copy of s.
[more]NstUnitModule* clone() const
Recursive cloning.
[more]NstUnitModule& operator= (const NstUnitModule& s)
Same as copy.
[more]NstDefinitionModule* definition() const
Returns the definition (Attribute 1).
[more]NstDefinitionModule* definition(const NstDefinitionModule& n)
Replaces the definition (Attribute 1).
[more]NstDefinition* search(const NstIdentifier& i, int tp = -1) const
Search an identifier in definition


Inherited from NstUnit:

Public Fields

oint line_number
ostring above_comment
ostring below_comment

Public Methods

oint base_type() const
oNstTree* create_default()
ostring unit_name()
oNstDeclarationList* declaration_list()
oNstDefinitionList* definition_list()


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()
ovoid replace(NstTree& n)
oNstTree* in() const
o fathers() const
ostring whoami() const


Documentation

Class NstUnitModule.
o NstUnitModule(const NstDefinitionModule& ndef)
Creates a new NstUnitModule.
Parameters:
ndef - definition

o ~NstUnitModule()
Recursive destructor.

o NstUnitModule(const NstUnitModule& 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_UNIT_MODULE.

ochar* class_type() const
Returns the string NST_UNIT_MODULE.

ochar* class_name() const
Returns the string NstUnitModule.

oNstDeclarationList declarations
declarations.

oNstStatementList statements
statements.

oNstUnitList internals
internals.

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

oNstUnitModule* clone() const
Recursive cloning.

oNstUnitModule& operator= (const NstUnitModule& s)
Same as copy.

oNstDefinitionModule* definition() const
Returns the definition (Attribute 1).

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

oNstDefinition* search(const NstIdentifier& i, int tp = -1) const
Search an identifier in definition. Useful if definition has a symbol table.


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



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