Lumiera  0.pre.03
»edit your freedom«
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 326 of file advice.hpp.

Public Member Functions

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

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. More...
 

Private Attributes

AD theAdvice_
 

Additional Inherited Members

- Private Member Functions inherited from NonCopyable
 NonCopyable (NonCopyable const &)=delete
 
NonCopyableoperator= (NonCopyable const &)=delete
 
+ Inheritance diagram for ActiveProvision< AD >:
+ Collaboration diagram for ActiveProvision< AD >:

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