Loading...
Searching...
No Matches
te::cl::VectorOutputAdaptor< DataType > Class Template Reference

Classifiers vector container output data adaptor. More...

#include <Adaptors.h>

Inheritance diagram for te::cl::VectorOutputAdaptor< DataType >:
te::cl::OutputAdaptor< DataType >

Public Member Functions

unsigned int getElementsCount () const
 Returns the total elements number.
 
unsigned int getFeaturesCount () const
 Returns the total features per element number.
 
void setFeature (const unsigned int &elementIndex, const unsigned int &, const DataType &value)
 Set one feature value.
 
 VectorOutputAdaptor (std::vector< DataType > &container)
 
 ~VectorOutputAdaptor ()
 

Protected Attributes

std::vector< DataType > & m_container
 Internal container reference.
 

Detailed Description

template<typename DataType>
class te::cl::VectorOutputAdaptor< DataType >

Classifiers vector container output data adaptor.

Definition at line 224 of file Adaptors.h.

Constructor & Destructor Documentation

◆ VectorOutputAdaptor()

template<typename DataType >
te::cl::VectorOutputAdaptor< DataType >::VectorOutputAdaptor ( std::vector< DataType > &  container)
inlineexplicit

Definition at line 227 of file Adaptors.h.

◆ ~VectorOutputAdaptor()

template<typename DataType >
te::cl::VectorOutputAdaptor< DataType >::~VectorOutputAdaptor ( )
inline

Definition at line 232 of file Adaptors.h.

Member Function Documentation

◆ getElementsCount()

template<typename DataType >
unsigned int te::cl::VectorOutputAdaptor< DataType >::getElementsCount ( ) const
inlinevirtual

Returns the total elements number.

Implements te::cl::OutputAdaptor< DataType >.

Definition at line 242 of file Adaptors.h.

References te::cl::VectorOutputAdaptor< DataType >::m_container.

◆ getFeaturesCount()

template<typename DataType >
unsigned int te::cl::VectorOutputAdaptor< DataType >::getFeaturesCount ( ) const
inlinevirtual

Returns the total features per element number.

Implements te::cl::OutputAdaptor< DataType >.

Definition at line 248 of file Adaptors.h.

◆ setFeature()

template<typename DataType >
void te::cl::VectorOutputAdaptor< DataType >::setFeature ( const unsigned int &  elementIndex,
const unsigned int &  featureIndex,
const DataType &  value 
)
inlinevirtual

Set one feature value.

Parameters
elementIndexElement index..
featureIndexFeature index.

Implements te::cl::OutputAdaptor< DataType >.

Definition at line 235 of file Adaptors.h.

References te::cl::VectorOutputAdaptor< DataType >::m_container.

Member Data Documentation

◆ m_container

template<typename DataType >
std::vector< DataType >& te::cl::VectorOutputAdaptor< DataType >::m_container
protected

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