Cortex  10.0.0-a4
Public Types | Public Member Functions | Static Public Member Functions | List of all members
IECoreMaya::MDataHandleAccessor< T > Struct Template Reference

#include <MDataHandleAccessor.h>

Public Types

typedef void ReturnType
 

Public Member Functions

 BOOST_STATIC_ASSERT (sizeof(T)==0)
 

Static Public Member Functions

static ReturnType get (const MDataHandle &h)
 

Detailed Description

template<typename T>
struct IECoreMaya::MDataHandleAccessor< T >

A templated class to allow straight-forward access to data stored in MDataHandle objects. The class is templated on the "raw" type of the data returned, e.g. "float", but in additional the ReturnType typedef can be used to find out the exact type with any qualifiers on it. So, using the same example, MDataHandleAccessor<float>::ReturnType is "float&". This allows simplicity of use, but also permits compatibility with boost::type_traits::is_reference, for more flexible template code.


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