BankFiltered< Filter > Class Template Reference

Bank that can filter sequences through a provided functor. More...

#include <BankHelpers.hpp>

Inheritance diagram for BankFiltered< Filter >:
Inheritance graph

Public Member Functions

 BankFiltered (IBank *ref, const Filter &filter)
tools::dp::Iterator< Sequence > * iterator ()
- Public Member Functions inherited from BankDelegate
 BankDelegate (IBank *ref)
 ~BankDelegate ()
std::string getId ()
std::string getIdNb (int i)
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)
int64_t estimateNbItems ()
int64_t estimateNbItemsBanki (int i)
u_int64_t estimateSequencesSize ()
u_int64_t getEstimateThreshold ()
void setEstimateThreshold (u_int64_t nbSeq)
- Public Member Functions inherited from AbstractBank
 AbstractBank ()
const std::vector< IBank * > getBanks () const
void remove ()
void finalize ()
size_t getCompositionNb ()
- Public Member Functions inherited from Iterable< Sequence >
void iterate (Functor f)
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)
- 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<typename Filter>
class gatb::core::bank::impl::BankFiltered< Filter >

Bank that can filter sequences through a provided functor.

This is an utility class that allows to filter a referred bank with a functor.

The functor must define the following method:

bool operator() (const Sequence& seq)

-> true means that the sequence is iterated, false the sequence is filtered out.

Constructor & Destructor Documentation

BankFiltered ( IBank ref,
const Filter &  filter 


[in]ref: referred bank.
[in]filter: functor that filters sequence.

Member Function Documentation

tools::dp::Iterator<Sequence>* iterator ( )

Create an iterator for the given Iterable instance.

the new iterator.

Reimplemented from BankDelegate.

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