a generic class from which we derive matrix constructors (BaseMatrix, MatrixElements, MatrixTransformation and MatrixBlocks) as well as matrix types (OSMatrix and MatrixBlock).
More...
#include <OSMatrix.h>
a generic class from which we derive matrix constructors (BaseMatrix, MatrixElements, MatrixTransformation and MatrixBlocks) as well as matrix types (OSMatrix and MatrixBlock).
Definition at line 50 of file OSMatrix.h.
MatrixNode::MatrixNode |
( |
| ) |
|
virtual MatrixNode::~MatrixNode |
( |
| ) |
|
|
virtual |
virtual std::string MatrixNode::getNodeName |
( |
| ) |
|
|
pure virtual |
virtual std::string MatrixNode::getMatrixNodeInXML |
( |
| ) |
|
|
pure virtual |
std::vector<MatrixNode*> MatrixNode::getPrefixFromNodeTree |
( |
| ) |
|
Get a vector of pointers to OSnLNodes and OSnLMNodes that correspond to the MatrixNode tree in prefix format.
- Returns
- the node tree as a vector of MatrixNodes in prefix.
std::vector<MatrixNode*> MatrixNode::preOrderMatrixNodeTraversal |
( |
std::vector< MatrixNode * > * |
prefixVector | ) |
|
std::vector<MatrixNode*> MatrixNode::getPostfixFromNodeTree |
( |
| ) |
|
Get a vector of pointers to MatrixNodes that correspond to the MatrixNode tree in postfix format
- Returns
- the node tree as a vector of MatrixNodes in postfix.
std::vector<MatrixNode*> MatrixNode::postOrderMatrixNodeTraversal |
( |
std::vector< MatrixNode * > * |
postfixVector | ) |
|
Called by getPostfixFromNodeTree(). This method calls itself recursively and generates a vector of pointers to MatrixNodes in postfix.
- Parameters
-
a | pointer postfixVector to a vector of pointers of MatrixNodes |
- Returns
- a vector of pointers to MatrixNodes in postfix.
virtual MatrixNode* MatrixNode::cloneMatrixNode |
( |
| ) |
|
|
pure virtual |
virtual bool MatrixNode::IsEqual |
( |
MatrixNode * |
that | ) |
|
|
virtual |
A function to check for the equality of two objects.
bool MatrixNode::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 index value (inclusive) that a variable reference in this matrix can take |
iMax,: | greatest index value (inclusive) that a variable reference in this matrix can take |
bool MatrixNode::deepCopyFrom |
( |
MatrixNode * |
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
matrixType tracks the type of elements contained in this MatrixNode, which may be useful in solver selection
Definition at line 57 of file OSMatrix.h.
nType is a unique integer assigned to each type of matrix node
Definition at line 62 of file OSMatrix.h.
unsigned int MatrixNode::inumberOfChildren |
m_mChildren holds all the children, that is, nodes used in the definition or construction of the current node.
Definition at line 74 of file OSMatrix.h.
The documentation for this class was generated from the following file:
- /builddir/build/BUILD/OS-2.9.3/src/OSCommonInterfaces/OSMatrix.h