OpenStructure
Public Types | Public Member Functions
MultiClassifier< V, T1, T2, T3, T4, T5, T6, T7 > Class Template Reference

#include <multi_classifier.hh>

Public Types

enum  { Dimension = impl::LengthOf<T1, T2, T3, T4, T5, T6, T7>::Value }
typedef V ValueType
typedef Index
< MultiClassifier::Dimension
IndexType
typedef IndexIterator< DimensionIterator
typedef Classifier< T1 > C1
typedef Classifier< T2 > C2
typedef Classifier< T3 > C3
typedef Classifier< T4 > C4
typedef Classifier< T5 > C5
typedef Classifier< T6 > C6
typedef Classifier< T7 > C7

Public Member Functions

 MultiClassifier (const V &initial_value, typename C1::ConstRefType c1, typename C2::ConstRefType c2=typename C2::Type(), typename C3::ConstRefType c3=typename C3::Type(), typename C4::ConstRefType c4=typename C4::Type(), typename C5::ConstRefType c5=typename C5::Type(), typename C6::ConstRefType c6=typename C6::Type(), typename C7::ConstRefType c7=typename C7::Type())
 MultiClassifier ()
template<typename DS >
void Serialize (DS &ds)
 MultiClassifier (const MultiClassifier &rhs)
uint32_t GetBucketCount () const
void Add (const ValueType &value, T1 x1=T1(), T2 x2=T2(), T3 x3=T3(), T4 x4=T4(), T5 x5=T5(), T6 x6=T6(), T7 x7=T7())
const ValueTypeGet (T1 x1=T1(), T2 x2=T2(), T3 x3=T3(), T4 x4=T4(), T5 x5=T5(), T6 x6=T6(), T7 x7=T7()) const
const ValueTypeGet (const IndexType &index) const
void Set (const IndexType &index, const ValueType &value)
IndexType FindBucket (T1 x1=T1(), T2 x2=T2(), T3 x3=T3(), T4 x4=T4(), T5 x5=T5(), T6 x6=T6(), T7 x7=T7()) const
void Add (const ValueType &value, const IndexType &index)

Detailed Description

template<typename V, typename T1, typename T2 = impl::NullType, typename T3 = impl::NullType, typename T4 = impl::NullType, typename T5 = impl::NullType, typename T6 = impl::NullType, typename T7 = impl::NullType>
class ost::qa::MultiClassifier< V, T1, T2, T3, T4, T5, T6, T7 >

generic n-dimensional classifier

Definition at line 277 of file multi_classifier.hh.


Member Typedef Documentation

typedef Classifier<T1> C1
typedef Classifier<T2> C2
typedef Classifier<T3> C3
typedef Classifier<T4> C4
typedef Classifier<T5> C5
typedef Classifier<T6> C6
typedef Classifier<T7> C7

Definition at line 281 of file multi_classifier.hh.

Definition at line 282 of file multi_classifier.hh.

typedef V ValueType

Definition at line 280 of file multi_classifier.hh.


Member Enumeration Documentation

anonymous enum
Enumerator:
Dimension 

Definition at line 279 of file multi_classifier.hh.


Constructor & Destructor Documentation

MultiClassifier ( const V &  initial_value,
typename C1::ConstRefType  c1,
typename C2::ConstRefType  c2 = typename C2::Type(),
typename C3::ConstRefType  c3 = typename C3::Type(),
typename C4::ConstRefType  c4 = typename C4::Type(),
typename C5::ConstRefType  c5 = typename C5::Type(),
typename C6::ConstRefType  c6 = typename C6::Type(),
typename C7::ConstRefType  c7 = typename C7::Type() 
)
inline

Definition at line 300 of file multi_classifier.hh.

MultiClassifier ( )
inline

Definition at line 318 of file multi_classifier.hh.

MultiClassifier ( const MultiClassifier< V, T1, T2, T3, T4, T5, T6, T7 > &  rhs)
inline

Definition at line 339 of file multi_classifier.hh.


Member Function Documentation

void Add ( const ValueType value,
T1  x1 = T1(),
T2  x2 = T2(),
T3  x3 = T3(),
T4  x4 = T4(),
T5  x5 = T5(),
T6  x6 = T6(),
T7  x7 = T7() 
)
inline

Definition at line 354 of file multi_classifier.hh.

void Add ( const ValueType value,
const IndexType index 
)
inline

Definition at line 407 of file multi_classifier.hh.

IndexType FindBucket ( T1  x1 = T1(),
T2  x2 = T2(),
T3  x3 = T3(),
T4  x4 = T4(),
T5  x5 = T5(),
T6  x6 = T6(),
T7  x7 = T7() 
) const
inline

Definition at line 384 of file multi_classifier.hh.

const ValueType& Get ( T1  x1 = T1(),
T2  x2 = T2(),
T3  x3 = T3(),
T4  x4 = T4(),
T5  x5 = T5(),
T6  x6 = T6(),
T7  x7 = T7() 
) const
inline

Definition at line 364 of file multi_classifier.hh.

const ValueType& Get ( const IndexType index) const
inline

Definition at line 372 of file multi_classifier.hh.

uint32_t GetBucketCount ( ) const
inline

Definition at line 350 of file multi_classifier.hh.

void Serialize ( DS &  ds)
inline

Definition at line 324 of file multi_classifier.hh.

void Set ( const IndexType index,
const ValueType value 
)
inline

Definition at line 377 of file multi_classifier.hh.


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