class NstComplex : public NstConstant

Class NstComplex

Inheritance:


Public Fields

string img
imaginary_value.
string real
real_value.

Public Methods

const char* class_name()
Returns the string NstComplex.
const char* class_type()
Returns the string NST_CONSTANT_COMPLEX.
NstComplex* clone()
Recursive cloning.
void copy(const NstComplex& s)
Recursive copy of s.
NstComplex(const string& nreal, const string& nimg)
Creates a new NstComplex
NstComplex(const char* r, const char* i)
Creates a new complex with the real part r and the imaginary part i
NstComplex& operator= (const NstComplex& s)
Same as copy.
int type()
The type is NST_CONSTANT_COMPLEX.

Inherited from NstConstant:

Public Methods

virtual 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 NstComplex
NstComplex(const string& nreal, const string& nimg)
Creates a new NstComplex
Parameters:
nreal - real_value
nimg - imaginary_value

int type()
The type is NST_CONSTANT_COMPLEX.

const char* class_type()
Returns the string NST_CONSTANT_COMPLEX.

const char* class_name()
Returns the string NstComplex.

string real
real_value.

string img
imaginary_value.

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

NstComplex* clone()
Recursive cloning.

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

NstComplex(const char* r, const char* i)
Creates a new complex with the real part r and the imaginary part i


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