Essentia
2.1-beta6-dev
|
#include <poolstorage.h>
Public Member Functions | |
PoolStorage (Pool *pool, const std::string &descriptorName, bool setSingle=false) | |
~PoolStorage () | |
void | declareParameters () |
AlgorithmStatus | process () |
template<typename T > | |
void | addToPool (const std::vector< T > &value) |
void | addToPool (const std::vector< Real > &value) |
template<typename T > | |
void | addToPool (const T &value) |
template<typename T > | |
void | addToPool (const TNT::Array2D< T > &value) |
template<typename T > | |
void | addToPool (const Tensor< T > &value) |
void | addToPool (const StereoSample &value) |
Public Member Functions inherited from PoolStorageBase | |
PoolStorageBase (Pool *pool, const std::string &descriptorName, bool setSingle=false) | |
~PoolStorageBase () | |
const std::string & | descriptorName () const |
Pool * | pool () const |
Public Member Functions inherited from Algorithm | |
Algorithm () | |
virtual | ~Algorithm () |
SinkBase & | input (const std::string &name) |
SourceBase & | output (const std::string &name) |
SinkBase & | input (int idx) |
SourceBase & | output (int idx) |
const InputMap & | inputs () const |
const OutputMap & | outputs () const |
std::vector< std::string > | inputNames () const |
std::vector< std::string > | outputNames () const |
virtual void | shouldStop (bool stop) |
virtual bool | shouldStop () const |
void | disconnectAll () |
AlgorithmStatus | acquireData () |
void | releaseData () |
virtual void | reset () |
Public Member Functions inherited from Configurable | |
virtual | ~Configurable () |
const std::string & | name () const |
void | setName (const std::string &name) |
virtual void | setParameters (const ParameterMap ¶ms) |
virtual void | configure (const ParameterMap ¶ms) |
virtual void | configure () |
const ParameterMap & | defaultParameters () const |
const Parameter & | parameter (const std::string &key) const |
Protected Attributes | |
Sink< TokenType > | _descriptor |
Protected Attributes inherited from PoolStorageBase | |
Pool * | _pool |
std::string | _descriptorName |
bool | _setSingle |
Protected Attributes inherited from Algorithm | |
bool | _shouldStop |
OutputMap | _outputs |
InputMap | _inputs |
int | nProcess |
Protected Attributes inherited from Configurable | |
std::string | _name |
ParameterMap | _params |
ParameterMap | _defaultParams |
Additional Inherited Members | |
Public Types inherited from Algorithm | |
typedef OrderedMap< SinkBase > | InputMap |
typedef OrderedMap< SourceBase > | OutputMap |
Public Attributes inherited from Algorithm | |
DescriptionMap | inputDescription |
DescriptionMap | outputDescription |
Public Attributes inherited from Configurable | |
DescriptionMap | parameterDescription |
DescriptionMap | parameterRange |
Static Public Attributes inherited from Algorithm | |
static const std::string | processingMode |
Protected Member Functions inherited from Algorithm | |
void | declareInput (SinkBase &sink, const std::string &name, const std::string &desc) |
void | declareInput (SinkBase &sink, int n, const std::string &name, const std::string &desc) |
void | declareInput (SinkBase &sink, int acquireSize, int releaseSize, const std::string &name, const std::string &desc) |
void | declareOutput (SourceBase &source, const std::string &name, const std::string &desc) |
void | declareOutput (SourceBase &source, int n, const std::string &name, const std::string &desc) |
void | declareOutput (SourceBase &source, int acquireSize, int releaseSize, const std::string &name, const std::string &desc) |
Protected Member Functions inherited from Configurable | |
void | declareParameter (const std::string &name, const std::string &desc, const std::string &range, const Parameter &defaultValue) |
|
inline |
|
inline |
|
inline |
|
inline |
References PoolStorageBase::_descriptorName, PoolStorageBase::_pool, PoolStorageBase::_setSingle, and Pool::add().
Referenced by PoolStorage< TokenType, StorageType >::process().
|
inline |
|
inline |
|
inline |
References PoolStorageBase::_descriptorName, PoolStorageBase::_pool, and Pool::add().
|
inline |
References PoolStorageBase::_descriptorName, PoolStorageBase::_pool, and Pool::add().
|
inlinevirtual |
Declare the parameters that this Configurable
can accept. You have to implement this method in derived classes, even though you don't need any parameters. In that case, just define it as empty.
In this method you should only be calling the declareParameter
method, once for each parameter, with optional default values.
Implements Configurable.
|
inlinevirtual |
|
protected |