Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
ActiveProvision< AD > Class Template Reference

#include "common/advice.hpp"

Description

template<class AD>
class lumiera::advice::ActiveProvision< AD >

Piece of Advice as incorporated into the AdviceSystem.

This holder-object contains a copy of the advice data and is placed into the internal storage buffer; the advice index keeps a (type erased) pointer to serve any requests which happen to match the binding.

Note
the ptr-to-solution in the inherited PointOfAdvice is currently (5/10) not used, because this is already the solution.

Definition at line 317 of file advice.hpp.

Public Member Functions

AD const & getAdvice () const
 
- Public Member Functions inherited from PointOfAdvice
 PointOfAdvice (Binding const &binding)
 
void setSolution (PointOfAdvice *solution=0)
 
const PointOfAdvicegetSolution () const
 
Binding::Matcher getMatcher () const
 

Friends

class Provision< AD >
 

Protected Member Functions

 ActiveProvision (PointOfAdvice const &refPoint, AD const &advice_given)
 
- Protected Member Functions inherited from PointOfAdvice
void setBindingPattern (Binding const &binding)
 define or re-define the binding, which specifically labels this attachment to the advice system.
 

Private Attributes

AD theAdvice_
 

Additional Inherited Members

- Private Member Functions inherited from NonCopyable
 ~NonCopyable ()=default
 
 NonCopyable ()=default
 
 NonCopyable (NonCopyable const &)=delete
 
NonCopyableoperator= (NonCopyable const &)=delete
 

Constructor & Destructor Documentation

◆ ActiveProvision()

template<class AD >
ActiveProvision ( PointOfAdvice const &  refPoint,
AD const &  advice_given 
)
inlineprotected

Definition at line 331 of file advice.hpp.

References PointOfAdvice::setSolution().

+ Here is the call graph for this function:

Member Function Documentation

◆ getAdvice()

template<class AD >
AD const & getAdvice ( ) const
inline

Definition at line 325 of file advice.hpp.

References ActiveProvision< AD >::theAdvice_.

Member Data Documentation

◆ theAdvice_

template<class AD >
AD theAdvice_
private

Definition at line 321 of file advice.hpp.

Referenced by ActiveProvision< AD >::getAdvice().

Friends And Related Symbol Documentation

◆ Provision< AD >

template<class AD >
friend class Provision< AD >
friend

Definition at line 331 of file advice.hpp.

+ Inheritance diagram for ActiveProvision< AD >:
+ Collaboration diagram for ActiveProvision< AD >:

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