gatb.core-API-1.4.2
|
IBank defined by constant strings. More...
#include <BankStrings.hpp>
Public Member Functions | |
std::string | getId () |
BankStrings (const std::vector< std::string > &sequencesData) | |
BankStrings (const char *sequencesData[], size_t nb) | |
BankStrings (const char *seq,...) | |
tools::dp::Iterator< Sequence > * | iterator () |
int64_t | getNbItems () |
void | insert (const Sequence &item) |
void | flush () |
u_int64_t | getSize () |
void | estimate (u_int64_t &number, u_int64_t &totalSize, u_int64_t &maxSize) |
![]() | |
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 () |
![]() | |
void | iterate (Functor f) |
virtual Sequence * | getItems (Sequence *&buffer) |
virtual size_t | getItems (Sequence *&buffer, size_t start, size_t nb) |
![]() | |
virtual | ~ISmartPointer () |
![]() | |
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) |
![]() | |
void | use () |
void | forget () |
Static Public Member Functions | |
static const char * | name () |
Protected Attributes | |
std::vector< Sequence > | _sequences |
Additional Inherited Members | |
![]() | |
SmartPointer () | |
virtual | ~SmartPointer () |
IBank defined by constant strings.
This class allows to define banks with some nucleotides strings.
Instances of this class are located in memory only.
This class is mainly used for tests.
|
inline |
Constructor.
|
inline |
Constructor.
|
inline |
Constructor.
|
inlinevirtual |
Give an estimation of sequences information in the bank.
[out] | number | : sequences number |
[out] | totalSize | : sequences size (in bytes) |
[out] | maxSize | : max size size (in bytes) |
Implements IBank.
|
inlinevirtual |
Flush the current content. May be useful for implementation that uses a cache.
Implements Bag< Sequence >.
|
inlinevirtual |
Constructor.
Implements IBank.
|
inlinevirtual |
Return the number of items. If a specific implementation doesn't know the value, it should return -1 by convention.
Implements Iterable< Sequence >.
|
inlinevirtual |
Return the size of the bank (comments + data)
The returned value may be an approximation in some case. For instance, if we use a zipped bank, an implementation may be not able to give accurate answer to the size of the original file.
Implements IBank.
|
inlinevirtual |
|
inlinevirtual |
|
inlinestatic |
Returns the name of the bank format.
|
protected |
Sequences.