brief an integer vector data structure used in OSOption and OSResult
More...
#include <OSGeneral.h>
|
| OtherOptionOrResultEnumeration () |
|
| ~OtherOptionOrResultEnumeration () |
|
| OtherOptionOrResultEnumeration (int n) |
| alternate constructor More...
|
|
bool | IsEqual (OtherOptionOrResultEnumeration *that) |
| A function to check for the equality of two objects. More...
|
|
bool | setRandom (double density, bool conformant, int iMin, int iMax) |
| A function to make a random instance of this class. More...
|
|
bool | deepCopyFrom (OtherOptionOrResultEnumeration *that) |
| A function to make a deep copy of an instance of this class. More...
|
|
bool | setOtherOptionOrResultEnumeration (std::string value, std::string description, int *i, int ni) |
| Set the indices for a particular level in an enumeration. More...
|
|
std::string | getValue () |
| Get the value for a particular level in an enumeration. More...
|
|
std::string | getDescription () |
| Get the description for a particular level in an enumeration. More...
|
|
| IntVector () |
|
| ~IntVector () |
|
| IntVector (int n) |
| alternate constructor More...
|
|
bool | IsEqual (IntVector *that) |
| A method to compare two invectors. More...
|
|
bool | setRandom (double density, bool conformant, int iMin, int iMax) |
| A function to make a random instance of this class. More...
|
|
bool | deepCopyFrom (IntVector *that) |
| A function to make a deep copy of an instance of this class. More...
|
|
bool | setIntVector (int *i, int ni) |
| set values into an IntVector More...
|
|
bool | extendIntVector (int i) |
| append a value to an IntVector More...
|
|
int | getNumberOfEl () |
| get the dimension of an IntVector More...
|
|
int | getEl (int j) |
| get an entry in the data array of an IntVector More...
|
|
bool | getEl (int *i) |
| Get the integer data array of an IntVector. More...
|
|
brief an integer vector data structure used in OSOption and OSResult
This class extends IntVector by adding two string-valued elements, value and description
Definition at line 549 of file OSGeneral.h.
§ OtherOptionOrResultEnumeration() [1/2]
OtherOptionOrResultEnumeration::OtherOptionOrResultEnumeration |
( |
| ) |
|
§ ~OtherOptionOrResultEnumeration()
OtherOptionOrResultEnumeration::~OtherOptionOrResultEnumeration |
( |
| ) |
|
§ OtherOptionOrResultEnumeration() [2/2]
OtherOptionOrResultEnumeration::OtherOptionOrResultEnumeration |
( |
int |
n | ) |
|
§ IsEqual()
A function to check for the equality of two objects.
§ setRandom()
bool OtherOptionOrResultEnumeration::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()
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
§ setOtherOptionOrResultEnumeration()
bool OtherOptionOrResultEnumeration::setOtherOptionOrResultEnumeration |
( |
std::string |
value, |
|
|
std::string |
description, |
|
|
int * |
i, |
|
|
int |
ni |
|
) |
| |
Set the indices for a particular level in an enumeration.
- Parameters
-
value | represents the value of this enumeration member |
description | holds additional information about this value |
i | contains the array of indices |
ni | contains the number of elements in i |
§ getValue()
std::string OtherOptionOrResultEnumeration::getValue |
( |
| ) |
|
Get the value for a particular level in an enumeration.
§ getDescription()
std::string OtherOptionOrResultEnumeration::getDescription |
( |
| ) |
|
Get the description for a particular level in an enumeration.
§ value
std::string OtherOptionOrResultEnumeration::value |
§ description
std::string OtherOptionOrResultEnumeration::description |
The documentation for this class was generated from the following file:
- /builddir/build/BUILD/OS-2.10.1/src/OSCommonInterfaces/OSGeneral.h