Lumiera 0.pre.04~rc.1
»edit your freedom«
Loading...
Searching...
No Matches
TestPOA Struct Reference

Description

Test dummy record, representing either a provision or an request.

The advice binding is simulated by storing a pattern matcher, and for the case of the advice request, the solution is simulated by a TestPOA*

Definition at line 43 of file advice-index-test.cpp.

Public Attributes

TestPOAsolution_
 
Binding::Matcher pattern_
 

Public Member Functions

 TestPOA (Literal spec="missing")
 
bool matches (Literal refSpec) const
 
void changeBinding (Literal newSpec)
 
void setSolution (TestPOA *p)
 
const TestPOAgetSolution () const
 
Binding::Matcher getMatcher () const
 

Friends

HashVal hash_value (TestPOA const &entry)
 

Constructor & Destructor Documentation

◆ TestPOA()

TestPOA ( Literal  spec = "missing")
inlineexplicit

Definition at line 49 of file advice-index-test.cpp.

Member Function Documentation

◆ matches()

bool matches ( Literal  refSpec) const
inline

Definition at line 55 of file advice-index-test.cpp.

References Binding::Matcher::matches().

+ Here is the call graph for this function:

◆ changeBinding()

void changeBinding ( Literal  newSpec)
inline

Definition at line 61 of file advice-index-test.cpp.

References Binding::buildMatcher().

Referenced by AdviceIndex_test::modifyRequest().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setSolution()

void setSolution ( TestPOA p)
inline

Definition at line 69 of file advice-index-test.cpp.

◆ getSolution()

const TestPOA * getSolution ( ) const
inline

Definition at line 70 of file advice-index-test.cpp.

◆ getMatcher()

Binding::Matcher getMatcher ( ) const
inline

Definition at line 71 of file advice-index-test.cpp.

Member Data Documentation

◆ solution_

TestPOA* solution_

Definition at line 45 of file advice-index-test.cpp.

◆ pattern_

Binding::Matcher pattern_

Definition at line 46 of file advice-index-test.cpp.

Friends And Related Symbol Documentation

◆ hash_value

HashVal hash_value ( TestPOA const &  entry)
friend

Definition at line 74 of file advice-index-test.cpp.

+ Collaboration diagram for TestPOA:

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