HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
openvdb::OPENVDB_VERSION_NAME::tree::NodeUnion< ValueT, ChildT, Enable > Class Template Reference

Default implementation of a NodeUnion that stores the child pointer and the value separately (i.e., not in a union). Types which select this specialization usually do not conform to the requirements of a union member, that is that the type ValueT is not trivially copyable. This implementation is thus NOT used for POD, math::Vec, math::Mat, math::Quat or math::Coord types, but is used (for example) with std::string. More...

#include <NodeUnion.h>

Public Member Functions

 NodeUnion ()
 
ChildT * getChild () const
 
void setChild (ChildT *child)
 
const ValueT & getValue () const
 
ValueT & getValue ()
 
void setValue (const ValueT &val)
 

Detailed Description

template<typename ValueT, typename ChildT, typename Enable = void>
class openvdb::OPENVDB_VERSION_NAME::tree::NodeUnion< ValueT, ChildT, Enable >

Default implementation of a NodeUnion that stores the child pointer and the value separately (i.e., not in a union). Types which select this specialization usually do not conform to the requirements of a union member, that is that the type ValueT is not trivially copyable. This implementation is thus NOT used for POD, math::Vec, math::Mat, math::Quat or math::Coord types, but is used (for example) with std::string.

Definition at line 31 of file NodeUnion.h.

Constructor & Destructor Documentation

template<typename ValueT, typename ChildT, typename Enable = void>
openvdb::OPENVDB_VERSION_NAME::tree::NodeUnion< ValueT, ChildT, Enable >::NodeUnion ( )
inline

Definition at line 38 of file NodeUnion.h.

Member Function Documentation

template<typename ValueT, typename ChildT, typename Enable = void>
ChildT* openvdb::OPENVDB_VERSION_NAME::tree::NodeUnion< ValueT, ChildT, Enable >::getChild ( ) const
inline

Definition at line 40 of file NodeUnion.h.

template<typename ValueT, typename ChildT, typename Enable = void>
const ValueT& openvdb::OPENVDB_VERSION_NAME::tree::NodeUnion< ValueT, ChildT, Enable >::getValue ( ) const
inline

Definition at line 43 of file NodeUnion.h.

template<typename ValueT, typename ChildT, typename Enable = void>
ValueT& openvdb::OPENVDB_VERSION_NAME::tree::NodeUnion< ValueT, ChildT, Enable >::getValue ( )
inline

Definition at line 44 of file NodeUnion.h.

template<typename ValueT, typename ChildT, typename Enable = void>
void openvdb::OPENVDB_VERSION_NAME::tree::NodeUnion< ValueT, ChildT, Enable >::setChild ( ChildT *  child)
inline

Definition at line 41 of file NodeUnion.h.

template<typename ValueT, typename ChildT, typename Enable = void>
void openvdb::OPENVDB_VERSION_NAME::tree::NodeUnion< ValueT, ChildT, Enable >::setValue ( const ValueT &  val)
inline

Definition at line 45 of file NodeUnion.h.


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