an integer Vector data structure
More...
#include <OSGeneral.h>
an integer Vector data structure
Definition at line 469 of file OSGeneral.h.
§ IntVector() [1/2]
§ ~IntVector()
IntVector::~IntVector |
( |
| ) |
|
§ IntVector() [2/2]
IntVector::IntVector |
( |
int |
n | ) |
|
§ IsEqual()
A method to compare two invectors.
§ setRandom()
bool IntVector::setRandom |
( |
double |
density, |
|
|
bool |
conformant, |
|
|
int |
iMin, |
|
|
int |
iMax |
|
) |
| |
A function to make a random instance of this class.
- Parameters
-
density | corresponds to the probability that a particular child element is created |
conformant | if true enforces side constraints not enforceable in the schema (e.g., agreement of "numberOfXXX" attributes and <XXX> children) |
iMin | lowest value (inclusive) that an entry in this vector can take |
iMax | greatest value (inclusive) that an entry in this vector can take |
§ deepCopyFrom()
bool IntVector::deepCopyFrom |
( |
IntVector * |
that | ) |
|
A function to make a deep copy of an instance of this class.
- Parameters
-
that | the instance from which information is to be copied |
- Returns
- whether the copy was created successfully
§ setIntVector()
bool IntVector::setIntVector |
( |
int * |
i, |
|
|
int |
ni |
|
) |
| |
set values into an IntVector
- Parameters
-
ni | contains the dimension of the IntVector |
i | contains the array of values |
§ extendIntVector()
bool IntVector::extendIntVector |
( |
int |
i | ) |
|
append a value to an IntVector
- Parameters
-
i | contains the value to be appended |
§ getNumberOfEl()
int IntVector::getNumberOfEl |
( |
| ) |
|
§ getEl() [1/2]
int IntVector::getEl |
( |
int |
j | ) |
|
get an entry in the data array of an IntVector
- Parameters
-
j | is the index of the entry that is to be retrieved |
§ getEl() [2/2]
bool IntVector::getEl |
( |
int * |
i | ) |
|
Get the integer data array of an IntVector.
- Parameters
-
i | is the location where the user wants to store the array |
- Returns
- the value
- Note
- it is the user's responsibility to reserve sufficient memory to hold the vector being returned.
§ bDeleteArrays
bool IntVector::bDeleteArrays |
bDeleteArrays is true if we delete the arrays in garbage collection set to true by default
Definition at line 482 of file OSGeneral.h.
§ numberOfEl
int IntVector::numberOfEl |
§ el
The documentation for this class was generated from the following file:
- /builddir/build/BUILD/OS-2.10.1/src/OSCommonInterfaces/OSGeneral.h