gatb.core-API-0.0.0
StorageTools Class Reference

Helper class for the storage feature. More...

#include <StorageTools.hpp>

Public Member Functions

template<typename T >
void saveContainer (Group &group, const std::string &name, collections::Collection< T > *collection)
 
template<typename T >
collections::Container< T > * loadContainer (Group &group, const std::string &name)
 
template<typename T >
void saveBloom (Group &group, const std::string &name, collections::impl::IBloom< T > *bloom, size_t kmerSize)
 
template<typename T >
collections::impl::IBloom< T > * loadBloom (Group &group, const std::string &name)
 

Static Public Member Functions

static StorageToolssingleton ()
 

Detailed Description

Helper class for the storage feature.

Member Function Documentation

collections::impl::IBloom<T>* loadBloom ( Group group,
const std::string &  name 
)
inline

Load a Bloom filter from a group

Parameters
[in]group: group where the Bloom filter is
[in]name: name of the Bloom filter in the group
Returns
the Bloom filter as an instance of IBloom
collections::Container<T>* loadContainer ( Group group,
const std::string &  name 
)
inline

Load a Collection instance from a group

Parameters
[in]group: group where the collection has to be load
[in]name: name of the collection the group
Returns
a Collection instance, loaded from the group
void saveBloom ( Group group,
const std::string &  name,
collections::impl::IBloom< T > *  bloom,
size_t  kmerSize 
)
inline

Save a Bloom filter into a group

Parameters
[in]group: group where the IBloom instance has to be saved
[in]name: name of the Bloom filter in the group
[in]bloom: Bloom filter to be saved
[in]kmerSize: kmer size (uggly but needed...)
void saveContainer ( Group group,
const std::string &  name,
collections::Collection< T > *  collection 
)
inline

Save a Collection instance into a group

Parameters
[in]group: group where the collection has to be saved
[in]name: name of the collection saved in the group
[in]collection: Collection instance to be saved.
static StorageTools& singleton ( )
inlinestatic

Singleton method.

Returns
the singleton.

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