Class that defines reflective interfaces for lists. More...
#include <SPL/Runtime/Type/BaseList.h>
Public Member Functions |
|
virtual | ~List () |
virtual int32_t | getSize () const =0 |
virtual ValueHandle | getElement (const size_t &i)=0 |
virtual ConstValueHandle | getElement (const size_t &i) const =0 |
virtual ValueHandle | getElement (const ConstListIterator &it)=0 |
virtual ConstValueHandle | getElement (const ConstListIterator &it) const =0 |
virtual void | insertElement (const ConstListIterator &it, const ConstValueHandle &v)=0 |
virtual void | removeElement (const ConstListIterator &it)=0 |
virtual void | removeAllElements ()=0 |
virtual void | pushBack (const ConstValueHandle &v)=0 |
virtual void | popBack ()=0 |
virtual Meta::Type | getElementMetaType () const =0 |
virtual ValueHandle | createElement () const =0 |
virtual ListIterator | getBeginIterator () |
virtual ConstListIterator | getBeginIterator () const |
virtual ListIterator | getEndIterator () |
virtual ConstListIterator | getEndIterator () const |
const List & | operator= (const List &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 |
Class that defines reflective interfaces for lists.
|
inlinevirtual |
Destructor
|
pure virtual |
Get the size of the list
Implemented in SPL::blist< T, msize >, and SPL::list< T >.
|
pure virtual |
Get the element at a given index
i | index of the element |
Implemented in SPL::blist< T, msize >, and SPL::list< T >.
|
pure virtual |
Get the element at a given index
i | index of the element |
Implemented in SPL::blist< T, msize >, and SPL::list< T >.
|
pure virtual |
Get the element at a given position
it | position of the element |
Implemented in SPL::blist< T, msize >, and SPL::list< T >.
|
pure virtual |
Get the element at a given position
it | position of the element |
Implemented in SPL::blist< T, msize >, and SPL::list< T >.
|
pure virtual |
Insert a given element at a given index
it | position of the element |
v | element to insert |
Implemented in SPL::blist< T, msize >, and SPL::list< T >.
|
pure virtual |
remove the element at a given index
it | position of the element |
Implemented in SPL::blist< T, msize >, and SPL::list< T >.
|
pure virtual |
Remove all elements
Implemented in SPL::blist< T, msize >, and SPL::list< T >.
|
pure virtual |
Push a given element to the end of the list
v | element to push back |
Implemented in SPL::blist< T, msize >, and SPL::list< T >.
|
pure virtual |
Pop the last element from the end of the list
Implemented in SPL::blist< T, msize >, and SPL::list< T >.
|
pure virtual |
Get element type
Implemented in SPL::blist< T, msize >, and SPL::list< T >.
|
pure virtual |
Create a new element. The returned value handle is 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::blist< T, msize >, and SPL::list< T >.
|
inlinevirtual |
Get a begin iterator
|
inlinevirtual |
Get a begin const iterator
|
inlinevirtual |
Get an end iterator
|
inlinevirtual |
Get an end cost iterator