HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
openvdb::OPENVDB_VERSION_NAME::tree::IterListItem< PrevItemT, NodeVecT, 1, _Level > Class Template Reference

The final element of a compile-time linked list of iterators to nodes of different types. More...

#include <TreeIterator.h>

Public Types

typedef hboost::mpl::front
< NodeVecT >::type 
_NodeT
 
typedef PrevItemT::IterT PrevIterT
 The type of iterator stored in the previous list item. More...
 
typedef IterTraits< typename
PrevIterT::NonConstNodeType,
PrevIterT >::template
NodeConverter< _NodeT >::Type 
IterT
 The type of iterator stored in this list item (e.g., RootNode::ValueOnCIter) More...
 
typedef IterT::NodeType NodeT
 The type of node over which IterT iterates (e.g., const RootNode<...>) More...
 
typedef IterT::NonConstNodeType NCNodeT
 The type of the node with const qualifiers removed ("Non-Const") More...
 
typedef IterT::NonConstValueType NCValueT
 The type of value (with const qualifiers removed) to which the iterator points. More...
 
typedef CopyConstness< NodeT,
typename NodeT::ChildNodeType >
::Type 
ChildT
 NodeT's child node type, with the same constness (e.g., const InternalNode<...>) More...
 
typedef CopyConstness< NCNodeT,
typename
NCNodeT::ChildNodeType >::Type 
NCChildT
 NodeT's child node type with const qualifiers removed. More...
 
typedef IterTraits< NCNodeT,
IterT
ITraits
 

Public Member Functions

 IterListItem (PrevItemT *prev)
 
 IterListItem (const IterListItem &other)
 
IterListItemoperator= (const IterListItem &other)
 
void updateBackPointers (PrevItemT *prev)
 
void setIter (const IterT &iter)
 
void getNode (Index lvl, NodeT *&node) const
 
template<typename OtherIterListItemT >
void initLevel (Index lvl, OtherIterListItemT &otherListItem)
 
Index pos (Index lvl) const
 
bool test (Index lvl) const
 
bool next (Index lvl)
 
bool down (Index lvl)
 
Coord getCoord (Index lvl) const
 
Index getChildDim (Index lvl) const
 
Index64 getVoxelCount (Index lvl) const
 
bool isValueOn (Index lvl) const
 
const NCValueTgetValue (Index lvl) const
 
void setValue (Index lvl, const NCValueT &val) const
 
void setValueOn (Index lvl, bool on=true) const
 
void setValueOff (Index lvl) const
 
template<typename ModifyOp >
void modifyValue (Index lvl, const ModifyOp &op) const
 

Static Public Attributes

static const Index Level = _Level
 NodeT's level in its tree (0 = LeafNode) More...
 

Detailed Description

template<typename PrevItemT, typename NodeVecT, Index _Level>
class openvdb::OPENVDB_VERSION_NAME::tree::IterListItem< PrevItemT, NodeVecT, 1, _Level >

The final element of a compile-time linked list of iterators to nodes of different types.

Definition at line 547 of file TreeIterator.h.

Member Typedef Documentation

template<typename PrevItemT , typename NodeVecT , Index _Level>
typedef hboost::mpl::front<NodeVecT>::type openvdb::OPENVDB_VERSION_NAME::tree::IterListItem< PrevItemT, NodeVecT, 1, _Level >::_NodeT

Definition at line 550 of file TreeIterator.h.

template<typename PrevItemT , typename NodeVecT , Index _Level>
typedef CopyConstness<NodeT, typename NodeT::ChildNodeType>::Type openvdb::OPENVDB_VERSION_NAME::tree::IterListItem< PrevItemT, NodeVecT, 1, _Level >::ChildT

NodeT's child node type, with the same constness (e.g., const InternalNode<...>)

Definition at line 564 of file TreeIterator.h.

template<typename PrevItemT , typename NodeVecT , Index _Level>
typedef IterTraits<typename PrevIterT::NonConstNodeType, PrevIterT>::template NodeConverter<_NodeT>::Type openvdb::OPENVDB_VERSION_NAME::tree::IterListItem< PrevItemT, NodeVecT, 1, _Level >::IterT

The type of iterator stored in this list item (e.g., RootNode::ValueOnCIter)

Definition at line 555 of file TreeIterator.h.

template<typename PrevItemT , typename NodeVecT , Index _Level>
typedef IterTraits<NCNodeT, IterT> openvdb::OPENVDB_VERSION_NAME::tree::IterListItem< PrevItemT, NodeVecT, 1, _Level >::ITraits

