![]() |
Lumiera 0.pre.04
»edit your freedom«
|
#include "common/advice.hpp"
Basic (abstracted) view of an advice collaboration partner, as used internally by the AdviceSystem to manage the participants.
Each PointOfAdvice is characterised by a binding pattern, used to pair up advice::Request and advice::Provision entries. Moreover, each PointOfAdvice can refer to an existing advice solution provided elsewhere in the system. The specific type of advice (and thus the storage requirements) are abstracted away, as is the distinction between Request and Provision.
Definition at line 122 of file advice.hpp.
Public Member Functions | |
| PointOfAdvice (Binding const &binding) | |
| void | setSolution (PointOfAdvice *solution=0) |
| const PointOfAdvice * | getSolution () const |
| Binding::Matcher | getMatcher () const |
Friends | |
| HashVal | hash_value (PointOfAdvice const &entry) |
Protected Member Functions | |
| void | setBindingPattern (Binding const &binding) |
| define or re-define the binding, which specifically labels this attachment to the advice system. | |
Private Attributes | |
| Binding::Matcher | pattern_ |
| PointOfAdvice * | resolution_ |
|
inlineexplicit |
Definition at line 140 of file advice.hpp.
|
inlineprotected |
define or re-define the binding, which specifically labels this attachment to the advice system.
Definition at line 133 of file advice.hpp.
References Binding::buildMatcher(), and PointOfAdvice::pattern_.
Referenced by Provision< AD >::defineBinding(), and Request< AD >::defineBinding().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 152 of file advice.hpp.
References PointOfAdvice::resolution_.
Referenced by ActiveProvision< AD >::ActiveProvision(), Provision< AD >::Provision(), AdviceLink::discardSolutions(), Provision< AD >::operator=(), and AdviceLink::publishProvision().
Here is the caller graph for this function:
|
inline |
Definition at line 158 of file advice.hpp.
References PointOfAdvice::resolution_.
Referenced by AdviceLink::discardSolutions(), Request< AD >::getAdvice(), Provision< AD >::isGiven(), Request< AD >::isMatched(), and AdviceLink::publishProvision().
Here is the caller graph for this function:
|
inline |
Definition at line 164 of file advice.hpp.
References PointOfAdvice::pattern_.
|
private |
Definition at line 124 of file advice.hpp.
Referenced by PointOfAdvice::getMatcher(), and PointOfAdvice::setBindingPattern().
|
private |
Definition at line 125 of file advice.hpp.
Referenced by PointOfAdvice::getSolution(), and PointOfAdvice::setSolution().
|
friend |
Definition at line 170 of file advice.hpp.
Referenced by Request< AD >::defineBinding().
Inheritance diagram for PointOfAdvice:
Collaboration diagram for PointOfAdvice: