OpenVDB 10.0.1
|
This base class for ValueAccessors manages registration of an accessor with a tree so that the tree can automatically clear the accessor whenever one of its nodes is deleted. More...
#include <openvdb/tree/ValueAccessor.h>
Public Member Functions | |
ValueAccessorBase (TreeType &tree) | |
virtual | ~ValueAccessorBase () |
TreeType * | getTree () const |
Return a pointer to the tree associated with this accessor. | |
TreeType & | tree () const |
Return a reference to the tree associated with this accessor. | |
ValueAccessorBase (const ValueAccessorBase &other) | |
ValueAccessorBase & | operator= (const ValueAccessorBase &other) |
virtual void | clear ()=0 |
Static Public Member Functions | |
static bool | isSafe () |
Return true if this accessor is safe, i.e. registered by the tree from which it is constructed. Un-registered accessors can in rare cases be faster because it avoids the (small) overhead of registration, but they are unsafe if the tree is modified. So unless you're an expert it is highly recommended to set IsSafe = true (which is the default). | |
Static Public Attributes | |
static const bool | IsConstTree = std::is_const<TreeType>::value |
Protected Member Functions | |
virtual void | release () |
Protected Attributes | |
TreeType * | mTree |
Friends | |
template<typename > | |
class | Tree |
This base class for ValueAccessors manages registration of an accessor with a tree so that the tree can automatically clear the accessor whenever one of its nodes is deleted.
|
inline |
|
inlinevirtual |
|
inline |
|
pure virtual |
Implemented in ValueAccessor< _TreeType, IsSafe, CacheLevels, MutexType >, ValueAccessor< const PointIndexTree >, ValueAccessor< const TreeT >, ValueAccessor< const TreeT, false >, ValueAccessor< const TreeType, IsSafe >, ValueAccessor< IntTreeT >, ValueAccessor< TreeT >, ValueAccessor< TreeType >, ValueAccessor< TreeType, true, TreeType::DEPTH-1, tbb::spin_mutex >, ValueAccessor0< _TreeType, IsSafe >, ValueAccessor0< TreeType, IsSafe >, ValueAccessor1< _TreeType, IsSafe, L0 >, ValueAccessor1< TreeType, IsSafe >, ValueAccessor2< _TreeType, IsSafe, L0, L1 >, ValueAccessor2< TreeType, IsSafe >, ValueAccessor3< _TreeType, IsSafe, L0, L1, L2 >, and ValueAccessor3< TreeType, IsSafe >.
|
inline |
Return a pointer to the tree associated with this accessor.
The pointer will be null only if the tree from which this accessor was constructed was subsequently deleted (which generally leaves the accessor in an unsafe state).
|
inlinestatic |
Return true if this accessor is safe, i.e. registered by the tree from which it is constructed. Un-registered accessors can in rare cases be faster because it avoids the (small) overhead of registration, but they are unsafe if the tree is modified. So unless you're an expert it is highly recommended to set IsSafe = true (which is the default).
|
inline |
|
inlineprotectedvirtual |
|
inline |
Return a reference to the tree associated with this accessor.
|
static |
|
protected |