My Project
VarReferenceMatrixValues Class Reference

A concrete class that is used to store a specific type of matrix values, references to variable indexes defined in the core section. More...

#include <OSMatrix.h>

Inheritance diagram for VarReferenceMatrixValues:
MatrixElementValues

Public Member Functions

 VarReferenceMatrixValues ()
 -------— Methods for class VarReferenceMatrixValues -------—
 
 ~VarReferenceMatrixValues ()
 
bool IsEqual (VarReferenceMatrixValues *that)
 A function to check for the equality of two objects.
 
bool setRandom (double density, bool conformant, int iMin, int iMax)
 A function to make a random instance of this class.
 
virtual bool deepCopyFrom (VarReferenceMatrixValues *that)
 A function to make a deep copy of an instance of this class.
 
- Public Member Functions inherited from MatrixElementValues
 MatrixElementValues ()
 -------— Methods for class MatrixElementValues -------—
 
virtual ~MatrixElementValues ()
 
virtual bool deepCopyFrom (MatrixElementValues *that)
 A function to check for the equality of two objects.
 

Public Attributes

int * el
 Each el is a reference to a constraint defined in the <constraints> section of the OSiL file.
 
- Public Attributes inherited from MatrixElementValues
int numberOfEl
 each type of value is stored as an array named "el".
 

Detailed Description

A concrete class that is used to store a specific type of matrix values, references to variable indexes defined in the core section.

Definition at line 563 of file OSMatrix.h.

Constructor & Destructor Documentation

◆ VarReferenceMatrixValues()

VarReferenceMatrixValues::VarReferenceMatrixValues ( )

-------— Methods for class VarReferenceMatrixValues -------—

Definition at line 4517 of file OSMatrix.cpp.

◆ ~VarReferenceMatrixValues()

VarReferenceMatrixValues::~VarReferenceMatrixValues ( )

Definition at line 4525 of file OSMatrix.cpp.

Member Function Documentation

◆ IsEqual()

bool VarReferenceMatrixValues::IsEqual ( VarReferenceMatrixValues * that)

A function to check for the equality of two objects.

Definition at line 4542 of file OSMatrix.cpp.

◆ setRandom()

bool VarReferenceMatrixValues::setRandom ( double density,
bool conformant,
int iMin,
int iMax )

A function to make a random instance of this class.

Parameters
densitycorresponds to the probability that a particular child element is created
conformantif true enforces side constraints not enforceable in the schema (e.g., agreement of "numberOfXXX" attributes and <XXX> children)
iMinlowest index value (inclusive) that a variable reference in this matrix can take
iMaxgreatest index value (inclusive) that a variable reference in this matrix can take

Definition at line 4581 of file OSMatrix.cpp.

◆ deepCopyFrom()

bool VarReferenceMatrixValues::deepCopyFrom ( VarReferenceMatrixValues * that)
virtual

A function to make a deep copy of an instance of this class.

Parameters
thatthe instance from which information is to be copied
Returns
whether the copy was created successfully

Definition at line 4586 of file OSMatrix.cpp.

Member Data Documentation

◆ el

int* VarReferenceMatrixValues::el

Each el is a reference to a constraint defined in the <constraints> section of the OSiL file.

Definition at line 569 of file OSMatrix.h.


The documentation for this class was generated from the following files: