All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
An active model index with a reference to corresponding GeneratorModels. More...
#include <ParentIndex.h>
Public Member Functions | |
| int | activeIndex () const |
| const ActiveModels * | activeModels () const |
| ParentIndex (GeneratorModels *models, int activeIndex) | |
| const ScaledModels * | scaledModels () const |
| int | serialNumber () const |
| ~ParentIndex () | |
An active model index with a reference to corresponding GeneratorModels.
Keep a reference to GeneratorModels during model generation until addModel().
| DinverCore::ParentIndex::ParentIndex | ( | GeneratorModels * | models, |
| int | activeIndex | ||
| ) | [inline] |
References activeIndex(), QGpCoreTools::SharedObject::addReference(), and models.
{
_models=models;
_models->addReference();
_activeIndex=activeIndex;
}
| DinverCore::ParentIndex::~ParentIndex | ( | ) | [inline] |
References QGpCoreTools::SharedObject::removeReference().
{
GeneratorModels::removeReference(_models);
}
| int DinverCore::ParentIndex::activeIndex | ( | ) | const [inline] |
Referenced by DinverCore::GeneratorModels::commitStatistics(), DinverCore::ModelRepository::createModel(), and ParentIndex().
{return _activeIndex;}
| const ActiveModels* DinverCore::ParentIndex::activeModels | ( | ) | const [inline] |
Referenced by DinverCore::ModelRepository::createModel().
{return _models->activeModels();}
| const ScaledModels* DinverCore::ParentIndex::scaledModels | ( | ) | const [inline] |
{return _models->scaledModels();}
| int DinverCore::ParentIndex::serialNumber | ( | ) | const [inline] |
Referenced by DinverCore::GeneratorModels::commitStatistics().
{return _models->serialNumber();}