class NstStatement: public NstTree

Class NstStatement

Inheritance:


Public Fields

[more]int label
Label.
[more]string slabel
String label.
[more]int line_number
Line number.
[more]int is_commented
Is the statement commented
[more]string above_comment
Comment above statement.
[more]string below_comment
Comment below statement.

Public Methods

[more] NstStatement()
Creates an empty object.
[more]int type() const
The type is NST_STATEMENT.
[more]char* class_type() const
Returns the string NST_STATEMENT.
[more]char* class_name() const
Returns the string NstStatement.
[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]void copy(const NstStatement& s)
Recursive copy of s.
[more]NstStatement* clone() const
Recursive cloning.
[more]NstStatement& operator= (const NstStatement& 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 NstStatement. This is the base class for Fortran control statements (DO, IF, FORALL, etc...).
o NstStatement()
Creates an empty object.

oint label
Label.

ostring slabel
String label.

oint line_number
Line number.

oint is_commented
Is the statement commented

ostring above_comment
Comment above statement.

ostring below_comment
Comment below statement.

oint type() const
The type is NST_STATEMENT.

ochar* class_type() const
Returns the string NST_STATEMENT.

ochar* class_name() const
Returns the string NstStatement.

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

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

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

oNstStatement* clone() const
Recursive cloning.

oNstStatement& operator= (const NstStatement& s)
Same as copy.


Direct child classes:
NstStatementWhile
NstStatementWhere
NstStatementNestor
NstStatementLoop
NstStatementIf
NstStatementForall
NstStatementDummy
NstStatementDo
NstStatementComment
NstStatementBasic

Alphabetic index HTML hierarchy of classes or Java



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