bpp-seq3
3.0.0
|
The PositionedContainer interface. More...
#include <Bpp/Seq/Container/PositionedContainer.h>
Public Member Functions | |
PositionedContainer () | |
virtual | ~PositionedContainer () |
virtual size_t | getSize () const =0 |
the size More... | |
virtual void | setSize (size_t size) |
virtual void | clear ()=0 |
Protected Member Functions | |
virtual const std::shared_ptr< T > | getObject (size_t objectIndex) const =0 |
Retrieve an object from the container. Set as protected since they will be public under T specific names. More... | |
virtual std::shared_ptr< T > | getObject (size_t objectIndex)=0 |
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... | |
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 62 of file PositionedContainer.h.
|
inline |
Definition at line 65 of file PositionedContainer.h.
|
inlinevirtual |
Definition at line 66 of file PositionedContainer.h.
|
pure virtual |
Implemented in bpp::VectorSiteContainer, bpp::VectorSequenceContainer, bpp::VectorProbabilisticSiteContainer, bpp::VectorProbabilisticSequenceContainer, bpp::VectorPositionedContainer< T >, bpp::VectorPositionedContainer< ProbabilisticSite >, bpp::VectorPositionedContainer< Site >, bpp::VectorMappedContainer< T >, bpp::VectorMappedContainer< Sequence >, bpp::VectorMappedContainer< ProbabilisticSequence >, bpp::CompressedVectorSiteContainer, and bpp::AlignedSequenceContainer.
|
protectedpure virtual |
Delete an object from the container.
objectIndex | The index of the object in the container. |
Implemented in bpp::VectorPositionedContainer< T >, bpp::VectorPositionedContainer< ProbabilisticSite >, bpp::VectorPositionedContainer< Site >, bpp::VectorMappedContainer< T >, bpp::VectorMappedContainer< Sequence >, and bpp::VectorMappedContainer< ProbabilisticSequence >.
|
protectedpure virtual |
Retrieve an object from the container. Set as protected since they will be public under T specific names.
objectIndex | The position of the object. |
Implemented in bpp::VectorPositionedContainer< T >, bpp::VectorPositionedContainer< ProbabilisticSite >, bpp::VectorPositionedContainer< Site >, bpp::VectorMappedContainer< T >, bpp::VectorMappedContainer< Sequence >, and bpp::VectorMappedContainer< ProbabilisticSequence >.
|
protectedpure virtual |
|
pure virtual |
|
protectedpure virtual |
Extract and remove a object from the container.
objectIndex | The position of the object. |
Implemented in bpp::VectorPositionedContainer< T >, bpp::VectorPositionedContainer< ProbabilisticSite >, bpp::VectorPositionedContainer< Site >, bpp::VectorMappedContainer< T >, bpp::VectorMappedContainer< Sequence >, and bpp::VectorMappedContainer< ProbabilisticSequence >.
|
inlinevirtual |
Reimplemented in bpp::VectorPositionedContainer< T >, bpp::VectorPositionedContainer< ProbabilisticSite >, and bpp::VectorPositionedContainer< Site >.
Definition at line 76 of file PositionedContainer.h.