5 #ifndef BPP_SEQ_CONTAINER_POSITIONEDCONTAINER_H
6 #define BPP_SEQ_CONTAINER_POSITIONEDCONTAINER_H
50 virtual const std::shared_ptr<T>
getObject(
size_t objectIndex)
const = 0;
58 virtual std::shared_ptr<T>
getObject(
size_t objectIndex) = 0;
66 virtual const T&
object(
size_t objectIndex)
const = 0;
74 virtual T&
object(
size_t objectIndex) = 0;
The PositionedContainer interface.
virtual void deleteObject(size_t objectIndex)=0
Delete an object from the container.
virtual T & object(size_t objectIndex)=0
Get a reference toward an object from the container.
PositionedContainerInterface()
virtual void setSize(size_t size)
virtual std::shared_ptr< T > removeObject(size_t objectIndex)=0
Extract and remove a object from the container.
virtual std::shared_ptr< T > getObject(size_t objectIndex)=0
Retrieve an object from the container.
virtual const std::shared_ptr< T > getObject(size_t objectIndex) const =0
Retrieve an object from the container.
virtual ~PositionedContainerInterface()
virtual size_t getSize() const =0
the size
virtual const T & object(size_t objectIndex) const =0
Get a reference toward an object from the container.
This alphabet is used to deal NumericAlphabet.