gatb.core-API-0.0.0
|
Collection interface. More...
#include <Collection.hpp>
Public Member Functions | |
virtual | ~Collection () |
virtual Bag< Item > * | bag ()=0 |
virtual Iterable< Item > * | iterable ()=0 |
virtual void | remove ()=0 |
virtual void | addProperty (const std::string &key, const std::string value)=0 |
virtual void | addProperty (const std::string &key, const char *format,...)=0 |
virtual std::string | getProperty (const std::string &key)=0 |
Public Member Functions inherited from Bag< Item > | |
virtual void | insert (const Item &item)=0 |
virtual void | insert (const std::vector< Item > &items, size_t length=0) |
virtual void | insert (const Item *items, size_t length) |
virtual void | flush ()=0 |
Public Member Functions inherited from ISmartPointer | |
virtual | ~ISmartPointer () |
virtual void | use ()=0 |
virtual void | forget ()=0 |
Public Member Functions inherited from Iterable< Item > | |
virtual dp::Iterator< Item > * | iterator ()=0 |
template<typename Functor > | |
void | iterate (Functor f) |
virtual int64_t | getNbItems ()=0 |
virtual int64_t | estimateNbItems ()=0 |
virtual Item * | getItems (Item *&buffer) |
virtual size_t | getItems (Item *&buffer, size_t start, size_t nb) |
Collection interface.
The Collection interface is the union of a Bag and an Iterable interfaces
It is also to get/set properties (as [key,value]) to collections.
|
inlinevirtual |
Destructor.
|
pure virtual |
Add a property to the collection.
[in] | key | : key of the property |
[in] | value | : value of the property. |
Implemented in CollectionHDF5< Item >, CollectionNode< Item >, CollectionAbstract< Item >, and CollectionFile< Item >.
|
pure virtual |
Add a property to the collection.
[in] | key | : key of the property |
[in] | format | : printf like arguments |
[in] | ... | : variable arguments. |
|
pure virtual |
Implemented in CollectionAbstract< Item >.
|
pure virtual |
Retrieve a property for a given key
[in] | key | : key of the property to be retrieved |
Implemented in CollectionHDF5< Item >, CollectionNode< Item >, CollectionAbstract< Item >, and CollectionFile< Item >.
|
pure virtual |
Implemented in CollectionAbstract< Item >.
|
pure virtual |
Remove physically the collection.
Implemented in CollectionHDF5< Item >, CollectionNode< Item >, CollectionCacheSorted< Item >, CollectionFile< Item >, and CollectionCache< Item >.