Skip to content

sgns::face::GenericIterator

More...

#include <generic_iterator.hpp>

Public Types

Name
using typename Container::value_type value_type

Public Functions

Name
virtual ~GenericIterator() =default
virtual std::unique_ptr< GenericIterator > clone() const =0
virtual value_type * get() =0
virtual value_type const * get() const =0
virtual value_type & operator*() =0
virtual value_type const & operator*() const =0
virtual GenericIterator< Container > & operator++() =0
value_type & operator->()
virtual bool operator!=(const GenericIterator< Container > & other) const
bool operator==(const GenericIterator< Container > & other)

Detailed Description

template <typename Container >
class sgns::face::GenericIterator;

Template Parameters:

  • Container over which the iterator would iterate

An interface for an iterator

Public Types Documentation

using value_type

using sgns::face::GenericIterator< Container >::value_type = typename Container::value_type;

Public Functions Documentation

function ~GenericIterator

virtual ~GenericIterator() =default

function clone

virtual std::unique_ptr< GenericIterator > clone() const =0

function get

virtual value_type * get() =0

function get

virtual value_type const * get() const =0

function operator*

virtual value_type & operator*() =0

function operator*

virtual value_type const & operator*() const =0

function operator++

virtual GenericIterator< Container > & operator++() =0

function operator->

inline value_type & operator->()

function operator!=

inline virtual bool operator!=(
    const GenericIterator< Container > & other
) const

function operator==

inline bool operator==(
    const GenericIterator< Container > & other
)

Updated on 2026-03-04 at 13:10:44 -0800