bpp-seq3
3.0.0
|
The PositionedContainer interface. More...
#include <Bpp/Seq/Container/PositionedContainer.h>
Public Member Functions | |
PositionedContainerInterface () | |
virtual | ~PositionedContainerInterface () |
virtual size_t | getSize () const =0 |
the size More... | |
virtual void | setSize (size_t size) |
virtual void | clear ()=0 |
virtual const std::shared_ptr< T > | getObject (size_t objectIndex) const =0 |
Retrieve an object from the container. More... | |
virtual std::shared_ptr< T > | getObject (size_t objectIndex)=0 |
Retrieve an object from the container. More... | |
virtual const T & | object (size_t objectIndex) const =0 |
Get a reference toward an object from the container. More... | |
virtual T & | object (size_t objectIndex)=0 |
Get a reference toward an object from the container. More... | |
virtual std::shared_ptr< T > | removeObject (size_t objectIndex)=0 |
Extract and remove a object from the container. More... | |
virtual void | deleteObject (size_t objectIndex)=0 |
Delete an object from the container. More... | |
virtual Clonable * | clone () const=0 |
The PositionedContainer interface.
Interface to manage indexed containers, where Objects may be accessed via their indice, i.e. their position in the container.
All Objects must have a position, accessible through getPosition and setPosition methods (see Site class).
Definition at line 27 of file PositionedContainer.h.
|
inline |
Definition at line 31 of file PositionedContainer.h.
|
inlinevirtual |
Definition at line 32 of file PositionedContainer.h.
|
pure virtual |
|
pure virtual |
Delete an object from the container.
objectIndex | The index of the object in the container. |
Implemented in bpp::VectorPositionedContainer< T >, bpp::VectorPositionedContainer< bpp::Site >, bpp::VectorPositionedContainer< SiteType >, bpp::VectorMappedContainer< T >, bpp::VectorMappedContainer< bpp::Sequence >, and bpp::VectorMappedContainer< SequenceType >.
|
pure virtual |
Retrieve an object from the container.
objectIndex | The position of the object. |
Implemented in bpp::VectorPositionedContainer< T >, bpp::VectorPositionedContainer< bpp::Site >, and bpp::VectorPositionedContainer< SiteType >.
|
pure virtual |
Retrieve an object from the container.
objectIndex | The position of the object. |
Implemented in bpp::VectorPositionedContainer< T >, bpp::VectorPositionedContainer< bpp::Site >, and bpp::VectorPositionedContainer< SiteType >.
|
pure virtual |
|
pure virtual |
Get a reference toward an object from the container.
objectIndex | The position of the object. |
Implemented in bpp::VectorPositionedContainer< T >, bpp::VectorPositionedContainer< bpp::Site >, and bpp::VectorPositionedContainer< SiteType >.
|
pure virtual |
Get a reference toward an object from the container.
objectIndex | The position of the object. |
Implemented in bpp::VectorPositionedContainer< T >, bpp::VectorPositionedContainer< bpp::Site >, and bpp::VectorPositionedContainer< SiteType >.
|
pure virtual |
Extract and remove a object from the container.
objectIndex | The position of the object. |
Implemented in bpp::VectorPositionedContainer< T >, bpp::VectorPositionedContainer< bpp::Site >, bpp::VectorPositionedContainer< SiteType >, bpp::VectorMappedContainer< T >, bpp::VectorMappedContainer< bpp::Sequence >, and bpp::VectorMappedContainer< SequenceType >.
|
inlinevirtual |
Reimplemented in bpp::VectorPositionedContainer< T >, bpp::VectorPositionedContainer< bpp::Site >, and bpp::VectorPositionedContainer< SiteType >.
Definition at line 40 of file PositionedContainer.h.