Implementation of the Bag interface with a HDF5 file.
More...
#include <CollectionHDF5.hpp>
template<class Item>
class gatb::core::tools::storage::impl::BagHDF5< Item >
Implementation of the Bag interface with a HDF5 file.
This implementation writes Item objects in a HDF5 file.
Constructor.
- Parameters
-
[in] | datasetId | : HDF5 identifier of the dataset acting as a Bag. |
[in] | typeId | : HDF5 type identifier for the Item type |
[in] | nbItems | : number of items |
[in] | synchro | : used to serialize concurrent read/write HDF5 operations. |
Flush the current content. May be useful for implementation that uses a cache.
Implements Bag< Item >.
void insert |
( |
const Item & |
item | ) |
|
|
inlinevirtual |
Insert an item into the bag.
- Parameters
-
[in] | item | : the item to be inserted. |
Implements Bag< Item >.
void insert |
( |
const std::vector< Item > & |
items, |
|
|
size_t |
length = 0 |
|
) |
| |
|
inlinevirtual |
Insert items into the bag.
- Parameters
-
[in] | items | : items to be inserted. |
[in] | length | : the number of items to be inserted. If 0 (default value), all the items of the vector are inserted. |
Reimplemented from Bag< Item >.
void insert |
( |
const Item * |
items, |
|
|
size_t |
length |
|
) |
| |
|
inlinevirtual |
Insert items into the bag.
- Parameters
-
[in] | items | : items to be inserted. |
[in] | length | : number of items to be inserted. |
Reimplemented from Bag< Item >.
The documentation for this class was generated from the following file:
- /builds/workspace/publish-doc-api-gitlab/gatb-core/src/gatb/tools/storage/impl/CollectionHDF5.hpp