Medical Imaging Interaction Toolkit  2018.4.99-f51274ea
Medical Imaging Interaction Toolkit
mitk::ScalarListLookupTable Class Reference

Data class for modelfit properties that store a map of lists (e.g. static parameters). More...

#include <mitkScalarListLookupTable.h>

Collaboration diagram for mitk::ScalarListLookupTable:

Public Types

typedef std::string KeyType
 
typedef std::vector< double > ValueType
 
typedef std::map< KeyType, ValueTypeLookupTableType
 
typedef std::pair< KeyType, ValueTypeEntryType
 

Public Member Functions

 ScalarListLookupTable ()
 
virtual ~ScalarListLookupTable ()
 
virtual const char * GetNameOfClass () const
 
void SetTableValue (const KeyType &key, const ValueType &value)
 Sets the list at the given map key to the given value. More...
 
bool ValueExists (const KeyType &key) const
 Returns true if the list with the given name exists. More...
 
const ValueTypeGetTableValue (const KeyType &key) const
 Returns the list with the given name. More...
 
const LookupTableTypeGetLookupTable () const
 Returns the map of lists. More...
 
void SetLookupTable (const LookupTableType &table)
 
bool operator== (const ScalarListLookupTable &lookupTable) const
 
bool operator!= (const ScalarListLookupTable &lookupTable) const
 
virtual ScalarListLookupTableoperator= (const ScalarListLookupTable &other)
 

Protected Attributes

LookupTableType m_LookupTable
 

Detailed Description

Data class for modelfit properties that store a map of lists (e.g. static parameters).

Definition at line 28 of file mitkScalarListLookupTable.h.

Member Typedef Documentation

◆ EntryType

◆ KeyType

Definition at line 31 of file mitkScalarListLookupTable.h.

◆ LookupTableType

◆ ValueType

typedef std::vector<double> mitk::ScalarListLookupTable::ValueType

Definition at line 32 of file mitkScalarListLookupTable.h.

Constructor & Destructor Documentation

◆ ScalarListLookupTable()

mitk::ScalarListLookupTable::ScalarListLookupTable ( )
inline

Definition at line 36 of file mitkScalarListLookupTable.h.

◆ ~ScalarListLookupTable()

virtual mitk::ScalarListLookupTable::~ScalarListLookupTable ( )
inlinevirtual

Definition at line 37 of file mitkScalarListLookupTable.h.

References mitk::operator!=(), and mitk::operator==().

Member Function Documentation

◆ GetLookupTable()

◆ GetNameOfClass()

const char * mitk::ScalarListLookupTable::GetNameOfClass ( ) const
virtual

Definition at line 16 of file mitkScalarListLookupTable.cpp.

◆ GetTableValue()

const mitk::ScalarListLookupTable::ValueType & mitk::ScalarListLookupTable::GetTableValue ( const KeyType key) const

Returns the list with the given name.

Parameters
keyThe name (i.e. map key) of the desired list.
Returns
The list with the given name.
Exceptions
std::range_errorIf the list doesn't exist.

Definition at line 33 of file mitkScalarListLookupTable.cpp.

References m_LookupTable.

Referenced by mitk::DescriptivePharmacokineticBrixModelFactory::DoCreateParameterizer().

◆ operator!=()

bool mitk::ScalarListLookupTable::operator!= ( const ScalarListLookupTable lookupTable) const

Definition at line 63 of file mitkScalarListLookupTable.cpp.

References m_LookupTable.

◆ operator=()

mitk::ScalarListLookupTable & mitk::ScalarListLookupTable::operator= ( const ScalarListLookupTable other)
virtual

Definition at line 69 of file mitkScalarListLookupTable.cpp.

References m_LookupTable.

◆ operator==()

bool mitk::ScalarListLookupTable::operator== ( const ScalarListLookupTable lookupTable) const

Definition at line 59 of file mitkScalarListLookupTable.cpp.

References m_LookupTable.

◆ SetLookupTable()

void mitk::ScalarListLookupTable::SetLookupTable ( const LookupTableType table)

Definition at line 53 of file mitkScalarListLookupTable.cpp.

References m_LookupTable.

◆ SetTableValue()

void mitk::ScalarListLookupTable::SetTableValue ( const KeyType key,
const ValueType value 
)

Sets the list at the given map key to the given value.

Parameters
keyThe name of the list (i.e. map key).
valueThe list to be added (i.e. map value).

Definition at line 21 of file mitkScalarListLookupTable.cpp.

References m_LookupTable.

Referenced by mitk::modelFit::ConvertStaticParametersToProperty(), and mitk::ScalarListLookupTablePropertySerializer::Deserialize().

◆ ValueExists()

bool mitk::ScalarListLookupTable::ValueExists ( const KeyType key) const

Returns true if the list with the given name exists.

Parameters
keyThe name of the desired list (i.e. map key)
Returns
true if the list exists or false otherwise.

Definition at line 26 of file mitkScalarListLookupTable.cpp.

References m_LookupTable.

Referenced by mitk::DescriptivePharmacokineticBrixModelFactory::DoCreateParameterizer().

Member Data Documentation

◆ m_LookupTable

LookupTableType mitk::ScalarListLookupTable::m_LookupTable
protected

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