OpenVDB  9.0.1
Public Member Functions | List of all members
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 <openvdb/tree/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::v9_0::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.

Constructor & Destructor Documentation

NodeUnion ( )
inline

Member Function Documentation

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