Class that defines reflective interfaces for maps. More...
#include <SPL/Runtime/Type/BaseMap.h>

Public Member Functions |
|
| virtual | ~Map () |
| virtual int32_t | getSize () const =0 |
| virtual MapIterator | findElement (const ConstValueHandle &key)=0 |
| virtual ConstMapIterator | findElement (const ConstValueHandle &key) const =0 |
| virtual void | insertElement (const ConstValueHandle &key, const ConstValueHandle &value)=0 |
| virtual void | removeElement (const ConstValueHandle &key)=0 |
| virtual void | removeAllElements ()=0 |
| virtual std::pair< Meta::Type, Meta::Type > |
getElementMetaType () const =0 |
| virtual Meta::Type | getKeyMetaType () const =0 |
| virtual Meta::Type | getValueMetaType () const =0 |
| virtual std::pair< ValueHandle, ValueHandle > |
createElement () const =0 |
| virtual ValueHandle | createKey () const =0 |
| virtual ValueHandle | createValue () const =0 |
| virtual MapIterator | getBeginIterator ()=0 |
| virtual ConstMapIterator | getBeginIterator () const =0 |
| virtual MapIterator | getEndIterator ()=0 |
| virtual ConstMapIterator | getEndIterator () const =0 |
| const Map & | operator= (const Map &ov) |
Public Member Functions inherited from SPL::Collection |
|
| virtual | ~Collection () |
| Destructor. |
|
| virtual bool | equals (const Collection &ot) const =0 |
| virtual Collection * | clone () const =0 |
| virtual void | assignFrom (const Collection &ot)=0 |
| virtual void | swapWith (Collection &ot)=0 |
| virtual void | serialize (std::ostream &ostr) const =0 |
| virtual void | serializeWithPrecision (std::ostream &ostr) const =0 |
| virtual void | deserialize (std::istream &istr, bool withSuffix=false)=0 |
| virtual size_t | hashCode () const =0 |
| virtual size_t | getSerializedSize () const =0 |
Protected Member Functions |
|
| virtual const MapIterManager & | getIterManager () const =0 |
Class that defines reflective interfaces for maps.
|
inlinevirtual |
Destructor
|
pure virtual |
Get the size of the map
Implemented in SPL::bmap< K, V, msize >, and SPL::map< K, V >.
|
pure virtual |
Find an element in the map
| key | value handle for the key |
Implemented in SPL::bmap< K, V, msize >, and SPL::map< K, V >.
|
pure virtual |
Find an element in the map
| key | value handle for the key |
Implemented in SPL::bmap< K, V, msize >, and SPL::map< K, V >.
|
pure virtual |
Insert a given key value pair
| key | value handle for the key |
| value | value handle for the value |
Implemented in SPL::bmap< K, V, msize >, and SPL::map< K, V >.
|
pure virtual |
remove the element with a given key
| key | value handle for the key |
Implemented in SPL::bmap< K, V, msize >, and SPL::map< K, V >.
|
pure virtual |
Remove all elements
Implemented in SPL::bmap< K, V, msize >, and SPL::map< K, V >.
|
pure virtual |
Get element type
Implemented in SPL::bmap< K, V, msize >, and SPL::map< K, V >.
|
pure virtual |
Get key type
Implemented in SPL::bmap< K, V, msize >, and SPL::map< K, V >.
|
pure virtual |
Get value type
Implemented in SPL::bmap< K, V, msize >, and SPL::map< K, V >.
|
pure virtual |
Create a new element. The returned value handles are wrappers for objects allocated on the heap. As a result, the caller is responsible for cleaning up the memory by calling ValueHandle::deleteValue()
Implemented in SPL::bmap< K, V, msize >, and SPL::map< K, V >.
|
pure virtual |
Create a new key. The returned value handle is a wrapper for an object allocated on the heap. As a result, the caller is responsible for cleaning up the memory by calling ValueHandle::deleteValue()
Implemented in SPL::bmap< K, V, msize >, and SPL::map< K, V >.
|
pure virtual |
Create a new key. The returned value handle is a wrapper for an object allocated on the heap. As a result, the caller is responsible for cleaning up the memory by calling ValueHandle::deleteValue()
Implemented in SPL::bmap< K, V, msize >, and SPL::map< K, V >.
|
pure virtual |
Get a begin iterator
Implemented in SPL::bmap< K, V, msize >, and SPL::map< K, V >.
|
pure virtual |
Get a begin const iterator
Implemented in SPL::bmap< K, V, msize >, and SPL::map< K, V >.
|
pure virtual |
Get an end iterator
Implemented in SPL::bmap< K, V, msize >, and SPL::map< K, V >.
|
pure virtual |
Get an end cost iterator
Implemented in SPL::bmap< K, V, msize >, and SPL::map< K, V >.
|
protectedpure virtual |
Implemented in SPL::map< K, V >.