cartobase
4.7.0
|
All scalar numbers implement the ScalarInterface (all ints, float, double...) More...
#include <cartobase/object/object.h>
Public Member Functions | |
virtual | ~ScalarInterface () |
virtual bool | isScalar () const |
Returns false if the stored object doesn't actually implement the ScalarInterface API (needed since all GenericObject inherit this interface whatever they actually contain) More... | |
virtual double | getScalar () const =0 |
Obtain a scalar value, possibly after a conversion. More... | |
virtual void | setScalar (double)=0 |
The double value will be converted to the actual storage type before it is set in the contained object. More... | |
virtual bool | operator== (const ScalarInterface &other) const |
equality test More... | |
virtual bool | operator!= (const ScalarInterface &other) const |
![]() | |
virtual | ~Interface () |
All scalar numbers implement the ScalarInterface (all ints, float, double...)
|
virtual |
|
pure virtual |
Obtain a scalar value, possibly after a conversion.
This method may throw an exception if the stored object has not a scalar-compatible interface
Implemented in carto::TypedObject< T >, and carto::TypedObject< SyntaxedInterfaceType< T > >.
|
virtual |
Returns false if the stored object doesn't actually implement the ScalarInterface API (needed since all GenericObject inherit this interface whatever they actually contain)
Reimplemented in carto::TypedObject< T >, and carto::TypedObject< SyntaxedInterfaceType< T > >.
Referenced by carto::TypedObject< SyntaxedInterfaceType< T > >::operator==().
|
inlinevirtual |
Definition at line 133 of file object.h.
References operator==().
|
virtual |
equality test
|
pure virtual |
The double value will be converted to the actual storage type before it is set in the contained object.
This method may throw an exception if the stored object has not a scalar-compatible interface
Implemented in carto::TypedObject< T >, and carto::TypedObject< SyntaxedInterfaceType< T > >.