Fleet  0.0.9
Inference in the LOT
Public Member Functions | Public Attributes | List of all members
CachedCallHypothesis< this_t, datum_t, output_t > Class Template Reference

#include <CachedCallHypothesis.h>

Public Member Functions

 CachedCallHypothesis ()
 
void clear_cache ()
 
virtual output_t cached_call_wrapper (const datum_t &di)
 This is how we access the data before calling – needed to say how this interfaces with the data. More...
 
void cached_call (const std::vector< datum_t > &data, bool break_on_error=true)
 

Public Attributes

std::vector< output_t > cache
 
bool got_error
 

Detailed Description

template<typename this_t, typename datum_t, typename output_t>
class CachedCallHypothesis< this_t, datum_t, output_t >

Author
Steven Piantadosi
Date
20/10/21

Constructor & Destructor Documentation

◆ CachedCallHypothesis()

template<typename this_t, typename datum_t, typename output_t>
CachedCallHypothesis< this_t, datum_t, output_t >::CachedCallHypothesis ( )
inline

Member Function Documentation

◆ cached_call()

template<typename this_t, typename datum_t, typename output_t>
void CachedCallHypothesis< this_t, datum_t, output_t >::cached_call ( const std::vector< datum_t > &  data,
bool  break_on_error = true 
)
inline

◆ cached_call_wrapper()

template<typename this_t, typename datum_t, typename output_t>
virtual output_t CachedCallHypothesis< this_t, datum_t, output_t >::cached_call_wrapper ( const datum_t &  di)
inlinevirtual

This is how we access the data before calling – needed to say how this interfaces with the data.

Parameters
di
Returns

Reimplemented in InnerHypothesis, and InnerHypothesis.

◆ clear_cache()

template<typename this_t, typename datum_t, typename output_t>
void CachedCallHypothesis< this_t, datum_t, output_t >::clear_cache ( )
inline

Member Data Documentation

◆ cache

template<typename this_t, typename datum_t, typename output_t>
std::vector<output_t> CachedCallHypothesis< this_t, datum_t, output_t >::cache

◆ got_error

template<typename this_t, typename datum_t, typename output_t>
bool CachedCallHypothesis< this_t, datum_t, output_t >::got_error

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