18 return "ScalarListLookupTable";
43 throw std::range_error(
"id does not exist in the lookup table");
84 typedef ScalarListLookupTable::LookupTableType::const_iterator MapIterType;
85 typedef ScalarListLookupTable::ValueType::const_iterator VectorIterType;
90 for (MapIterType i = mapStart; i != mapEnd; ++i)
97 stream << i->first <<
" -> [";
99 VectorIterType vectorStart = i->second.begin();
100 VectorIterType vectorEnd = i->second.end();
102 for (VectorIterType j = vectorStart; j != vectorEnd; ++j)
104 if (j != vectorStart)
115 return stream <<
"]";
LookupTableType m_LookupTable
bool operator!=(const ScalarListLookupTable &lookupTable) const
void SetTableValue(const KeyType &key, const ValueType &value)
Sets the list at the given map key to the given value.
virtual const char * GetNameOfClass() const
Data class for modelfit properties that store a map of lists (e.g. static parameters).
void SetLookupTable(const LookupTableType &table)
bool ValueExists(const KeyType &key) const
Returns true if the list with the given name exists.
std::vector< double > ValueType
const LookupTableType & GetLookupTable() const
Returns the map of lists.
const ValueType & GetTableValue(const KeyType &key) const
Returns the list with the given name.
virtual ScalarListLookupTable & operator=(const ScalarListLookupTable &other)
bool operator==(const ScalarListLookupTable &lookupTable) const
std::map< KeyType, ValueType > LookupTableType
MITKCORE_EXPORT std::ostream & operator<<(std::ostream &o, DataNode::Pointer &dtn)