Definition at line 567 of file TreeIterator.h.

template<typename PrevItemT , typename NodeVecT , Index _Level>
typedef CopyConstness<NCNodeT, typename NCNodeT::ChildNodeType>::Type openvdb::OPENVDB_VERSION_NAME::tree::IterListItem< PrevItemT, NodeVecT, 1, _Level >::NCChildT

NodeT's child node type with const qualifiers removed.

Definition at line 566 of file TreeIterator.h.

template<typename PrevItemT , typename NodeVecT , Index _Level>
typedef IterT::NonConstNodeType openvdb::OPENVDB_VERSION_NAME::tree::IterListItem< PrevItemT, NodeVecT, 1, _Level >::NCNodeT

The type of the node with const qualifiers removed ("Non-Const")

Definition at line 560 of file TreeIterator.h.

template<typename PrevItemT , typename NodeVecT , Index _Level>
typedef IterT::NonConstValueType openvdb::OPENVDB_VERSION_NAME::tree::IterListItem< PrevItemT, NodeVecT, 1, _Level >::NCValueT

The type of value (with const qualifiers removed) to which the iterator points.

Definition at line 562 of file TreeIterator.h.

template<typename PrevItemT , typename NodeVecT , Index _Level>
typedef IterT::NodeType openvdb::OPENVDB_VERSION_NAME::tree::IterListItem< PrevItemT, NodeVecT, 1, _Level >::NodeT

The type of node over which IterT iterates (e.g., const RootNode<...>)

Definition at line 558 of file TreeIterator.h.

template<typename PrevItemT , typename NodeVecT , Index _Level>
typedef PrevItemT::IterT openvdb::OPENVDB_VERSION_NAME::tree::IterListItem< PrevItemT, NodeVecT, 1, _Level >::PrevIterT

The type of iterator stored in the previous list item.

Definition at line 552 of file TreeIterator.h.

Constructor & Destructor Documentation

template<typename PrevItemT , typename NodeVecT , Index _Level>
openvdb::OPENVDB_VERSION_NAME::tree::IterListItem< PrevItemT, NodeVecT, 1, _Level >::IterListItem ( PrevItemT *  prev)
inline

Definition at line 571 of file TreeIterator.h.

template<typename PrevItemT , typename NodeVecT , Index _Level>
openvdb::OPENVDB_VERSION_NAME::tree::IterListItem< PrevItemT, NodeVecT, 1, _Level >::IterListItem ( const IterListItem< PrevItemT, NodeVecT, 1, _Level > &  other)
inline

Definition at line 573 of file TreeIterator.h.

Member Function Documentation

template<typename PrevItemT , typename NodeVecT , Index _Level>
bool openvdb::OPENVDB_VERSION_NAME::tree::IterListItem< PrevItemT, NodeVecT, 1, _Level >::down ( Index  lvl)
inline

Definition at line 611 of file TreeIterator.h.

template<typename PrevItemT , typename NodeVecT , Index _Level>
Index openvdb::OPENVDB_VERSION_NAME::tree::IterListItem< PrevItemT, NodeVecT, 1, _Level >::getChildDim ( Index  lvl) const
inline

Definition at line 623 of file TreeIterator.h.

template<typename PrevItemT , typename NodeVecT , Index _Level>
Coord openvdb::OPENVDB_VERSION_NAME::tree::IterListItem< PrevItemT, NodeVecT, 1, _Level >::getCoord ( Index  lvl) const
inline

Definition at line 622 of file TreeIterator.h.

template<typename PrevItemT , typename NodeVecT , Index _Level>
void openvdb::OPENVDB_VERSION_NAME::tree::IterListItem< PrevItemT, NodeVecT, 1, _Level >::getNode ( Index  lvl,
NodeT *&  node 
) const
inline

Definition at line 590 of file TreeIterator.h.

template<typename PrevItemT , typename NodeVecT , Index _Level>
const NCValueT& openvdb::OPENVDB_VERSION_NAME::tree::IterListItem< PrevItemT, NodeVecT, 1, _Level >::getValue ( Index  lvl) const
inline

Definition at line 628 of file TreeIterator.h.

template<typename PrevItemT , typename NodeVecT , Index _Level>
Index64 openvdb::OPENVDB_VERSION_NAME::tree::IterListItem< PrevItemT, NodeVecT, 1, _Level >::getVoxelCount ( Index  lvl) const
inline

