class NstExpressionBinary : public NstExpression

Class NstExpressionBinary

Inheritance:


Public Methods

const char* class_name()
Returns the string NstExpressionBinary.
const char* class_type()
Returns the string NST_EXPRESSION_BINARY.
NstExpressionBinary* clone()
Recursive cloning.
void copy(const NstExpressionBinary& s)
Recursive copy of s.
NstExpression* left(const NstExpression& n)
Replaces the left (Attribute 0).
NstExpression* left()
Returns the left (Attribute 0).
NstExpressionBinary(const NstExpressionBinary& o)
Recursive copy constructor
NstExpressionBinary(const NstExpression& nl, const NstExpression& nr, const NstOp& nop)
Creates a new NstExpressionBinary
NstOp* operation()
Returns the operation (Attribute 2).
NstOp* operation(const NstOp& n)
Replaces the operation (Attribute 2).
NstExpressionBinary& operator= (const NstExpressionBinary& s)
Same as copy.
NstExpression* right(const NstExpression& n)
Replaces the right (Attribute 1).
NstExpression* right()
Returns the right (Attribute 1).
int type()
The type is NST_EXPRESSION_BINARY.
~NstExpressionBinary()
Recursive destructor.

Inherited from NstExpression:

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 NstExpressionBinary
NstExpressionBinary(const NstExpression& nl, const NstExpression& nr, const NstOp& nop)
Creates a new NstExpressionBinary
Parameters:
nl - left
nr - right
nop - operation

~NstExpressionBinary()
Recursive destructor.

NstExpressionBinary(const NstExpressionBinary& 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_EXPRESSION_BINARY.

const char* class_type()
Returns the string NST_EXPRESSION_BINARY.

const char* class_name()
Returns the string NstExpressionBinary.

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

NstExpressionBinary* clone()
Recursive cloning.

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

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

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

NstExpression* right()
Returns the right (Attribute 1).

NstExpression* right(const NstExpression& n)
Replaces the right (Attribute 1).

NstOp* operation()
Returns the operation (Attribute 2).

NstOp* operation(const NstOp& n)
Replaces the operation (Attribute 2).


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