| cartobase
    5.1.2
    | 
storage wrapper, derived and instanciable template class More...
#include <cartobase/object/object.h>


| Public Member Functions | |
| ValueObject () | |
| ValueObject (const T &x) | |
| virtual | ~ValueObject () | 
| virtual T & | getValue () | 
| virtual Object | clone () const | 
| cloning copy  More... | |
|  Public Member Functions inherited from carto::TypedObject< T > | |
| TypedObject () | |
| virtual | ~TypedObject () | 
| const T & | getValue () const | 
| virtual void | setValue (Object val) | 
| virtual std::string | type () const | 
| type() returns the DataTypeCode::name() of the underlying object type  More... | |
| 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 | 
| Obtain a scalar value, possibly after a conversion.  More... | |
| virtual void | setScalar (double) | 
| The double value will be converted to the actual storage type before it is set in the contained object.  More... | |
| virtual bool | isString () const | 
| Returns false if the stored object doesn't actually implement the StringInterface API (needed since all GenericObject inherit this interface whatever they actually contain)  More... | |
| virtual std::string | getString () const | 
| Obtain a string value, possibly after a conversion.  More... | |
| virtual void | setString (const std::string &) | 
| The string value may be converted to the actual storage type before it is set in the contained object.  More... | |
| virtual bool | isArray () const | 
| Returns false if the stored object doesn't actually implement the ArrayInterface API (needed since all GenericObject inherit this interface whatever they actually contain)  More... | |
| virtual bool | isContiguous () const | 
| Tells if array indices are contiguous (as in a vector), contrarily to an int key dictionary.  More... | |
| virtual bool | hasItem (int index) const | 
| Tells if array item index actually exists.  More... | |
| virtual Object | getArrayItem (int index) const | 
| Get the element of index index.  More... | |
| virtual void | setArrayItem (int, Object) | 
| virtual size_t | size () const | 
| Number of sub-elements.  More... | |
| virtual bool | isDynArray () const | 
| Returns false if the stored object doesn't actually implement the DynArrayInterface API (needed since all GenericObject inherit this interface whatever they actually contain)  More... | |
| virtual void | reserveArray (size_t) | 
| like the STL vector::reserve(), memory is reserved but no element is stored  More... | |
| virtual void | resizeArray (size_t) | 
| resize the array.  More... | |
| virtual void | removeArrayItem (int) | 
| removes an element from the array.  More... | |
| virtual void | insertArrayItem (int, Object) | 
| inserts an element into the array.  More... | |
| virtual bool | getProperty (const std::string &, Object &) const | 
| Access the element ok key key.  More... | |
| virtual bool | isDictionary () const | 
| Returns false if the stored object doesn't actually implement the DictionaryInterface API (needed since all GenericObject inherit this interface whatever they actually contain)  More... | |
| virtual void | setProperty (const std::string &, Object) | 
| Set (insert or replace) the element of key keywith thevalueobject.  More... | |
| virtual bool | removeProperty (const std::string &) | 
| remove an element.  More... | |
| virtual bool | hasProperty (const std::string &) const | 
| check if an element exists under the key keyMore... | |
| virtual void | clearProperties () | 
| clear the dictionary  More... | |
| 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 | 
| returns an object implementing the IteratorIntrerface  More... | |
| virtual bool | isIterator () const | 
| Returns false if the stored object doesn't actually implement the IteratorInterface API (needed since all GenericObject inherit this interface whatever they actually contain)  More... | |
| virtual bool | isValid () const | 
| trueif the iterator points to a valid value,falsewhen the end of the iterable container has been reached  More... | |
| virtual Object | currentValue () const | 
| Access the value of the element pointed to by the iterator.  More... | |
| virtual void | next () | 
| Point to the next element of the iterable container.  More... | |
| virtual bool | isKeyIterator () const | 
| Returns false if the stored object doesn't actually implement the DictionaryIteratorInterface API (needed since all GenericObject inherit this interface whatever they actually contain)  More... | |
| virtual Object | keyObject () const | 
| Access the key of the current element.  More... | |
| virtual bool | isDictionaryIterator () const | 
| Returns false if the stored object doesn't actually implement the DictionaryIteratorInterface API (needed since all GenericObject inherit this interface whatever they actually contain)  More... | |
| virtual std::string | key () const | 
| Access the key of the current dictionary element.  More... | |
| virtual bool | isIntKeyIterator () const | 
| Returns false if the stored object doesn't actually implement the DictionaryIteratorInterface API (needed since all GenericObject inherit this interface whatever they actually contain)  More... | |
| virtual long | intKey () const | 
| Access the key of the current dictionary element.  More... | |
| virtual bool | isNone () const | 
| Returns false if the stored object doesn't actually implement the NoneInterface API (needed since all GenericObject inherit this interface whatever they actually contain)  More... | |
| virtual bool | operator== (const GenericObject &other) const | 
| virtual bool | getProperty (const std::string &key, Object &value) const=0 | 
| Access the element ok key key.  More... | |
| Object | getProperty (const std::string &) const | 
| same as the other getProperty() functions except that the value object is returned.  More... | |
| Object | getProperty (Object key) const | 
| same as the other getProperty() functions except that the key is contained in the keyargument (which must implement the StringInterface).  More... | |
| template<typename T > | |
| bool | getProperty (const std::string &key, T &value) const | 
| same as the other getProperty() functions except that the value object must be of exact type Tand is copied to thevalueargument.  More... | |
| template<> | |
| bool | getProperty (const std::string &key, Object &value) const | 
| virtual void | setProperty (const std::string &key, Object value)=0 | 
| Set (insert or replace) the element of key keywith thevalueobject.  More... | |
| void | setProperty (const std::string &, const char *) | 
| specific specialization: C strings are stored as std::string objects  More... | |
| template<typename T > | |
| void | setProperty (const std::string &, const T &) | 
| same as the other setProperty() functions except that the value to be set is of the arbitrary type Tand will possibly be stored in an Object.  More... | |
| template<> | |
| void | setProperty (const std::string &key, Object const &value) | 
|  Public Member Functions inherited from carto::GenericObject | |
| virtual | ~GenericObject () | 
| template<typename T > | |
| const T & | value () const | 
| Retrieve value in object, const reference.  More... | |
| template<typename T > | |
| T & | value () | 
| Retrieve value in object, by non-const reference.  More... | |
| template<typename T > | |
| bool | value (T &) const | 
| Retrieve value in object, and store it in a variable.  More... | |
| template<typename T > | |
| void | setValue (const T &val) | 
| Store value in object by copying it.  More... | |
| template<typename T > | |
| T * | getInterface () | 
| Obtain a specific Interface subclass.  More... | |
| template<typename T > | |
| const T * | getInterface () const | 
| const access to an interface  More... | |
| virtual bool | operator!= (const GenericObject &other) const | 
|  Public Member Functions inherited from carto::RCObject | |
| RCObject () | |
| RCObject (const RCObject &) | |
| RCObject & | operator= (const RCObject &) | 
| virtual | ~RCObject () | 
|  Public Member Functions inherited from carto::StringInterface | |
| virtual | ~StringInterface () | 
| virtual bool | operator== (const StringInterface &other) const | 
| equality test  More... | |
| virtual bool | operator!= (const StringInterface &other) const | 
|  Public Member Functions inherited from carto::Interface | |
| virtual | ~Interface () | 
|  Public Member Functions inherited from carto::ScalarInterface | |
| virtual | ~ScalarInterface () | 
| virtual bool | operator== (const ScalarInterface &other) const | 
| equality test  More... | |
| virtual bool | operator!= (const ScalarInterface &other) const | 
|  Public Member Functions inherited from carto::DynArrayInterface | |
| virtual | ~DynArrayInterface () | 
|  Public Member Functions inherited from carto::ArrayInterface | |
| virtual | ~ArrayInterface () | 
|  Public Member Functions inherited from carto::SizeInterface | |
| virtual | ~SizeInterface () | 
|  Public Member Functions inherited from carto::IterableInterface | |
| virtual | ~IterableInterface () | 
| virtual bool | operator== (const IterableInterface &other) const | 
| equality test  More... | |
| virtual bool | operator!= (const IterableInterface &other) const | 
|  Public Member Functions inherited from carto::DictionaryInterface | |
| virtual | ~DictionaryInterface () | 
| Object | getProperty (const std::string &) const | 
| same as the other getProperty() functions except that the value object is returned.  More... | |
| Object | getProperty (Object key) const | 
| same as the other getProperty() functions except that the key is contained in the keyargument (which must implement the StringInterface).  More... | |
| template<typename T > | |
| bool | getProperty (const std::string &key, T &value) const | 
| same as the other getProperty() functions except that the value object must be of exact type Tand is copied to thevalueargument.  More... | |
| void | setProperty (const std::string &, const char *) | 
| specific specialization: C strings are stored as std::string objects  More... | |
| template<typename T > | |
| void | setProperty (const std::string &, const T &) | 
| same as the other setProperty() functions except that the value to be set is of the arbitrary type Tand will possibly be stored in an Object.  More... | |
| virtual void | copyProperties (Object source) | 
| copy all properties of the sourceobject tothisobject.  More... | |
| virtual bool | operator== (const DictionaryInterface &other) const | 
| equality test  More... | |
| virtual bool | operator!= (const DictionaryInterface &other) const | 
| template<> | |
| void | setProperty (const std::string &key, Object const &value) | 
| template<> | |
| bool | getProperty (const std::string &key, Object &value) const | 
|  Public Member Functions inherited from carto::IteratorInterface | |
| virtual | ~IteratorInterface () | 
|  Public Member Functions inherited from carto::KeyIteratorInterface | |
| virtual | ~KeyIteratorInterface () | 
|  Public Member Functions inherited from carto::DictionaryIteratorInterface | |
| virtual | ~DictionaryIteratorInterface () | 
|  Public Member Functions inherited from carto::IntKeyIteratorInterface | |
| virtual | ~IntKeyIteratorInterface () | 
|  Public Member Functions inherited from carto::NoneInterface | |
| virtual | ~NoneInterface () | 
| Additional Inherited Members | |
|  Public Types inherited from carto::RCObject | |
| typedef int | RefCounterType | 
storage wrapper, derived and instanciable template class
ValueObject is a GenericObject that stores the template object in it, so it owns its value.
| carto::ValueObject< T >::ValueObject | 
Definition at line 730 of file object_d.h.
| carto::ValueObject< T >::ValueObject | ( | const T & | x | ) | 
Definition at line 736 of file object_d.h.
| 
 | virtual | 
Definition at line 743 of file object_d.h.
| 
 | virtual | 
cloning copy
Reimplemented from carto::TypedObject< T >.
Definition at line 758 of file object_d.h.
References carto::Object::value().
| 
 | virtual | 
Reimplemented from carto::TypedObject< T >.
Definition at line 750 of file object_d.h.