Go to the documentation of this file.
16 #ifndef SURGSIM_DATASTRUCTURES_NAMEDVARIANTDATA_H
17 #define SURGSIM_DATASTRUCTURES_NAMEDVARIANTDATA_H
19 #include <boost/any.hpp>
25 namespace DataStructures
79 inline bool get(
int index, T* value)
const;
91 inline bool get(
const std::string& name, T* value)
const;
101 #endif // SURGSIM_DATASTRUCTURES_NAMEDVARIANTDATA_H
bool hasTypedData(int index) const
Check whether the entry with the specified index contains valid data.
Definition: NamedVariantData-inl.h:36
Definition: CompoundShapeToGraphics.cpp:29
NamedVariantData()
Definition: NamedVariantData-inl.h:26
A templated dictionary in which data can be accessed by name or index, with immutable names & indices...
Definition: NamedData.h:102
A NamedData collection of variant data type.
Definition: NamedVariantData.h:39
NamedDataBuilder< boost::any > NamedVariantDataBuilder
Definition: NamedVariantData.h:28
bool get(int index, T *value) const
Given an index, get the corresponding value.
Definition: NamedVariantData-inl.h:69