Go to the documentation of this file.
14 #ifndef OSNLPARSERDATA_H
15 #define OSNLPARSERDATA_H
OSnLMNodeMatrixReference * nlMNodeMatrixRef
a pointer to an OSnLMNode object that is a simple matrix reference
bool variablecoefattON
variablecoefattON is set to true if the coeff attribute has been parsed for an OSnLNodeVariable,...
bool matrixreftypeattON
matrixreftypeattON is set to true if the type attribute has been parsed for an OSnLMNodeMatrixReferen...
bool solverAttributePresent
int tempInt
some temporary items to facilitate code sharing
OSnLMNodeMatrixVar * nlMNodeMatrixVar
a pointer to an OSnLMNode object that is a matrixVar reference
std::string parser_errors
used to accumulate error message so the parser does not die on the first error encountered
The OSnLParserData Class.
std::string ubValueAttribute
std::string categoryAttribute
bool enumTypeAttributePresent
std::string valueAttribute
bool suppressFurtherErrorMessages
std::string typeAttribute
The OSnLNodeNumber Class.
std::vector< ExprNode * > sumVec
the OSnLNodeSum node can have any number of children, including other children with an indeterminate ...
OSnLNodeNumber * nlNodeNumberPoint
a pointer to an OSnLNode object that is a number
A generic class from which we derive both OSnLNode and OSnLMNode.
bool unitAttributePresent
std::string conTypeAttribute
std::string enumTypeAttribute
int tmpnlcount
tmpnlcount counts the number of nl nodes actually found.
bool includeDiagonalAttributePresent
Attributes and other data items associated with parsing the OSnLMNodes.
ExprNode * nlNodePoint
These entities are used for parsing <nonlinearExpressions>
std::vector< ExprNode * > productVec
the OSnLNodeProduct node can have any number of children, including other children with an indetermin...
bool categoryAttributePresent
generic attributes
bool objTypeAttributePresent
bool descriptionAttributePresent
std::string unitAttribute
bool varTypeAttributePresent
OSnLNodeVariable * nlNodeVariablePoint
a pointer to an OSnLNode object that is a variable
bool matrixidxattON
matrixidxattON is set to true if the idx attribute has been parsed for an OSnLNodeVariable,...
bool ignoreDataAfterErrors
two booleans to govern the behavior after an error has been encountered
void osnl_empty_vectors(OSnLParserData *osnlData)
std::vector< ExprNode * > nlNodeVec
nlNodeVec holds a vector of pointers to OSnLNodes and OSnLMNodes In order to build the expression tre...
std::string objTypeAttribute
std::vector< ExprNode * > matrixSumVec
the OSnLMNodeMatrixSum node can have any number of children, including other children with an indeter...
std::vector< ExprNode * > matrixProductVec
the OSnLMNodeProduct node can have any number of children, including other children with an indetermi...
int nlnodenumber
nlnodenumber is the number of nl nodes in the instance
~OSnLParserData()
the OSnLParserData class destructor
OSnLParserData()
the OSnLParserData class constructor
OSnLMNodeMatrixObj * nlMNodeMatrixObj
a pointer to an OSnLMNode object that is a matrixObj reference
bool conTypeAttributePresent
bool nameAttributePresent
The OSnLNodeVariable Class.
bool valueAttributePresent
std::string solverAttribute
bool numbervalueattON
numbervalueattON is set to true if the value attribute has been parsed for an OSnLNodeNumber object,...
bool lbValueAttributePresent
std::string descriptionAttribute
bool typeAttributePresent
bool includeDiagonalAttribute
bool numbertypeattON
numbertypeattON is set to true if the type attribute has been parsed for an OSnLNodeNumber object,...
std::string varTypeAttribute
std::vector< ExprNode * > minVec
the OSnLNodeMin node can have any number of children, including other children with an indeterminate ...
OSnLMNodeMatrixCon * nlMNodeMatrixCon
a pointer to an OSnLMNode object that is a matrixCon reference
bool variableidxattON
variableidxattON is set to true if the idx attribute has been parsed for an OSnLNodeVariable,...
std::vector< ExprNode * > maxVec
the OSnLNodeMax node can have any number of children, including other children with an indeterminate ...
bool numberidattON
numberidattON is set to true if the id attribute has been parsed for an OSnLNodeNumber object,...
char * errorText
if the parser finds invalid text it is held here and we delete if the file was not valid
std::string lbValueAttribute
bool shapeAttributePresent
std::string nameAttribute
std::vector< ExprNode * > allDiffVec
the OSnLNodeallDiff node can have any number of children, including other children with an indetermin...
bool ubValueAttributePresent
This file defines the OSnLNode class along with its derived classes.