Fleet  0.0.9
Inference in the LOT
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Object< feature_t > Class Template Reference

#include <Object.h>

Public Member Functions

 Object (int __nothing=0)
 
 Object (feature_t... types)
 
template<typename t >
get () const
 Get one of the feature values. More...
 
template<typename t >
void set (t val)
 Set a feature value. More...
 
template<typename t >
bool is (t v) const
 Check if this feature dimension is a given value. More...
 
auto operator (const Object &o) const
 
bool operator== (const Object &o) const
 
std::string string () const
 

Static Public Member Functions

template<typename... T>
static Object< T... > __sample ()
 Sample a uniformly random object. This requires our features to end in __count. More...
 
static Object< feature_t... > sample ()
 

Public Attributes

std::tuple< feature_t... > feature
 

Detailed Description

template<typename... feature_t>
class Object< feature_t >

Author
piantado
Date
02/08/20

Constructor & Destructor Documentation

◆ Object() [1/2]

template<typename... feature_t>
Object< feature_t >::Object ( int  __nothing = 0)
inline

◆ Object() [2/2]

template<typename... feature_t>
Object< feature_t >::Object ( feature_t...  types)
inline

Member Function Documentation

◆ __sample()

template<typename... feature_t>
template<typename... T>
static Object<T...> Object< feature_t >::__sample ( )
inlinestatic

Sample a uniformly random object. This requires our features to end in __count.

◆ get()

template<typename... feature_t>
template<typename t >
t Object< feature_t >::get ( ) const
inline

Get one of the feature values.

Returns

◆ is()

template<typename... feature_t>
template<typename t >
bool Object< feature_t >::is ( v) const
inline

Check if this feature dimension is a given value.

Parameters
v
Returns

◆ operator()

template<typename... feature_t>
auto Object< feature_t >::operator ( const Object< feature_t > &  o) const
inline

◆ operator==()

template<typename... feature_t>
bool Object< feature_t >::operator== ( const Object< feature_t > &  o) const
inline

◆ sample()

template<typename... feature_t>
static Object<feature_t...> Object< feature_t >::sample ( )
inlinestatic

◆ set()

template<typename... feature_t>
template<typename t >
void Object< feature_t >::set ( val)
inline

Set a feature value.

Parameters
val

◆ string()

template<typename... feature_t>
std::string Object< feature_t >::string ( ) const
inline

Member Data Documentation

◆ feature

template<typename... feature_t>
std::tuple<feature_t...> Object< feature_t >::feature

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