class NstExpressionBinary: public NstExpression

Class NstExpressionBinary

Inheritance:


Public Methods

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


Inherited from NstExpression:

Public Methods

oint base_type() const
oNstTree* create_default()


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

o ~NstExpressionBinary()
Recursive destructor.

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

ochar* class_type() const
Returns the string NST_EXPRESSION_BINARY.

ochar* class_name() const
Returns the string NstExpressionBinary.

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

oNstExpressionBinary* clone() const
Recursive cloning.

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

oNstExpression* left() const
Returns the left (Attribute 0).

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

oNstExpression* right() const
Returns the right (Attribute 1).

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

oNstOp* operation() const
Returns the operation (Attribute 2).

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


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



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