Cortex
10.0.0-a4
|
#include <CompoundData.h>
Inherits CompoundDataBase.
Public Member Functions | |
CompoundData (const CompoundDataMap &members) | |
IE_CORE_DECLAREOBJECT (CompoundData, CompoundDataBase) | |
template<typename T > | |
T * | member (const InternedString &name, bool throwExceptions=false) |
template<typename T > | |
const T * | member (const InternedString &name, bool throwExceptions=false) const |
template<typename T > | |
T * | member (const InternedString &name, bool throwExceptions, bool createIfMissing) |
A class for storing a map of named Data items.
T* IECore::CompoundData::member | ( | const InternedString & | name, |
bool | throwExceptions = false |
||
) |
T* IECore::CompoundData::member | ( | const InternedString & | name, |
bool | throwExceptions, | ||
bool | createIfMissing | ||
) |
A Convenience function to find a child Data object. If the named child doesn't exist, if createIfMissing is true, a child will be added with the type's object factory create method. If false, or the named child does not match the type specified as the template argument, behavior is defined by the throwExceptions parameter. When this parameter is true a descriptive Exception is thrown, and when false 0 is returned.