gatb.core-API-0.0.0
|
Abstract implementation of IBank for factorizing common behavior. More...
#include <AbstractBank.hpp>
Public Member Functions | |
AbstractBank () | |
std::string | getIdNb (int i) |
int64_t | estimateNbItemsBanki (int i) |
const std::vector< IBank * > | getBanks () const |
int64_t | estimateNbItems () |
u_int64_t | estimateSequencesSize () |
u_int64_t | getEstimateThreshold () |
void | setEstimateThreshold (u_int64_t nbSeq) |
void | remove () |
void | finalize () |
size_t | getCompositionNb () |
Public Member Functions inherited from IBank | |
virtual std::string | getId ()=0 |
virtual tools::dp::Iterator< Sequence > * | iterator ()=0 |
virtual void | insert (const Sequence &item)=0 |
virtual u_int64_t | getSize ()=0 |
virtual void | estimate (u_int64_t &number, u_int64_t &totalSize, u_int64_t &maxSize)=0 |
Public Member Functions inherited from Iterable< Sequence > | |
void | iterate (Functor f) |
virtual int64_t | getNbItems ()=0 |
virtual Sequence * | getItems (Sequence *&buffer) |
virtual size_t | getItems (Sequence *&buffer, size_t start, size_t nb) |
Public Member Functions inherited from ISmartPointer | |
virtual | ~ISmartPointer () |
Public Member Functions inherited from Bag< Sequence > | |
virtual void | insert (const Sequence &item)=0 |
virtual void | insert (const std::vector< Sequence > &items, size_t length=0) |
virtual void | insert (const Sequence *items, size_t length) |
virtual void | flush ()=0 |
Public Member Functions inherited from SmartPointer | |
void | use () |
void | forget () |
Additional Inherited Members | |
Protected Member Functions inherited from SmartPointer | |
SmartPointer () | |
virtual | ~SmartPointer () |
Abstract implementation of IBank for factorizing common behavior.
This abstract implementation of the IBank interface provides some methods having the same behavior for most implementations.
Note that it implements the system::ISmartPointer interface as well, so it can be used as a smart pointer.
|
inline |
Constructor.
|
inlinevirtual |
Shortcut to 'estimate' method.
Implements IBank.
Reimplemented in BankDelegate.
|
inlinevirtual |
In case of a composite bank,
Implements IBank.
Reimplemented in BankDelegate, and BankComposite.
|
inlinevirtual |
Shortcut to 'estimate' method.
Implements IBank.
Reimplemented in BankDelegate.
|
inlinevirtual |
|
inlinevirtual |
Return the vector of sub IBank objects (in case of bank composite), or a vector containing only the bank itself
Implements IBank.
Reimplemented in BankComposite.
|
inlinevirtual |
In case of a composite bank, return the number of sub banks.
Implements IBank.
Reimplemented in BankComposite.
|
inlinevirtual |
Implements IBank.
Reimplemented in BankDelegate.
|
inlinevirtual |
In case of a composite bank, return the id of bank i
Implements IBank.
Reimplemented in BankComposite, and BankDelegate.
|
inlinevirtual |
Remove physically the bank. This method will have non-empty implementation for banks using file system for instance.
Implements IBank.
Reimplemented in BankComposite, BankAlbum, and BankBinary.
|
inlinevirtual |
Set the number of sequences read from the bank for computing estimated information
[in] | nbSeq | : the number of sequences to be read. |
Implements IBank.
Reimplemented in BankDelegate.