Samchon Framework for CPP  1.0.0
samchon::namtree::NTIterator Class Referenceabstract

Iterator of historical data. More...

#include <NTIterator.hpp>

Collaboration diagram for samchon::namtree::NTIterator:

Public Member Functions

 NTIterator (const NTEntityGroup *)
 Construt from historical data. More...
 
virtual auto operator-- () const -> std::shared_ptr< NTIterator >=0
 Get iterator to previous element. More...
 
virtual auto operator++ () const -> std::shared_ptr< NTIterator >=0
 Get iterator to next element. More...
 
virtual auto operator== (const NTIterator &) const -> bool=0
 Whether an iterator is equal with the iterator. More...
 
virtual auto operator< (const NTIterator &) const -> bool=0
 Whether the iterator is less than an iterator. More...
 
- Public Member Functions inherited from samchon::library::IOperator< NTIterator >
 IOperator ()
 Default Constructor. More...
 
virtual auto operator< (const IOperator &) const -> bool=0
 Less. More...
 
virtual auto operator== (const IOperator &) const -> bool=0
 Equal. More...
 

Protected Attributes

const NTEntityGroupdata
 A historical data, source of the iterator. More...
 

Detailed Description

Iterator of historical data.

NTIterator is an abstract iterator of NTEntityGroup.

namtree_criteria.png
See also
samchon::namtree
Author
Jeongho Nam http://samchon.org

Definition at line 26 of file NTIterator.hpp.

Constructor & Destructor Documentation

NTIterator::NTIterator ( const NTEntityGroup data)

Construt from historical data.

Definition at line 6 of file NTIterator.cpp.

References data.

Member Function Documentation

virtual auto samchon::namtree::NTIterator::operator-- ( ) const -> std::shared_ptr< NTIterator >
pure virtual

Get iterator to previous element.

If current iterator is the first item(equal with begin()), returns end().

Returns
An iterator of the previous item.
virtual auto samchon::namtree::NTIterator::operator++ ( ) const -> std::shared_ptr< NTIterator >
pure virtual

Get iterator to next element.

If current iterator is the last item, returns end().

Returns
An iterator of the next item.
virtual auto samchon::namtree::NTIterator::operator== ( const NTIterator ) const -> bool
pure virtual

Whether an iterator is equal with the iterator.

Compare two iterators and returns whether they are equal or not.

Parameters
objAn iterator to compare
Returns
Indicates whether equal or not.
virtual auto samchon::namtree::NTIterator::operator< ( const NTIterator ) const -> bool
pure virtual

Whether the iterator is less than an iterator.

Compare two iterators and returns whether this iterator is less.

Parameters
objAn iterator to compare
Returns
Indicates whether less or not.

Member Data Documentation

const NTEntityGroup* samchon::namtree::NTIterator::data
protected

A historical data, source of the iterator.

Definition at line 36 of file NTIterator.hpp.

Referenced by NTIterator().


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