Public Member Functions | Public Attributes | List of all members
OSgLParserData Class Reference

The OSgLParserData Class. More...

#include <OSgLParserData.h>

Collaboration diagram for OSgLParserData:
Collaboration graph
[legend]

Public Member Functions

 OSgLParserData ()
 the OSgLParserData class constructor More...
 
 ~OSgLParserData ()
 

Public Attributes

intosglIntArray
 data structure to process an IntVector and hold the data temporarily More...
 
int osglCounter
 
int osglTempint
 
double * osglDblArray
 
intosglValArray
 
std::string fileName
 data structure to process a GeneralFileHeader and hold the data temporarily More...
 
std::string source
 
std::string fileCreator
 
std::string licence
 
bool fileNamePresent
 
bool sourcePresent
 
bool fileCreatorPresent
 
bool licencePresent
 
voidscanner
 scanner is used to store data in a reentrant lexer we use this to pass an OSgLParserData object to the parser More...
 
char * errorText
 if the parser finds invalid text it is held here and we delete if the file was not valid More...
 
std::string parser_errors
 used to accumulate error message so the parser does not die on the first error encountered More...
 
bool ignoreDataAfterErrors
 two booleans to govern the behavior after an error has been encountered More...
 
bool suppressFurtherErrorMessages
 
OSMatrix ** matrix
 We need to hold an array of <matrix> elements temporarily. More...
 
OSMatrixWithMatrixVarIdx ** matrixWithMatrixVarIdx
 There are also other variants of these ... More...
 
OSMatrixWithMatrixObjIdx ** matrixWithMatrixObjIdx
 
OSMatrixWithMatrixConIdx ** matrixWithMatrixConIdx
 
intmatrixVarIndexes
 In order to use synergies in the parser, we store matrixXXXIdx in a separate vector. More...
 
intmatrixObjIndexes
 
intmatrixConIndexes
 
int matrixCounter
 We also need to keep track locally of the number of matrices. More...
 
int nonzeroCounter
 Linear matrices need a counter to count the number of terms within each element. More...
 
MatrixNodetempC
 This matrix constructor is needed in order to properly push the constructor vector. More...
 
std::vector< MatrixNode * > mtxConstructorVec
 Several vectors to process the matrix nodes into the right order. More...
 
std::vector< MatrixNode * > mtxBlocksVec
 
std::vector< MatrixNode * > mtxBlkVec
 
std::vector< intnBlocksVec
 
std::vector< int * > rowOffsets
 Vectors to hold rowOffset and colOffset arrays in a place where they are easily accessible while the <block> children are processed. More...
 
std::vector< int * > colOffsets
 
bool numberOfBlocksPresent
 Data elements for parsing number-valued attributes and elements. More...
 
bool numberOfColumnsPresent
 
bool numberOfConPresent
 
bool numberOfConIdxPresent
 
bool numberOfConstraintsPresent
 
bool numberOfElPresent
 
bool numberOfEnumerationsPresent
 
bool numberOfItemsPresent
 
bool numberOfMatricesPresent
 
bool numberOfMatrixConPresent
 
bool numberOfMatrixObjPresent
 
bool numberOfMatrixVarPresent
 
bool numberOfObjPresent
 
bool numberOfObjIdxPresent
 
bool numberOfObjectivesPresent
 
bool numberOfRowsPresent
 
bool numberOfValuesPresent
 
bool numberOfVarPresent
 
bool numberOfVarIdxPresent
 
bool numberOfVariablesPresent
 
bool base64SizePresent
 
bool baseMatrixIdxPresent
 
bool baseMatrixStartRowPresent
 
bool baseMatrixStartColPresent
 
bool baseMatrixEndRowPresent
 
bool baseMatrixEndColPresent
 
bool blockRowIdxPresent
 
bool blockColIdxPresent
 
bool coefPresent
 
bool constantPresent
 
bool idxPresent
 
bool incrPresent
 
