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>
Inherited by ValueAccessor0< TreeType, IsSafe >, ValueAccessor1< TreeType, IsSafe >, ValueAccessor2< TreeType, IsSafe >, ValueAccessor3< TreeType, IsSafe >, and ValueAccessor< TreeType, IsSafe, TreeType::DEPTH-1, tbb::spin_mutex >.
|
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). More...
|
|
|
template<typename > |
class | Tree |
|
template<typename TreeType, bool IsSafe>
class openvdb::v9_0::tree::ValueAccessorBase< TreeType, IsSafe >
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.
Implemented in ValueAccessor3< _TreeType, IsSafe, L0, L1, L2 >, ValueAccessor3< TreeType, IsSafe >, ValueAccessor2< _TreeType, IsSafe, L0, L1 >, ValueAccessor2< TreeType, IsSafe >, ValueAccessor1< _TreeType, IsSafe, L0 >, ValueAccessor1< TreeType, IsSafe >, ValueAccessor0< _TreeType, IsSafe >, ValueAccessor0< TreeType, IsSafe >, ValueAccessor< _TreeType, IsSafe, CacheLevels, MutexType >, ValueAccessor< TreeT >, ValueAccessor< TreeType, IsSafe, TreeType::DEPTH-1, tbb::spin_mutex >, ValueAccessor< const TreeType, IsSafe >, ValueAccessor< const TreeType >, ValueAccessor< const TreeT, false >, ValueAccessor< const TreeT >, ValueAccessor< IntTreeT >, and ValueAccessor< TreeType >.
TreeType* getTree |
( |
| ) |
const |
|
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).
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).
Return a reference to the tree associated with this accessor.
const bool IsConstTree = std::is_const<TreeType>::value |
|
static |