HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SdfPathTable< MappedType >::Iterator< ValType, EntryPtr > Class Template Reference

#include <pathTable.h>

Public Types

using iterator_category = std::forward_iterator_tag
 
using value_type = ValType
 
using reference = ValType &
 
using pointer = ValType *
 
using difference_type = std::ptrdiff_t
 

Public Member Functions

 Iterator ()=default
 
template<class OtherVal , class OtherEntryPtr >
 Iterator (Iterator< OtherVal, OtherEntryPtr > const &other)
 Copy constructor (also allows for converting non-const to const). More...
 
reference operator* () const
 
pointer operator-> () const
 
Iteratoroperator++ ()
 
Iterator operator++ (int)
 
template<class OtherVal , class OtherEntryPtr >
bool operator== (Iterator< OtherVal, OtherEntryPtr > const &other) const
 
template<class OtherVal , class OtherEntryPtr >
bool operator!= (Iterator< OtherVal, OtherEntryPtr > const &other) const
 
Iterator GetNextSubtree () const
 
bool HasChild () const
 

Protected Member Functions

 Iterator (EntryPtr entry)
 
void increment ()
 
template<class OtherVal , class OtherEntryPtr >
bool equal (Iterator< OtherVal, OtherEntryPtr > const &other) const
 
ValType & dereference () const
 

Protected Attributes

EntryPtr _entry
 

Friends

class SdfPathTable
 
template<class , class >
class Iterator
 

Detailed Description

template<class MappedType>
template<class ValType, class EntryPtr>
class SdfPathTable< MappedType >::Iterator< ValType, EntryPtr >

Definition at line 203 of file pathTable.h.

Member Typedef Documentation

template<class MappedType>
template<class ValType, class EntryPtr>
using SdfPathTable< MappedType >::Iterator< ValType, EntryPtr >::difference_type = std::ptrdiff_t

Definition at line 210 of file pathTable.h.

template<class MappedType>
template<class ValType, class EntryPtr>
using SdfPathTable< MappedType >::Iterator< ValType, EntryPtr >::iterator_category = std::forward_iterator_tag

Definition at line 206 of file pathTable.h.

template<class MappedType>
template<class ValType, class EntryPtr>
using SdfPathTable< MappedType >::Iterator< ValType, EntryPtr >::pointer = ValType*

Definition at line 209 of file pathTable.h.

template<class MappedType>
template<class ValType, class EntryPtr>
using SdfPathTable< MappedType >::Iterator< ValType, EntryPtr >::reference = ValType&

Definition at line 208 of file pathTable.h.

template<class MappedType>
template<class ValType, class EntryPtr>
using SdfPathTable< MappedType >::Iterator< ValType, EntryPtr >::value_type = ValType

Definition at line 207 of file pathTable.h.

Constructor & Destructor Documentation

template<class MappedType>
template<class ValType, class EntryPtr>
SdfPathTable< MappedType >::Iterator< ValType, EntryPtr >::Iterator ( )
default

The standard requires default construction but places practically no requirements on the semantics of default-constructed iterators.

template<class MappedType>
template<class ValType, class EntryPtr>
template<class OtherVal , class OtherEntryPtr >
SdfPathTable< MappedType >::Iterator< ValType, EntryPtr >::Iterator ( Iterator< OtherVal, OtherEntryPtr > const &  other)
inline

Copy constructor (also allows for converting non-const to const).

Definition at line 218 of file pathTable.h.

template<class MappedType>
template<class ValType, class EntryPtr>
SdfPathTable< MappedType >::Iterator< ValType, EntryPtr >::Iterator ( EntryPtr  entry)
inlineexplicitprotected

Definition at line 280 of file pathTable.h.

Member Function Documentation

template<class MappedType>
template<class ValType, class EntryPtr>
ValType& SdfPathTable< MappedType >::Iterator< ValType, EntryPtr >::dereference ( ) const
inlineprotected

Definition at line 300 of file pathTable.h.

template<class MappedType>
template<class ValType, class EntryPtr>
template<class OtherVal , class OtherEntryPtr >
bool SdfPathTable< MappedType >::Iterator< ValType, EntryPtr >::equal ( Iterator< OtherVal, OtherEntryPtr > const &  other) const
inlineprotected

Definition at line 295 of file pathTable.h.

template<class MappedType>
template<class ValType, class EntryPtr>
Iterator SdfPathTable< MappedType >::Iterator< ValType, EntryPtr >::GetNextSubtree ( ) const
inline

Return an iterator e, defining a maximal range [*this, e) such that for all i in the range, i->first is (*this)->first or is prefixed by (*this)->first.

Definition at line 249 of file pathTable.h.

template<class MappedType>
template<class ValType, class EntryPtr>
bool SdfPathTable< MappedType >::Iterator< ValType, EntryPtr >::HasChild ( ) const
inline

Returns true if incrementing this iterator would move to a child entry, false otherwise.

Definition at line 272 of file pathTable.h.

template<class MappedType>
template<class ValType, class EntryPtr>
void SdfPathTable< MappedType >::Iterator< ValType, EntryPtr >::increment ( )
inlineprotected

Definition at line 286 of file pathTable.h.

template<class MappedType>
template<class ValType, class EntryPtr>
template<class OtherVal , class OtherEntryPtr >
bool SdfPathTable< MappedType >::Iterator< ValType, EntryPtr >::operator!= ( Iterator< OtherVal, OtherEntryPtr > const &  other) const
inline

Definition at line 242 of file pathTable.h.

template<class MappedType>
template<class ValType, class EntryPtr>
reference SdfPathTable< MappedType >::Iterator< ValType, EntryPtr >::operator* ( ) const
inline

Definition at line 222 of file pathTable.h.

template<class MappedType>
template<class ValType, class EntryPtr>
Iterator& SdfPathTable< MappedType >::Iterator< ValType, EntryPtr >::operator++ ( )
inline

Definition at line 225 of file pathTable.h.

template<class MappedType>
template<class ValType, class EntryPtr>
Iterator SdfPathTable< MappedType >::Iterator< ValType, EntryPtr >::operator++ ( int  )
inline

Definition at line 230 of file pathTable.h.

template<class MappedType>
template<class ValType, class EntryPtr>
pointer SdfPathTable< MappedType >::Iterator< ValType, EntryPtr >::operator-> ( ) const
inline

Definition at line 223 of file pathTable.h.

template<class MappedType>
template<class ValType, class EntryPtr>
template<class OtherVal , class OtherEntryPtr >
bool SdfPathTable< MappedType >::Iterator< ValType, EntryPtr >::operator== ( Iterator< OtherVal, OtherEntryPtr > const &  other) const
inline

Definition at line 237 of file pathTable.h.

Friends And Related Function Documentation

template<class MappedType>
template<class ValType, class EntryPtr>
template<class , class >
friend class Iterator
friend

Definition at line 278 of file pathTable.h.

template<class MappedType>
template<class ValType, class EntryPtr>
friend class SdfPathTable
friend

Definition at line 277 of file pathTable.h.

Member Data Documentation

template<class MappedType>
template<class ValType, class EntryPtr>
EntryPtr SdfPathTable< MappedType >::Iterator< ValType, EntryPtr >::_entry
protected

Definition at line 305 of file pathTable.h.


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