bool matrixConIdxPresent
 
bool matrixObjIdxPresent
 
bool matrixVarIdxPresent
 
bool multPresent
 
bool scalarMultiplierPresent
 
bool targetMatrixFirstRowPresent
 
bool targetMatrixFirstColPresent
 
int numberOfBlocks
 
int numberOfColumns
 
int numberOfCon
 
int numberOfConIdx
 
int numberOfConstraints
 
int numberOfEl
 
int numberOfEnumerations
 
int numberOfItems
 
int numberOfMatrices
 
int numberOfMatrixCon
 
int numberOfMatrixObj
 
int numberOfMatrixVar
 
int numberOfObj
 
int numberOfObjIdx
 
int numberOfObjectives
 
int numberOfRows
 
int numberOfValues
 
int numberOfVar
 
int numberOfVarIdx
 
int numberOfVariables
 
int base64Size
 
int baseMatrixIdx
 
int baseMatrixStartRow
 
int baseMatrixStartCol
 
int baseMatrixEndRow
 
int baseMatrixEndCol
 
int blockRowIdx
 
int blockColIdx
 
double coef
 
double constant
 
int idx
 
int incr
 
int matrixConIdx
 
int matrixObjIdx
 
int matrixVarIdx
 
int mult
 
double scalarMultiplier
 
int targetMatrixFirstRow
 
int targetMatrixFirstCol
 
bool baseTransposePresent
 Data elements for parsing string-valued attributes and text elements. More...
 
bool categoryPresent
 
bool conTypePresent
 
bool descriptionPresent
 
bool enumTypePresent
 
bool matrixConTypePresent
 
bool matrixNamePresent
 
bool matrixObjTypePresent
 
bool matrixTypePresent
 
bool matrixVarTypePresent
 
bool namePresent
 
bool objTypePresent
 
bool rowMajorPresent
 
bool shapePresent
 
bool solverPresent
 
bool symmetryPresent
 
bool typePresent
 
bool unitPresent
 
bool valuePresent
 
bool valueTypePresent
 
bool varTypePresent
 
bool baseTranspose
 
std::string category
 
std::string conType
 
std::string description
 
std::string enumType
 
std::string matrixConType
 
std::string matrixName
 
std::string matrixObjType
 
std::string matrixType
 
std::string matrixVarType
 
std::string name
 
std::string objType
 
bool rowMajor
 
std::string shape
 
std::string solver
 
std::string symmetry
 
std::string type
 
std::string unit
 
std::string value
 
std::string valueType
 
std::string varType
 

Detailed Description

The OSgLParserData Class.

Remarks
the OSgLParserData class is used to temporarily hold data found in parsing the OSgL data structures. we do this so we can write reusable code.

Definition at line 33 of file OSgLParserData.h.

Constructor & Destructor Documentation

OSgLParserData::OSgLParserData ( )

the OSgLParserData class constructor

Definition at line 32 of file OSgLParserData.cpp.

OSgLParserData::~OSgLParserData ( )

Definition at line 18 of file OSgLParserData.cpp.

Member Data Documentation

int* OSgLParserData::osglIntArray

data structure to process an IntVector and hold the data temporarily

Definition at line 38 of file OSgLParserData.h.

int OSgLParserData::osglCounter

Definition at line 39 of file OSgLParserData.h.

int OSgLParserData::osglTempint

Definition at line 40 of file OSgLParserData.h.

double* OSgLParserData::osglDblArray

Definition at line 42 of file OSgLParserData.h.

int* OSgLParserData::osglValArray

Definition at line 43 of file OSgLParserData.h.

std::string OSgLParserData::fileName

data structure to process a GeneralFileHeader and hold the data temporarily

Definition at line 46 of file OSgLParserData.h.

std::string OSgLParserData::source

Definition at line 47 of file OSgLParserData.h.

std::string OSgLParserData::fileCreator

Definition at line 48 of file OSgLParserData.h.

std::string OSgLParserData::licence

Definition at line 49 of file OSgLParserData.h.

bool OSgLParserData::fileNamePresent

Definition at line 50 of file OSgLParserData.h.

bool OSgLParserData::sourcePresent

Definition at line 51 of file OSgLParserData.h.

bool OSgLParserData::fileCreatorPresent

Definition at line 52 of file OSgLParserData.h.

bool OSgLParserData::licencePresent

Definition at line 53 of file OSgLParserData.h.

void* OSgLParserData::scanner

scanner is used to store data in a reentrant lexer we use this to pass an OSgLParserData object to the parser

Definition at line 65 of file OSgLParserData.h.

char* OSgLParserData::errorText

if the parser finds invalid text it is held here and we delete if the file was not valid

Definition at line 70 of file OSgLParserData.h.

std::string OSgLParserData::parser_errors

used to accumulate error message so the parser does not die on the first error encountered

Definition at line 75 of file OSgLParserData.h.

bool OSgLParserData::ignoreDataAfterErrors

two booleans to govern the behavior after an error has been encountered

Definition at line 78 of file OSgLParserData.h.

bool OSgLParserData::suppressFurtherErrorMessages

Definition at line 79 of file OSgLParserData.h.

OSMatrix** OSgLParserData::matrix

We need to hold an array of <matrix> elements temporarily.

Definition at line 82 of file OSgLParserData.h.

OSMatrixWithMatrixVarIdx** OSgLParserData::matrixWithMatrixVarIdx

There are also other variants of these ...

Definition at line 85 of file OSgLParserData.h.

OSMatrixWithMatrixObjIdx** OSgLParserData::matrixWithMatrixObjIdx

Definition at line 86 of file OSgLParserData.h.

OSMatrixWithMatrixConIdx** OSgLParserData::matrixWithMatrixConIdx

Definition at line 87 of file OSgLParserData.h.

int* OSgLParserData::matrixVarIndexes

In order to use synergies in the parser, we store matrixXXXIdx in a separate vector.

Definition at line 90 of file OSgLParserData.h.

int* OSgLParserData::matrixObjIndexes

Definition at line 91 of file OSgLParserData.h.

int* OSgLParserData::matrixConIndexes

Definition at line 92 of file OSgLParserData.h.

int OSgLParserData::matrixCounter

We also need to keep track locally of the number of matrices.

Definition at line 95 of file OSgLParserData.h.

int OSgLParserData::nonzeroCounter

Linear matrices need a counter to count the number of terms within each element.

Definition at line 98 of file OSgLParserData.h.

MatrixNode* OSgLParserData::tempC

This matrix constructor is needed in order to properly push the constructor vector.

Definition at line 101 of file OSgLParserData.h.

std::vector<MatrixNode*> OSgLParserData::mtxConstructorVec

Several vectors to process the matrix nodes into the right order.

Definition at line 104 of file OSgLParserData.h.

std::vector<MatrixNode*> OSgLParserData::mtxBlocksVec

Definition at line 105 of file OSgLParserData.h.

std::vector<MatrixNode*> OSgLParserData::mtxBlkVec

Definition at line 106 of file OSgLParserData.h.

std::vector<int> OSgLParserData::nBlocksVec

Definition at line 107 of file OSgLParserData.h.

std::vector<int*> OSgLParserData::rowOffsets

Vectors to hold rowOffset and colOffset arrays in a place where they are easily accessible while the <block> children are processed.

Definition at line 113 of file OSgLParserData.h.

std::vector<int*> OSgLParserData::colOffsets

Definition at line 114 of file OSgLParserData.h.

bool OSgLParserData::numberOfBlocksPresent

Data elements for parsing number-valued attributes and elements.

Definition at line 118 of file OSgLParserData.h.

bool OSgLParserData::numberOfColumnsPresent

Definition at line 119 of file OSgLParserData.h.

