h5cpp  0.6
A modern C++ wrapper for the HDF5 C library
hdf5::node::NodeIterator Class Reference

bidirectional NodeIterator More...

#include <node_iterator.hpp>

Inheritance diagram for hdf5::node::NodeIterator:
Collaboration diagram for hdf5::node::NodeIterator:

Public Types

using value_type = Node
 
using pointer = value_type *
 
using reference = value_type &
 
using difference_type = ssize_t
 
using iterator_category = std::bidirectional_iterator_tag
 

Public Member Functions

 NodeIterator ()=default
 default constructor More...
 
Node operator* () const
 
Nodeoperator-> ()
 
NodeIteratoroperator++ ()
 
NodeIterator operator++ (int)
 
NodeIteratoroperator-- ()
 
NodeIterator operator-- (int)
 
bool operator== (const NodeIterator &a) const
 
bool operator!= (const NodeIterator &a) const
 
- Public Member Functions inherited from hdf5::Iterator
 Iterator ()
 default constructor More...
 
 Iterator (ssize_t index)
 
 Iterator (const Iterator &)=default
 
Iteratoroperator= (const Iterator &)=default
 
virtual ~Iterator ()
 
Iteratoroperator++ ()
 increment iterator position More...
 
Iteratoroperator-- ()
 
Iterator operator++ (int)
 
Iterator operator-- (int)
 
Iteratoroperator+= (ssize_t i)
 
Iteratoroperator-= (ssize_t i)
 
bool operator== (const Iterator &b) const
 
bool operator< (const Iterator &b) const
 
bool operator<= (const Iterator &b) const
 
bool operator> (const Iterator &b) const
 
bool operator>= (const Iterator &b) const
 
ssize_t index () const
 get state of the iterator More...
 

Static Public Member Functions

static NodeIterator begin (const Group &group)
 get iterator to first element More...
 
static NodeIterator end (const Group &group)
 get iterator to last+1 element More...
 

Detailed Description

This iterator iterates over the direct children (nodes) of a group. It is a full random access iterator using the index access methods provided by the NodeView interface.

The interface follows the C++ specification for bidirectional constant iterators. See C++ reference on iterators for details.

Member Typedef Documentation

◆ difference_type

◆ iterator_category

using hdf5::node::NodeIterator::iterator_category = std::bidirectional_iterator_tag

◆ pointer

◆ reference

◆ value_type

Constructor & Destructor Documentation

◆ NodeIterator()

hdf5::node::NodeIterator::NodeIterator ( )
default

Member Function Documentation

◆ begin()

static NodeIterator hdf5::node::NodeIterator::begin ( const Group group)
static

Static factory function returning an iterator to the first child of a group.

Parameters
groupreference to the group over which to iterate
Returns
instance of NodeIterator

◆ end()

static NodeIterator hdf5::node::NodeIterator::end ( const Group group)
static

Static factory function returning an iterator to the last+1 child of the given group.

Parameters
groupreference to the group over which to iterate
Returns
instance of NodeIterator

◆ operator!=()

bool hdf5::node::NodeIterator::operator!= ( const NodeIterator a) const

◆ operator*()

Node hdf5::node::NodeIterator::operator* ( ) const

◆ operator++() [1/2]

NodeIterator& hdf5::node::NodeIterator::operator++ ( )

◆ operator++() [2/2]

NodeIterator hdf5::node::NodeIterator::operator++ ( int  )

◆ operator--() [1/2]

NodeIterator& hdf5::node::NodeIterator::operator-- ( )

◆ operator--() [2/2]

NodeIterator hdf5::node::NodeIterator::operator-- ( int  )

◆ operator->()

Node* hdf5::node::NodeIterator::operator-> ( )

◆ operator==()

bool hdf5::node::NodeIterator::operator== ( const NodeIterator a) const

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