bpp-seq3
3.0.0
|
The template PositionedNamedContainer class, that links position & name containers. More...
#include <Bpp/Seq/Container/PositionedNamedContainer.h>
Public Member Functions | |
virtual | ~PositionedNamedContainer () |
The Clonable interface. | |
virtual PositionedNamedContainer< T > * | clone () const =0 |
Protected Member Functions | |
virtual void | addObject (std::shared_ptr< T > object, size_t objectIndex, const std::string &name, bool check=false)=0 |
virtual void | insertObject (std::shared_ptr< T > object, size_t objectIndex, const std::string &name)=0 |
virtual size_t | getObjectPosition (const std::string &name) const =0 |
Link between position & name. More... | |
virtual std::string | getObjectName (size_t objectIndex) const =0 |
Private Member Functions | |
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. 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... | |
virtual const std::shared_ptr< T > | getObject (const std::string &name) const =0 |
Retrieve an object from the container. More... | |
virtual std::shared_ptr< T > | getObject (const std::string &name)=0 |
virtual bool | hasObject (const std::string &name) const =0 |
Check if a object with a given name is present in the container. More... | |
virtual std::shared_ptr< T > | removeObject (const std::string &name)=0 |
Extract and remove a object from the container. More... | |
virtual void | deleteObject (const std::string &name)=0 |
Remove a object from the container. More... | |
virtual std::vector< std::string > | getObjectNames () const =0 |
Get all the names of the objects in the container. More... | |
virtual size_t | getSize () const =0 |
Get the number of objects in the container. More... | |
virtual void | clear ()=0 |
Delete all objects in the container. More... | |
The template PositionedNamedContainer class, that links position & name containers.
Definition at line 62 of file PositionedNamedContainer.h.
|
inlinevirtual |
Definition at line 77 of file PositionedNamedContainer.h.
|
protectedpure virtual |
Implemented in bpp::VectorMappedContainer< T >.
|
pure virtualinherited |
Delete all objects in the container.
Implemented in bpp::VectorSiteContainer, bpp::VectorSequenceContainer, bpp::VectorProbabilisticSiteContainer, bpp::VectorProbabilisticSequenceContainer, bpp::VectorMappedContainer< T >, bpp::VectorMappedContainer< Sequence >, bpp::VectorMappedContainer< ProbabilisticSequence >, bpp::MappedNamedContainer< T >, bpp::CompressedVectorSiteContainer, and bpp::AlignedSequenceContainer.
|
pure virtualinherited |
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.
|
pure virtual |
Implemented in bpp::VectorSiteContainer, bpp::VectorSequenceContainer, bpp::VectorProbabilisticSiteContainer, bpp::VectorProbabilisticSequenceContainer, bpp::VectorMappedContainer< T >, bpp::VectorMappedContainer< Sequence >, bpp::VectorMappedContainer< ProbabilisticSequence >, bpp::CompressedVectorSiteContainer, and bpp::AlignedSequenceContainer.
|
protectedpure virtualinherited |
Remove a object from the container.
name | The name of the object. |
Implemented in bpp::VectorMappedContainer< T >, bpp::VectorMappedContainer< Sequence >, bpp::VectorMappedContainer< ProbabilisticSequence >, and bpp::MappedNamedContainer< T >.
|
protectedpure virtualinherited |
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 virtualinherited |
Retrieve an object from the container.
name | The name of the object. |
Implemented in bpp::VectorMappedContainer< T >, bpp::VectorMappedContainer< Sequence >, bpp::VectorMappedContainer< ProbabilisticSequence >, and bpp::MappedNamedContainer< T >.
|
protectedpure virtualinherited |
|
protectedpure virtualinherited |
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 virtualinherited |
|
protectedpure virtual |
|
protectedpure virtualinherited |
Get all the names of the objects in the container.
Implemented in bpp::VectorMappedContainer< T >, bpp::VectorMappedContainer< Sequence >, bpp::VectorMappedContainer< ProbabilisticSequence >, and bpp::MappedNamedContainer< T >.
|
protectedpure virtual |
Link between position & name.
Implemented in bpp::VectorMappedContainer< T >, bpp::VectorMappedContainer< Sequence >, and bpp::VectorMappedContainer< ProbabilisticSequence >.
|
pure virtualinherited |
Get the number of objects in the container.
Implemented in bpp::VectorMappedContainer< T >, bpp::VectorMappedContainer< Sequence >, bpp::VectorMappedContainer< ProbabilisticSequence >, and bpp::MappedNamedContainer< T >.
|
pure virtualinherited |
|
protectedpure virtualinherited |
Check if a object with a given name is present in the container.
name | The name of the object. |
Implemented in bpp::VectorMappedContainer< T >, bpp::VectorMappedContainer< Sequence >, bpp::VectorMappedContainer< ProbabilisticSequence >, and bpp::MappedNamedContainer< T >.
|
protectedpure virtual |
Implemented in bpp::VectorMappedContainer< T >.
|
protectedpure virtualinherited |
Extract and remove a object from the container.
name | The name of the object. |
Implemented in bpp::VectorMappedContainer< T >, bpp::VectorMappedContainer< Sequence >, bpp::VectorMappedContainer< ProbabilisticSequence >, and bpp::MappedNamedContainer< T >.
|
protectedpure virtualinherited |
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 >.
|
inlinevirtualinherited |
Reimplemented in bpp::VectorPositionedContainer< T >, bpp::VectorPositionedContainer< ProbabilisticSite >, and bpp::VectorPositionedContainer< Site >.
Definition at line 76 of file PositionedContainer.h.