gatb.core-API-0.0.0
CollectionHDF5< Item > Class Template Reference

Collection interface. More...

#include <CollectionHDF5.hpp>

Inheritance diagram for CollectionHDF5< Item >:
Inheritance graph

Public Member Functions

 CollectionHDF5 (hid_t fileId, const std::string &filename, system::ISynchronizer *synchro)
 
virtual ~CollectionHDF5 ()
 
void remove ()
 
void addProperty (const std::string &key, const std::string value)
 
std::string getProperty (const std::string &key)
 
- Public Member Functions inherited from CollectionAbstract< Item >
 CollectionAbstract (Bag< Item > *bag, Iterable< Item > *iterable)
 
virtual ~CollectionAbstract ()
 
Bag< Item > * bag ()
 
Iterable< Item > * iterable ()
 
dp::Iterator< Item > * iterator ()
 
int64_t getNbItems ()
 
int64_t estimateNbItems ()
 
Item * getItems (Item *&buffer)
 
size_t getItems (Item *&buffer, size_t start, size_t nb)
 
void insert (const Item &item)
 
void insert (const std::vector< Item > &items, size_t length)
 
void insert (const Item *items, size_t length)
 
void flush ()
 
void addProperty (const std::string &key, const char *format...)
 
- Public Member Functions inherited from Collection< Item >
virtual ~Collection ()
 
virtual void addProperty (const std::string &key, const char *format,...)=0
 
- Public Member Functions inherited from ISmartPointer
virtual ~ISmartPointer ()
 
- Public Member Functions inherited from Iterable< Item >
template<typename Functor >
void iterate (Functor f)
 
- Public Member Functions inherited from SmartPointer
void use ()
 
void forget ()
 

Additional Inherited Members

- Protected Member Functions inherited from SmartPointer
 SmartPointer ()
 
virtual ~SmartPointer ()
 

Detailed Description

template<class Item>
class gatb::core::tools::storage::impl::CollectionHDF5< Item >

Collection interface.

Constructor & Destructor Documentation

CollectionHDF5 ( hid_t  fileId,
const std::string &  filename,
system::ISynchronizer synchro 
)
inline

Constructor.

virtual ~CollectionHDF5 ( )
inlinevirtual

Destructor.

Member Function Documentation

void addProperty ( const std::string &  key,
const std::string  value 
)
inlinevirtual

Add a property to the collection.

Parameters
[in]key: key of the property
[in]value: value of the property.

Reimplemented from CollectionAbstract< Item >.

std::string getProperty ( const std::string &  key)
inlinevirtual

Retrieve a property for a given key

Parameters
[in]key: key of the property to be retrieved
Returns
the value of the property.

Reimplemented from CollectionAbstract< Item >.

void remove ( )
inlinevirtual

Remove physically the collection.

Implements Collection< Item >.


The documentation for this class was generated from the following file: