MADNESS  version 0.9
Public Member Functions | List of all members
madness::KeyChildIterator< NDIM > Class Template Reference

Iterates in lexical order thru all children of a key. More...

#include <key.h>

Public Member Functions

 KeyChildIterator ()
 
 KeyChildIterator (const Key< NDIM > &parent)
 
KeyChildIteratoroperator++ ()
 Pre-increment of an iterator (i.e., ++it) More...
 
 operator bool () const
 True if iterator is not at end. More...
 
template<typename Archive >
void serialize (Archive &ar)
 
const Key< NDIM > & key () const
 Returns the key of the child. More...
 

Detailed Description

template<std::size_t NDIM>
class madness::KeyChildIterator< NDIM >

Iterates in lexical order thru all children of a key.

Example usage:

for (KeyChildIterator<NDIM> it(key); it; ++it) print(it.key());

Constructor & Destructor Documentation

template<std::size_t NDIM>
madness::KeyChildIterator< NDIM >::KeyChildIterator ( )
inline
template<std::size_t NDIM>
madness::KeyChildIterator< NDIM >::KeyChildIterator ( const Key< NDIM > &  parent)
inline

Member Function Documentation

template<std::size_t NDIM>
const Key<NDIM>& madness::KeyChildIterator< NDIM >::key ( ) const
inline

Returns the key of the child.

template<std::size_t NDIM>
madness::KeyChildIterator< NDIM >::operator bool ( ) const
inline

True if iterator is not at end.

template<std::size_t NDIM>
KeyChildIterator& madness::KeyChildIterator< NDIM >::operator++ ( )
inline

Pre-increment of an iterator (i.e., ++it)

References NDIM.

template<std::size_t NDIM>
template<typename Archive >
void madness::KeyChildIterator< NDIM >::serialize ( Archive &  ar)
inline

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