bpp-seq3
3.0.0
|
The template PositionedNamedContainer interface, that links position & name containers. More...
#include <Bpp/Seq/Container/PositionedNamedContainer.h>
Public Member Functions | |
virtual | ~PositionedNamedContainerInterface () |
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 const std::string & | getObjectName (size_t objectIndex) const =0 |
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 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 Clonable interface. | |
virtual PositionedNamedContainerInterface< T > * | clone () const =0 |
Protected Member Functions | |
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 const T & | object (const std::string &name) const =0 |
virtual T & | object (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... | |
The template PositionedNamedContainer interface, that links position & name containers.
This interface also includes addObject and insertObject methods.
Definition at line 26 of file PositionedNamedContainer.h.
|
inlinevirtual |
Definition at line 40 of file PositionedNamedContainer.h.
|
pure virtual |
Implemented in bpp::VectorMappedContainer< T >.
|
pure virtualinherited |
Delete all objects in the container.
Implemented in bpp::VectorMappedContainer< T >, bpp::VectorMappedContainer< bpp::Sequence >, bpp::VectorMappedContainer< SequenceType >, and bpp::MappedNamedContainer< T >.
|
pure virtualinherited |
|
pure virtual |
Implements bpp::Clonable.
Implemented in bpp::VectorMappedContainer< T >, bpp::VectorMappedContainer< bpp::Sequence >, and bpp::VectorMappedContainer< SequenceType >.
|
protectedpure virtualinherited |
Remove a object from the container.
name | The name of the object. |
Implemented in bpp::VectorMappedContainer< T >, bpp::VectorMappedContainer< bpp::Sequence >, bpp::VectorMappedContainer< SequenceType >, and bpp::MappedNamedContainer< T >.
|
pure virtualinherited |
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 >.
|
protectedpure virtualinherited |
Retrieve an object from the container.
name | The name of the object. |
Implemented in bpp::MappedNamedContainer< T >.
|
protectedpure virtualinherited |
Implemented in bpp::MappedNamedContainer< T >.
|
pure virtualinherited |
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 virtualinherited |
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 |
|
protectedpure virtualinherited |
Get all the names of the objects in the container.
Implemented in bpp::VectorMappedContainer< T >, bpp::VectorMappedContainer< bpp::Sequence >, bpp::VectorMappedContainer< SequenceType >, and bpp::MappedNamedContainer< T >.
|
pure virtual |
Link between position & name.
Implemented in bpp::VectorMappedContainer< T >, bpp::VectorMappedContainer< bpp::Sequence >, and bpp::VectorMappedContainer< SequenceType >.
|
pure virtualinherited |
Get the number of objects in the container.
Implemented in bpp::VectorMappedContainer< T >, bpp::VectorMappedContainer< bpp::Sequence >, bpp::VectorMappedContainer< SequenceType >, 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::MappedNamedContainer< T >.
|
pure virtual |
Implemented in bpp::VectorMappedContainer< T >.
|
protectedpure virtualinherited |
Implemented in bpp::MappedNamedContainer< T >.
|
protectedpure virtualinherited |
Implemented in bpp::MappedNamedContainer< T >.
|
pure virtualinherited |
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 virtualinherited |
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 >.
|
protectedpure virtualinherited |
Extract and remove a object from the container.
name | The name of the object. |
Implemented in bpp::VectorMappedContainer< T >, bpp::VectorMappedContainer< bpp::Sequence >, bpp::VectorMappedContainer< SequenceType >, and bpp::MappedNamedContainer< T >.
|
pure virtualinherited |
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 >.
|
inlinevirtualinherited |
Reimplemented in bpp::VectorPositionedContainer< T >, bpp::VectorPositionedContainer< bpp::Site >, and bpp::VectorPositionedContainer< SiteType >.
Definition at line 40 of file PositionedContainer.h.