bool OSgLParserData::numberOfConPresent

Definition at line 120 of file OSgLParserData.h.

bool OSgLParserData::numberOfConIdxPresent

Definition at line 121 of file OSgLParserData.h.

bool OSgLParserData::numberOfConstraintsPresent

Definition at line 122 of file OSgLParserData.h.

bool OSgLParserData::numberOfElPresent

Definition at line 123 of file OSgLParserData.h.

bool OSgLParserData::numberOfEnumerationsPresent

Definition at line 124 of file OSgLParserData.h.

bool OSgLParserData::numberOfItemsPresent

Definition at line 125 of file OSgLParserData.h.

bool OSgLParserData::numberOfMatricesPresent

Definition at line 126 of file OSgLParserData.h.

bool OSgLParserData::numberOfMatrixConPresent

Definition at line 127 of file OSgLParserData.h.

bool OSgLParserData::numberOfMatrixObjPresent

Definition at line 128 of file OSgLParserData.h.

bool OSgLParserData::numberOfMatrixVarPresent

Definition at line 129 of file OSgLParserData.h.

bool OSgLParserData::numberOfObjPresent

Definition at line 130 of file OSgLParserData.h.

bool OSgLParserData::numberOfObjIdxPresent

Definition at line 131 of file OSgLParserData.h.

bool OSgLParserData::numberOfObjectivesPresent

Definition at line 132 of file OSgLParserData.h.

bool OSgLParserData::numberOfRowsPresent

Definition at line 133 of file OSgLParserData.h.

bool OSgLParserData::numberOfValuesPresent

Definition at line 134 of file OSgLParserData.h.

bool OSgLParserData::numberOfVarPresent

Definition at line 135 of file OSgLParserData.h.

bool OSgLParserData::numberOfVarIdxPresent

Definition at line 136 of file OSgLParserData.h.

bool OSgLParserData::numberOfVariablesPresent

Definition at line 137 of file OSgLParserData.h.

bool OSgLParserData::base64SizePresent

Definition at line 139 of file OSgLParserData.h.

bool OSgLParserData::baseMatrixIdxPresent

Definition at line 140 of file OSgLParserData.h.

bool OSgLParserData::baseMatrixStartRowPresent

Definition at line 141 of file OSgLParserData.h.

bool OSgLParserData::baseMatrixStartColPresent

Definition at line 142 of file OSgLParserData.h.

bool OSgLParserData::baseMatrixEndRowPresent

Definition at line 143 of file OSgLParserData.h.

bool OSgLParserData::baseMatrixEndColPresent

Definition at line 144 of file OSgLParserData.h.

bool OSgLParserData::blockRowIdxPresent

Definition at line 145 of file OSgLParserData.h.

bool OSgLParserData::blockColIdxPresent

Definition at line 146 of file OSgLParserData.h.

bool OSgLParserData::coefPresent

Definition at line 147 of file OSgLParserData.h.

bool OSgLParserData::constantPresent

Definition at line 148 of file OSgLParserData.h.

bool OSgLParserData::idxPresent

Definition at line 149 of file OSgLParserData.h.

bool OSgLParserData::incrPresent

Definition at line 150 of file OSgLParserData.h.

bool OSgLParserData::matrixConIdxPresent

Definition at line 151 of file OSgLParserData.h.

bool OSgLParserData::matrixObjIdxPresent

Definition at line 152 of file OSgLParserData.h.

bool OSgLParserData::matrixVarIdxPresent

Definition at line 153 of file OSgLParserData.h.

bool OSgLParserData::multPresent

Definition at line 154 of file OSgLParserData.h.

bool OSgLParserData::scalarMultiplierPresent

Definition at line 155 of file OSgLParserData.h.

bool OSgLParserData::targetMatrixFirstRowPresent

Definition at line 156 of file OSgLParserData.h.

bool OSgLParserData::targetMatrixFirstColPresent

