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>
template<typename ValueT, typename ChildT, typename Enable = void>
class openvdb::v12_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.
ChildT* getChild |
( |
| ) |
const |
|
inline |
const ValueT& getValue |
( |
| ) |
const |
|
inline |
void setChild |
( |
ChildT * |
child | ) |
|
|
inline |
void setValue |
( |
const ValueT & |
val | ) |
|
|
inline |