class NstUnit: public NstTree

Class NstUnit

Inheritance:


Public Fields

[more]int line_number
line_number.
[more]string above_comment
above_comment.
[more]string below_comment
below_comment.

Public Methods

[more] NstUnit()
Creates an empty object.
[more]int type() const
The type is NST_UNIT.
[more]char* class_type() const
Returns the string NST_UNIT.
[more]char* class_name() const
Returns the string NstUnit.
[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]string unit_name()
Returns the name of the unit or "no_name" if unit has no name.
[more]NstDeclarationList* declaration_list()
Returns the list of declarations if the unit has one, NULL elsewhere.
[more]NstDefinitionList* definition_list()
Returns the table of symbols if the unit has one, NULL elsewhere.
[more]void copy(const NstUnit& s)
Recursive copy of s.
[more]NstUnit* clone() const
Recursive cloning.
[more]NstUnit& operator= (const NstUnit& s)
Same as copy.


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 NstUnit. This is the base class for units. An unit is a program, a subroutine, a function, etc...
o NstUnit()
Creates an empty object.

oint type() const
The type is NST_UNIT.

ochar* class_type() const
Returns the string NST_UNIT.

ochar* class_name() const
Returns the string NstUnit.

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

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

ostring unit_name()
Returns the name of the unit or "no_name" if unit has no name.

oNstDeclarationList* declaration_list()
Returns the list of declarations if the unit has one, NULL elsewhere.

oNstDefinitionList* definition_list()
Returns the table of symbols if the unit has one, NULL elsewhere.

oint line_number
line_number.

ostring above_comment
above_comment.

ostring below_comment
below_comment.

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

oNstUnit* clone() const
Recursive cloning.

oNstUnit& operator= (const NstUnit& s)
Same as copy.


Direct child classes:
NstUnitProgram
NstUnitProcedure
NstUnitModuleprocedure
NstUnitModule
NstUnitFunction
NstUnitBlockdata

Alphabetic index HTML hierarchy of classes or Java



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