Definition at line 157 of file OSgLParserData.h.

int OSgLParserData::numberOfBlocks

Definition at line 159 of file OSgLParserData.h.

int OSgLParserData::numberOfColumns

Definition at line 160 of file OSgLParserData.h.

int OSgLParserData::numberOfCon

Definition at line 161 of file OSgLParserData.h.

int OSgLParserData::numberOfConIdx

Definition at line 162 of file OSgLParserData.h.

int OSgLParserData::numberOfConstraints

Definition at line 163 of file OSgLParserData.h.

int OSgLParserData::numberOfEl

Definition at line 164 of file OSgLParserData.h.

int OSgLParserData::numberOfEnumerations

Definition at line 165 of file OSgLParserData.h.

int OSgLParserData::numberOfItems

Definition at line 166 of file OSgLParserData.h.

int OSgLParserData::numberOfMatrices

Definition at line 167 of file OSgLParserData.h.

int OSgLParserData::numberOfMatrixCon

Definition at line 168 of file OSgLParserData.h.

int OSgLParserData::numberOfMatrixObj

Definition at line 169 of file OSgLParserData.h.

int OSgLParserData::numberOfMatrixVar

Definition at line 170 of file OSgLParserData.h.

int OSgLParserData::numberOfObj

Definition at line 171 of file OSgLParserData.h.

int OSgLParserData::numberOfObjIdx

Definition at line 172 of file OSgLParserData.h.

int OSgLParserData::numberOfObjectives

Definition at line 173 of file OSgLParserData.h.

int OSgLParserData::numberOfRows

Definition at line 174 of file OSgLParserData.h.

int OSgLParserData::numberOfValues

Definition at line 175 of file OSgLParserData.h.

int OSgLParserData::numberOfVar

Definition at line 176 of file OSgLParserData.h.

int OSgLParserData::numberOfVarIdx

Definition at line 177 of file OSgLParserData.h.

int OSgLParserData::numberOfVariables

Definition at line 178 of file OSgLParserData.h.

int OSgLParserData::base64Size

Definition at line 180 of file OSgLParserData.h.

int OSgLParserData::baseMatrixIdx

Definition at line 181 of file OSgLParserData.h.

int OSgLParserData::baseMatrixStartRow

Definition at line 182 of file OSgLParserData.h.

int OSgLParserData::baseMatrixStartCol

Definition at line 183 of file OSgLParserData.h.

int OSgLParserData::baseMatrixEndRow

Definition at line 184 of file OSgLParserData.h.

int OSgLParserData::baseMatrixEndCol

Definition at line 185 of file OSgLParserData.h.

int OSgLParserData::blockRowIdx

Definition at line 186 of file OSgLParserData.h.

int OSgLParserData::blockColIdx

Definition at line 187 of file OSgLParserData.h.

double OSgLParserData::coef

Definition at line 188 of file OSgLParserData.h.

double OSgLParserData::constant

Definition at line 189 of file OSgLParserData.h.

int OSgLParserData::idx

Definition at line 190 of file OSgLParserData.h.

int OSgLParserData::incr

Definition at line 191 of file OSgLParserData.h.

int OSgLParserData::matrixConIdx

Definition at line 192 of file OSgLParserData.h.

int OSgLParserData::matrixObjIdx

Definition at line 193 of file OSgLParserData.h.

int OSgLParserData::matrixVarIdx

Definition at line 194 of file OSgLParserData.h.

int OSgLParserData::mult

Definition at line 195 of file OSgLParserData.h.

double OSgLParserData::scalarMultiplier

Definition at line 196 of file OSgLParserData.h.

int OSgLParserData::targetMatrixFirstRow

Definition at line 197 of file OSgLParserData.h.

int OSgLParserData::targetMatrixFirstCol

Definition at line 198 of file OSgLParserData.h.

bool OSgLParserData::baseTransposePresent

Data elements for parsing string-valued attributes and text elements.

