cartobase  4.5.0
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 195 of file object.h.

Constructor & Destructor Documentation

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

Member Function Documentation

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 > >.

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

returns an object implementing the IteratorIntrerface

Implemented in carto::TypedObject< T >, carto::TypedObject< SyntaxedInterfaceType< T > >, and carto::PropertySet.

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

Definition at line 210 of file object.h.

References operator==().

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

equality test

Referenced by operator!=().


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