dlvhex
2.5.0
|
Stores the models for one EvalUnit. More...
#include <include/dlvhex2/ModelGraph.h>
Public Member Functions | |
EvalUnitModels () | |
Constructor. | |
EvalUnitModels (const EvalUnitModels &eum) | |
Constructor. | |
~EvalUnitModels () | |
ModelList & | getModels (ModelType t) |
Retrieves all models of a given type. | |
const ModelList & | getModels (ModelType t) const |
Retrieves all models of a given type. | |
void | reallocate () |
Internal reallocation of data structures according to current number of models. | |
Protected Attributes | |
boost::shared_ptr< std::vector < ModelList > > | models |
For each type of model we have a model list. |
Stores the models for one EvalUnit.
Definition at line 209 of file ModelGraph.h.
ModelGraph< EvalGraphT, ModelPropertyBaseT, ModelDepPropertyBaseT >::EvalUnitModels::EvalUnitModels | ( | ) | [inline] |
ModelGraph< EvalGraphT, ModelPropertyBaseT, ModelDepPropertyBaseT >::EvalUnitModels::EvalUnitModels | ( | const EvalUnitModels & | eum | ) | [inline] |
Constructor.
eum | Models of the unit. |
Definition at line 224 of file ModelGraph.h.
References DBGLOG.
ModelGraph< EvalGraphT, ModelPropertyBaseT, ModelDepPropertyBaseT >::EvalUnitModels::~EvalUnitModels | ( | ) | [inline] |
Definition at line 226 of file ModelGraph.h.
References DBGLOG.
ModelList& ModelGraph< EvalGraphT, ModelPropertyBaseT, ModelDepPropertyBaseT >::EvalUnitModels::getModels | ( | ModelType | t | ) | [inline] |
Retrieves all models of a given type.
t | ModelType. |
t
. Definition at line 231 of file ModelGraph.h.
References ModelGraph< EvalGraphT, ModelPropertyBaseT, ModelDepPropertyBaseT >::EvalUnitModels::models.
const ModelList& ModelGraph< EvalGraphT, ModelPropertyBaseT, ModelDepPropertyBaseT >::EvalUnitModels::getModels | ( | ModelType | t | ) | const [inline] |
Retrieves all models of a given type.
t | ModelType. |
t
. Definition at line 236 of file ModelGraph.h.
References ModelGraph< EvalGraphT, ModelPropertyBaseT, ModelDepPropertyBaseT >::EvalUnitModels::models.
void ModelGraph< EvalGraphT, ModelPropertyBaseT, ModelDepPropertyBaseT >::EvalUnitModels::reallocate | ( | ) | [inline] |
Internal reallocation of data structures according to current number of models.
Definition at line 239 of file ModelGraph.h.
References ModelGraph< EvalGraphT, ModelPropertyBaseT, ModelDepPropertyBaseT >::EvalUnitModels::models.
boost::shared_ptr< std::vector<ModelList> > ModelGraph< EvalGraphT, ModelPropertyBaseT, ModelDepPropertyBaseT >::EvalUnitModels::models [protected] |
For each type of model we have a model list.
We need to use a pointer here, because otherwise resizing the EvalUnitModelsPropertyMap will invalidate all iterators to the list). This additinoally makes resizing the property map cheaper.
Definition at line 217 of file ModelGraph.h.
Referenced by ModelGraph< EvalGraphT, ModelPropertyBaseT, ModelDepPropertyBaseT >::EvalUnitModels::getModels(), and ModelGraph< EvalGraphT, ModelPropertyBaseT, ModelDepPropertyBaseT >::EvalUnitModels::reallocate().