All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Valuable::ArchiveIteratorImpl Class Referenceabstract

Classes that implement this interface provide the functionality for ArchiveIterator for one specific element type. More...

#include <Valuable/Archive.hpp>

Inheritance diagram for Valuable::ArchiveIteratorImpl:
Valuable::XMLArchiveElement::XMLIterator

Public Member Functions

virtual std::shared_ptr
< ArchiveElementImpl
get () const =0
 Fetch the current element or empty Smart pointer on non-valid iterators. More...
 
virtual bool isValid () const =0
 Check if the iterator still points to valid element. More...
 
virtual void next ()=0
 Moves the iterator to the next element.
 
virtual bool operator== (const ArchiveIteratorImpl &other) const =0
 Check if two iterators point to the same object. More...
 
virtual ~ArchiveIteratorImpl ()
 Virtual destructor.
 

Detailed Description

Classes that implement this interface provide the functionality for ArchiveIterator for one specific element type.

This is used to iterate ArchiveElement children. All functions are called from ArchiveIterator.

Member Function Documentation

virtual std::shared_ptr<ArchiveElementImpl> Valuable::ArchiveIteratorImpl::get ( ) const
pure virtual

Fetch the current element or empty Smart pointer on non-valid iterators.

Returns
Smart pointer to current child element implementation

Implemented in Valuable::XMLArchiveElement::XMLIterator.

virtual bool Valuable::ArchiveIteratorImpl::isValid ( ) const
pure virtual

Check if the iterator still points to valid element.

Returns
True if get() would return valid element.

Implemented in Valuable::XMLArchiveElement::XMLIterator.

virtual bool Valuable::ArchiveIteratorImpl::operator== ( const ArchiveIteratorImpl other) const
pure virtual

Check if two iterators point to the same object.

Parameters
otherThe seond iterator implementation to check.
Returns
True if the iterators point to the same object.

Implemented in Valuable::XMLArchiveElement::XMLIterator.