Workspace 6.21.5
Functions
CSIRO::Mesh::PrimevalMeshModelInterfaceTemplates Namespace Reference

Functions

template<typename StateControlType >
int addObjectState (StateControlType &stateControl, const QString &name, const DataExecution::DataObject &defaultValue)
 
template<typename T >
unsigned advance (IndexToNumberedObjectMap< typename T::BaseItemType > &map, unsigned startAt, unsigned n, bool &atEnd)
 
template<typename T >
unsigned firstValidIndex (IndexToNumberedObjectMap< typename T::BaseItemType > &map, bool &atEnd)
 

Detailed Description

Some private template helper functions used by PrimevalMeshModelInterface

Function Documentation

◆ addObjectState()

int addObjectState ( StateControlType &  stateControl,
const QString &  name,
const DataExecution::DataObject defaultValue 
)
Returns
State index of the new or existing state, or -1 if the state couldn't be added.

◆ advance()

unsigned advance ( IndexToNumberedObjectMap< typename T::BaseItemType > &  map,
unsigned  startAt,
unsigned  n,
bool &  atEnd 
)
Returns
The advanced index

◆ firstValidIndex()

unsigned firstValidIndex ( IndexToNumberedObjectMap< typename T::BaseItemType > &  map,
bool &  atEnd 
)
Returns
The index of the first valid object or resultIfAtEnd if it's past the last index