Cortex  10.0.0-a4
Public Member Functions | List of all members
IECore::CompoundData Class Reference

#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)
 

Detailed Description

A class for storing a map of named Data items.

Member Function Documentation

template<typename T >
T* IECore::CompoundData::member ( const InternedString name,
bool  throwExceptions = false 
)

Convenience functions to find a child Data object. If the named child doesn't exist or doesn't 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.

template<typename T >
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.


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