Class that serves as an interface for the List, Map, and Set classes. More...
#include <SPL/Runtime/Type/Collection.h>

Public Member Functions |
|
| 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 |
|
inlinevirtual |
Destructor.
|
pure virtual |
Compare with another collection
| ot | other collection to compare to |
Implemented in SPL::blist< T, msize >, SPL::bmap< K, V, msize >, SPL::bset< K, msize >, SPL::map< K, V >, SPL::list< T >, and SPL::set< K >.
|
pure virtual |
Create a clone of the collection object
Implemented in SPL::blist< T, msize >, SPL::bmap< K, V, msize >, SPL::bset< K, msize >, SPL::map< K, V >, SPL::list< T >, and SPL::set< K >.
|
pure virtual |
Assign this collection using another collection
| ot | other collection to assign from |
| SPLRuntimeTypeMismatchException | if the types do not match |
Implemented in SPL::blist< T, msize >, SPL::bmap< K, V, msize >, SPL::bset< K, msize >, SPL::map< K, V >, SPL::list< T >, and SPL::set< K >.
|
pure virtual |
Swap this collection with another collection
| ot | other collection to swap with |
| SPLRuntimeTypeMismatchException | if the types do not match |
Implemented in SPL::blist< T, msize >, SPL::bmap< K, V, msize >, SPL::bset< K, msize >, SPL::map< K, V >, SPL::list< T >, and SPL::set< K >.
|
pure virtual |
Serialize (character)
| ostr | output stream |
Implemented in SPL::blist< T, msize >, SPL::bmap< K, V, msize >, SPL::bset< K, msize >, SPL::map< K, V >, SPL::list< T >, and SPL::set< K >.
|
pure virtual |
Serialize (character), with maximum precision for floats
| ostr | output stream |
Implemented in SPL::blist< T, msize >, SPL::bmap< K, V, msize >, SPL::bset< K, msize >, SPL::map< K, V >, SPL::list< T >, and SPL::set< K >.
|
pure virtual |
Deserialize (character)
| istr | input stream |
| withSuffix | if true then consume suffix, otherwise (false) assume no suffix is present |
Implemented in SPL::blist< T, msize >, SPL::bmap< K, V, msize >, SPL::bset< K, msize >, SPL::map< K, V >, SPL::list< T >, and SPL::set< K >.
|
pure virtual |
Get hash code
Implemented in SPL::blist< T, msize >, SPL::bmap< K, V, msize >, SPL::bset< K, msize >, SPL::map< K, V >, SPL::list< T >, and SPL::set< K >.
|
pure virtual |
Get the size in bytes when serialized
Implemented in SPL::blist< T, msize >, SPL::bmap< K, V, msize >, SPL::bset< K, msize >, SPL::map< K, V >, SPL::set< K >, and SPL::list< T >.