class MwMField : public MwField


Inheritance:


Public Methods

virtual void copyValue(int to, int from)
Copies value indexed by "from" to value indexed by "to"
virtual void deleteValues(int start, int num = -1)
Delete num values, starting at start
virtual void deleteValues()
static MwType* getClassType()
Returns type identifier for MwMField class
int getNum()
Returns number of values
static void init()
virtual void print(ostream &o)
virtual void print1Value(ostream &o, int index)
void setNum(int n)
Adjust the number of values to be num, adding or deleting values at the end as needed

Protected Fields

int maxNum
Number of values allocated
int num
Number of values

Protected Methods

virtual void deleteAllValues()
Deletes all current values
virtual void makeRoom(int newNum)
Make sure there is room for newNum vals
MwMField()

Private Fields

static MwType* classType

Private Methods

virtual void allocValues(int n)
virtual MbBool read1Value(MwInput *in, int index)
virtual MbBool readValue(MwInput *in)

Documentation

void setNum(int n)
Adjust the number of values to be num, adding or deleting values at the end as needed. If adding, the initial values in the new space are undefined.

int getNum()
Returns number of values

static MwType* getClassType()
Returns type identifier for MwMField class

static void init()

virtual void deleteValues(int start, int num = -1)
Delete num values, starting at start. A num of -1 (the default) means delete all values after start, inclusive

virtual void deleteValues()

virtual void copyValue(int to, int from)
Copies value indexed by "from" to value indexed by "to"

virtual void print(ostream &o)

virtual void print1Value(ostream &o, int index)

int num
Number of values

int maxNum
Number of values allocated

MwMField()

virtual void makeRoom(int newNum)
Make sure there is room for newNum vals

virtual void deleteAllValues()
Deletes all current values

virtual void allocValues(int n)

virtual MbBool readValue(MwInput *in)

virtual MbBool read1Value(MwInput *in, int index)

static MwType* classType


Direct child classes:
MwConcreteMField

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