Definition at line 202 of file OSgLParserData.h.

bool OSgLParserData::categoryPresent

Definition at line 203 of file OSgLParserData.h.

bool OSgLParserData::conTypePresent

Definition at line 204 of file OSgLParserData.h.

bool OSgLParserData::descriptionPresent

Definition at line 205 of file OSgLParserData.h.

bool OSgLParserData::enumTypePresent

Definition at line 206 of file OSgLParserData.h.

bool OSgLParserData::matrixConTypePresent

Definition at line 207 of file OSgLParserData.h.

bool OSgLParserData::matrixNamePresent

Definition at line 208 of file OSgLParserData.h.

bool OSgLParserData::matrixObjTypePresent

Definition at line 209 of file OSgLParserData.h.

bool OSgLParserData::matrixTypePresent

Definition at line 210 of file OSgLParserData.h.

bool OSgLParserData::matrixVarTypePresent

Definition at line 211 of file OSgLParserData.h.

bool OSgLParserData::namePresent

Definition at line 212 of file OSgLParserData.h.

bool OSgLParserData::objTypePresent

Definition at line 213 of file OSgLParserData.h.

bool OSgLParserData::rowMajorPresent

Definition at line 214 of file OSgLParserData.h.

bool OSgLParserData::shapePresent

Definition at line 215 of file OSgLParserData.h.

bool OSgLParserData::solverPresent

Definition at line 216 of file OSgLParserData.h.

bool OSgLParserData::symmetryPresent

Definition at line 217 of file OSgLParserData.h.

bool OSgLParserData::typePresent

Definition at line 218 of file OSgLParserData.h.

bool OSgLParserData::unitPresent

Definition at line 219 of file OSgLParserData.h.

bool OSgLParserData::valuePresent

Definition at line 220 of file OSgLParserData.h.

bool OSgLParserData::valueTypePresent

Definition at line 221 of file OSgLParserData.h.

bool OSgLParserData::varTypePresent

Definition at line 222 of file OSgLParserData.h.

bool OSgLParserData::baseTranspose

Definition at line 224 of file OSgLParserData.h.

std::string OSgLParserData::category

Definition at line 225 of file OSgLParserData.h.

std::string OSgLParserData::conType

Definition at line 226 of file OSgLParserData.h.

std::string OSgLParserData::description

Definition at line 227 of file OSgLParserData.h.

std::string OSgLParserData::enumType

Definition at line 228 of file OSgLParserData.h.

std::string OSgLParserData::matrixConType

Definition at line 229 of file OSgLParserData.h.

std::string OSgLParserData::matrixName

Definition at line 230 of file OSgLParserData.h.

std::string OSgLParserData::matrixObjType

Definition at line 231 of file OSgLParserData.h.

std::string OSgLParserData::matrixType

Definition at line 232 of file OSgLParserData.h.

std::string OSgLParserData::matrixVarType

Definition at line 233 of file OSgLParserData.h.

std::string OSgLParserData::name

Definition at line 234 of file OSgLParserData.h.

std::string OSgLParserData::objType

Definition at line 235 of file OSgLParserData.h.

bool OSgLParserData::rowMajor

Definition at line 236 of file OSgLParserData.h.

std::string OSgLParserData::shape

Definition at line 237 of file OSgLParserData.h.

std::string OSgLParserData::solver

Definition at line 238 of file OSgLParserData.h.

std::string OSgLParserData::symmetry

Definition at line 239 of file OSgLParserData.h.

std::string OSgLParserData::type

Definition at line 240 of file OSgLParserData.h.

std::string OSgLParserData::unit

Definition at line 241 of file OSgLParserData.h.

std::string OSgLParserData::value

Definition at line 242 of file OSgLParserData.h.

std::string OSgLParserData::valueType

Definition at line 243 of file OSgLParserData.h.

std::string OSgLParserData::varType

Definition at line 244 of file OSgLParserData.h.


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