Lumiera  0.pre.03
»edit your freedom«
QueryHandler< TY > Class Template Referenceabstract

#include "common/config-rules.hpp"

Description

template<class TY>
class lumiera::query::QueryHandler< TY >

the "front side" interface: the Steam-Layer code can use this QueryHandler to retrieve instances of the type TY fulfilling the given Query.

To start with, we use a mock implementation. (this code works and is already used 2/2008)

Todo:
retrofit this to install and use a QueryResolver
See also
lumiera::query::LookupPreconfigured
lumiera::query::MockTable

Definition at line 163 of file config-rules.hpp.

Public Member Functions

virtual bool resolve (P< TY > &solution, Query< TY > const &q)=0
 try to find or create an object of type TY fulfilling the given query. More...
 

Member Function Documentation

◆ resolve()

virtual bool resolve ( P< TY > &  solution,
Query< TY > const &  q 
)
pure virtual

try to find or create an object of type TY fulfilling the given query.

Parameters
solutionobject fulfilling the query. Will be bound or unified (in case it's already bound) with the first solution. any goals to be fulfilled by the solution.
Returns
false if resolution failed. In this case, solution ptr is empty.

Referenced by StructFactory::operator()(), and steam::mobject::_mapping::resolveQuery().

+ Here is the caller graph for this function:
+ Collaboration diagram for QueryHandler< TY >:

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