Definition at line 624 of file TreeIterator.h.

template<typename PrevItemT , typename NodeVecT , Index _Level>
template<typename OtherIterListItemT >
void openvdb::OPENVDB_VERSION_NAME::tree::IterListItem< PrevItemT, NodeVecT, 1, _Level >::initLevel ( Index  lvl,
OtherIterListItemT &  otherListItem 
)
inline

Definition at line 596 of file TreeIterator.h.

template<typename PrevItemT , typename NodeVecT , Index _Level>
bool openvdb::OPENVDB_VERSION_NAME::tree::IterListItem< PrevItemT, NodeVecT, 1, _Level >::isValueOn ( Index  lvl) const
inline

Definition at line 626 of file TreeIterator.h.

template<typename PrevItemT , typename NodeVecT , Index _Level>
template<typename ModifyOp >
void openvdb::OPENVDB_VERSION_NAME::tree::IterListItem< PrevItemT, NodeVecT, 1, _Level >::modifyValue ( Index  lvl,
const ModifyOp &  op 
) const
inline

Definition at line 640 of file TreeIterator.h.

template<typename PrevItemT , typename NodeVecT , Index _Level>
bool openvdb::OPENVDB_VERSION_NAME::tree::IterListItem< PrevItemT, NodeVecT, 1, _Level >::next ( Index  lvl)
inline

Definition at line 609 of file TreeIterator.h.

template<typename PrevItemT , typename NodeVecT , Index _Level>
IterListItem& openvdb::OPENVDB_VERSION_NAME::tree::IterListItem< PrevItemT, NodeVecT, 1, _Level >::operator= ( const IterListItem< PrevItemT, NodeVecT, 1, _Level > &  other)
inline

<

Note
external call to updateBackPointers() required

Definition at line 574 of file TreeIterator.h.

template<typename PrevItemT , typename NodeVecT , Index _Level>
Index openvdb::OPENVDB_VERSION_NAME::tree::IterListItem< PrevItemT, NodeVecT, 1, _Level >::pos ( Index  lvl) const
inline

Definition at line 605 of file TreeIterator.h.

template<typename PrevItemT , typename NodeVecT , Index _Level>
void openvdb::OPENVDB_VERSION_NAME::tree::IterListItem< PrevItemT, NodeVecT, 1, _Level >::setIter ( const IterT iter)
inline

Definition at line 588 of file TreeIterator.h.

template<typename PrevItemT , typename NodeVecT , Index _Level>
void openvdb::OPENVDB_VERSION_NAME::tree::IterListItem< PrevItemT, NodeVecT, 1, _Level >::setValue ( Index  lvl,
const NCValueT val 
) const
inline

Definition at line 635 of file TreeIterator.h.

template<typename PrevItemT , typename NodeVecT , Index _Level>
void openvdb::OPENVDB_VERSION_NAME::tree::IterListItem< PrevItemT, NodeVecT, 1, _Level >::setValueOff ( Index  lvl) const
inline

Definition at line 637 of file TreeIterator.h.

template<typename PrevItemT , typename NodeVecT , Index _Level>
void openvdb::OPENVDB_VERSION_NAME::tree::IterListItem< PrevItemT, NodeVecT, 1, _Level >::setValueOn ( Index  lvl,
bool  on = true 
) const
inline

Definition at line 636 of file TreeIterator.h.

template<typename PrevItemT , typename NodeVecT , Index _Level>
bool openvdb::OPENVDB_VERSION_NAME::tree::IterListItem< PrevItemT, NodeVecT, 1, _Level >::test ( Index  lvl) const
inline

Definition at line 607 of file TreeIterator.h.

template<typename PrevItemT , typename NodeVecT , Index _Level>
void openvdb::OPENVDB_VERSION_NAME::tree::IterListItem< PrevItemT, NodeVecT, 1, _Level >::updateBackPointers ( PrevItemT *  prev)
inline

Definition at line 583 of file TreeIterator.h.

Member Data Documentation

template<typename PrevItemT , typename NodeVecT , Index _Level>
const Index openvdb::OPENVDB_VERSION_NAME::tree::IterListItem< PrevItemT, NodeVecT, 1, _Level >::Level = _Level
static

NodeT's level in its tree (0 = LeafNode)

Definition at line 569 of file TreeIterator.h.


The documentation for this class was generated from the following file: