gatb.core-API-0.0.0
|
#include <CountProcessorAbstract.hpp>
Public Types | |
typedef Kmer< span >::Type | Type |
Public Types inherited from ICountProcessor< span > | |
typedef kmer::impl::Kmer< span >::Type | Type |
Public Member Functions | |
CountProcessorAbstract (const std::string &name="processor") | |
virtual | ~CountProcessorAbstract () |
virtual void | begin (const Configuration &config) |
virtual void | end () |
virtual void | beginPass (size_t passId) |
virtual void | endPass (size_t passId) |
virtual void | finishClones (std::vector< ICountProcessor< span > * > &clones) |
virtual void | beginPart (size_t passId, size_t partId, size_t cacheSize, const char *name) |
virtual void | endPart (size_t passId, size_t partId) |
virtual bool | process (size_t partId, const Type &kmer, const CountVector &count, CountNumber sum=0) |
virtual std::string | getName () const |
virtual void | setName (const std::string &name) |
virtual tools::misc::impl::Properties | getProperties () const |
virtual std::vector< ICountProcessor< span > * > | getInstances () const |
Public Member Functions inherited from ICountProcessor< span > | |
virtual ICountProcessor * | clone ()=0 |
template<typename T > | |
T * | get () const |
Public Member Functions inherited from SmartPointer | |
void | use () |
void | forget () |
Public Member Functions inherited from ISmartPointer | |
virtual | ~ISmartPointer () |
Additional Inherited Members | |
Protected Member Functions inherited from SmartPointer | |
SmartPointer () | |
virtual | ~SmartPointer () |
Abstract implementation of ICountProcessor interface.
|
inline |
Constructor.
|
inlinevirtual |
Destructor.
|
inlinevirtual |
Called just before the mainloop of SortingCountAlgorithm.
[in] | config | : configuration of the SortingCountAlgorithm. |
Implements ICountProcessor< span >.
Reimplemented in CountProcessorSolidityAbstract< span, Derived >, CountProcessorSolidityAbstract< span, CountProcessorSoliditySum< span > >, CountProcessorSolidityAbstract< span, CountProcessorSolidityOne< span > >, CountProcessorSolidityAbstract< span, CountProcessorSolidityCustom< span > >, CountProcessorSolidityAbstract< span, CountProcessorSolidityAll< span > >, CountProcessorSolidityAbstract< span, CountProcessorSolidityMax< span > >, CountProcessorSolidityAbstract< span, CountProcessorSolidityMin< span > >, CountProcessorDump< span >, CountProcessorDumpKff< span >, and CountProcessorChain< span >.
|
inlinevirtual |
Called at the beginning of a new kmers partition processing.
[in] | passId | : index of the current pass in the SortingCountAlgorithm. |
[in] | passId | : index of the current kmers partition in the SortingCountAlgorithm. |
[in] | cacheSize | : memory size used for the current kmers partition |
[in] | name | : class name of the child PartitionsCommand class. |
Implements ICountProcessor< span >.
Reimplemented in CountProcessorDump< span >, CountProcessorDumpKff< span >, and CountProcessorChain< span >.
|
inlinevirtual |
Called just after the mainloop of SortingCountAlgorithm.
Implements ICountProcessor< span >.
|
inlinevirtual |
Called just after the mainloop of SortingCountAlgorithm.
Implements ICountProcessor< span >.
Reimplemented in CountProcessorHistogram< span >, and CountProcessorChain< span >.
|
inlinevirtual |
Called at the end of a new kmers partition processing.
[in] | passId | : index of the current pass in the SortingCountAlgorithm. |
[in] | passId | : index of the current kmers partition in the SortingCountAlgorithm. |
Implements ICountProcessor< span >.
Reimplemented in CountProcessorDumpKff< span >, CountProcessorDump< span >, and CountProcessorChain< span >.
|
inlinevirtual |
Called just after the mainloop of SortingCountAlgorithm.
Implements ICountProcessor< span >.
Reimplemented in CountProcessorCutoff< span >.
|
inlinevirtual |
Called when N partitions have been processed through N clones. This should be the last time these clones are available before being deleted. It can be the opportunity to the prototype instance to gather information from the clones.
[in] | clones | : the N cloned instances |
Implements ICountProcessor< span >.
Reimplemented in CountProcessorSolidityAbstract< span, Derived >, CountProcessorSolidityAbstract< span, CountProcessorSoliditySum< span > >, CountProcessorSolidityAbstract< span, CountProcessorSolidityOne< span > >, CountProcessorSolidityAbstract< span, CountProcessorSolidityCustom< span > >, CountProcessorSolidityAbstract< span, CountProcessorSolidityAll< span > >, CountProcessorSolidityAbstract< span, CountProcessorSolidityMax< span > >, CountProcessorSolidityAbstract< span, CountProcessorSolidityMin< span > >, CountProcessorDump< span >, CountProcessorDumpKff< span >, and CountProcessorChain< span >.
|
inlinevirtual |
Get a vector of instances in case of the current object is a composite.
Implements ICountProcessor< span >.
Reimplemented in CountProcessorChain< span >.
|
inlinevirtual |
Get a name for the count processor.
Implements ICountProcessor< span >.
|
inlinevirtual |
Get some properties about the count processor.
Implements ICountProcessor< span >.
Reimplemented in CountProcessorDumpKff< span >, CountProcessorHistogram< span >, CountProcessorDump< span >, CountProcessorSolidityAbstract< span, Derived >, CountProcessorSolidityAbstract< span, CountProcessorSoliditySum< span > >, CountProcessorSolidityAbstract< span, CountProcessorSolidityOne< span > >, CountProcessorSolidityAbstract< span, CountProcessorSolidityCustom< span > >, CountProcessorSolidityAbstract< span, CountProcessorSolidityAll< span > >, CountProcessorSolidityAbstract< span, CountProcessorSolidityMax< span > >, CountProcessorSolidityAbstract< span, CountProcessorSolidityMin< span > >, CountProcessorChain< span >, and CountProcessorCutoff< span >.
|
inlinevirtual |
Notification that a [kmer,counts] is available and can be handled by the count processor.
[in] | partId | : index of the current partition |
[in] | kmer | : kmer for which we are receiving counts |
[in] | count | : vector of counts of the kmer, one count per bank |
[in] | sum | : sum of the occurrences for all bank. |
Implements ICountProcessor< span >.
Reimplemented in CountProcessorDumpKff< span >, CountProcessorHistogram< span >, CountProcessorDump< span >, CountProcessorChain< span >, and CountProcessorCutoff< span >.
|
inlinevirtual |
Set a name for the count processor.
[in] | name | : the count processor name. |
Implements ICountProcessor< span >.