24 #include "cheetah/rfim/policy/Policy.h" 33 template<
typename ReturnType,
typename AdapterDataReturnType>
36 template<
typename Adapter,
typename DataType>
38 ReturnType exec(Adapter& adapter, DataType
const&) {
39 return adapter.data();
43 template<
typename ReturnType>
44 struct DoReturn<ReturnType, void>
46 template<
typename Adapter>
48 ReturnType& exec(Adapter
const&, ReturnType& arg) {
55 template<
typename PolicyType>
56 Policy<PolicyType>::Policy()
60 template<
typename PolicyType>
61 template<
typename HandlerType>
64 AdapterType adapter( _policy.adapter(arg) );
65 handler(arg, adapter);
66 return DoReturn<ReturnType, typename PolicyInfo<PolicyType>::AdapterDataReturnType>::exec(adapter, arg);
69 template<
typename PolicyType>
72 AdapterType adapter( _policy.adapter(arg) );
73 return DoReturn<ReturnType, typename PolicyInfo<PolicyType>::AdapterDataReturnType>::exec(adapter, arg);
Some limits and constants for FLDO.
ReturnType exec(Handler, ArgumentType &data)
start a single Policy sequence. 1) a data adapter is requested from the policy 2) the argument and th...
ReturnType null_op(ArgumentType &data)
Generates the appropriate ReturnType for the Policy but performs no actions in the data...