OpenVDB  7.0.0
Classes | Namespaces
NodeUnion.h File Reference
#include <openvdb/version.h>
#include <openvdb/Types.h>
#include <cstring>
#include <type_traits>

Go to the source code of this file.


struct  CopyTraits< T >
class  NodeUnion< ValueT, ChildT, Enable >
class  NodeUnion< ValueT, ChildT, typename std::enable_if< std::is_pod< ValueT >::value >::type >
class  NodeUnion< ValueT, ChildT, typename std::enable_if< CopyTraits< ValueT >::IsCopyable >::type >
struct  CopyTraits< T >
struct  CopyTraits< math::Vec2< T > >
struct  CopyTraits< math::Vec3< T > >
struct  CopyTraits< math::Vec4< T > >
struct  CopyTraits< math::Coord >



Detailed Description

NodeUnion is a templated helper class that controls access to either the child node pointer or the value for a particular element of a root or internal node. For space efficiency, the child pointer and the value are unioned when possible, since the two are never in use simultaneously.