class NstStatementIf : public NstStatement

Class NstStatementIf

Inheritance:


Public Fields

NstStatementList else_part
else_part.
NstStatementList then_part
then_part.

Public Methods

const char* class_name()
Returns the string NstStatementIf.
const char* class_type()
Returns the string NST_STATEMENT_IF.
NstStatementIf* clone()
Recursive cloning.
NstExpression* condition()
Returns the condition (Attribute 0).
NstExpression* condition(const NstExpression& n)
Replaces the condition (Attribute 0).
void copy(const NstStatementIf& s)
Recursive copy of s.
NstStatementIf(const NstExpression& ne)
Creates a new NstStatementIf
NstStatementIf(const NstStatementIf& o)
Recursive copy constructor
NstStatementIf& operator= (const NstStatementIf& s)
Same as copy.
int type()
The type is NST_STATEMENT_IF.
~NstStatementIf()
Recursive destructor.

Inherited from NstStatement:

Public Fields

string above_comment
string below_comment
int is_commented
int label
int line_number
string slabel

Public Methods

int base_type()
NstTree* create_default()

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 NstStatementIf
NstStatementIf(const NstExpression& ne)
Creates a new NstStatementIf
Parameters:
ne - condition

~NstStatementIf()
Recursive destructor.

NstStatementIf(const NstStatementIf& 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_STATEMENT_IF.

const char* class_type()
Returns the string NST_STATEMENT_IF.

const char* class_name()
Returns the string NstStatementIf.

NstStatementList then_part
then_part.

NstStatementList else_part
else_part.

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

NstStatementIf* clone()
Recursive cloning.

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

NstExpression* condition()
Returns the condition (Attribute 0).

NstExpression* condition(const NstExpression& n)
Replaces the condition (Attribute 0).


This class has no child classes.

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