cartobase  5.0.5
carto::IterableInterface Class Referenceabstract

Container objects which can be iterated. More...

#include <cartobase/object/object.h>

Inheritance diagram for carto::IterableInterface:
Collaboration diagram for carto::IterableInterface:

Public Member Functions

virtual ~IterableInterface ()
 
virtual bool isIterable () const
 Returns false if the stored object doesn't actually implement the IterableInterface API (needed since all GenericObject inherit this interface whatever they actually contain) More...
 
virtual Object objectIterator () const =0
 returns an object implementing the IteratorIntrerface More...
 
virtual bool operator== (const IterableInterface &other) const
 equality test More...
 
virtual bool operator!= (const IterableInterface &other) const
 
- Public Member Functions inherited from carto::Interface
virtual ~Interface ()
 

Detailed Description

Container objects which can be iterated.

Definition at line 196 of file object.h.

Constructor & Destructor Documentation

◆ ~IterableInterface()

virtual carto::IterableInterface::~IterableInterface ( )
virtual

Member Function Documentation

◆ isIterable()

virtual bool carto::IterableInterface::isIterable ( ) const
virtual

Returns false if the stored object doesn't actually implement the IterableInterface API (needed since all GenericObject inherit this interface whatever they actually contain)

Reimplemented in carto::TypedObject< T >, and carto::TypedObject< SyntaxedInterfaceType< T > >.

◆ objectIterator()

virtual Object carto::IterableInterface::objectIterator ( ) const
pure virtual

◆ operator!=()

virtual bool carto::IterableInterface::operator!= ( const IterableInterface other) const
inlinevirtual

Definition at line 211 of file object.h.

References operator==().

◆ operator==()

virtual bool carto::IterableInterface::operator== ( const IterableInterface other) const
virtual

equality test


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