cartobase  5.0.5
carto::SizeInterface Class Referenceabstract

All container objects inherit the SizeInterface. More...

#include <cartobase/object/object.h>

Inheritance diagram for carto::SizeInterface:
Collaboration diagram for carto::SizeInterface:

Public Member Functions

virtual ~SizeInterface ()
 
virtual size_t size () const =0
 Number of sub-elements. More...
 
- Public Member Functions inherited from carto::Interface
virtual ~Interface ()
 

Detailed Description

All container objects inherit the SizeInterface.

Definition at line 177 of file object.h.

Constructor & Destructor Documentation

◆ ~SizeInterface()

virtual carto::SizeInterface::~SizeInterface ( )
virtual

Member Function Documentation

◆ size()

virtual size_t carto::SizeInterface::size ( ) const
pure virtual

Number of sub-elements.

This method may throw an exception if the stored object has not a size-compatible interface

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


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