Class TextInterface::GetParserPolicy

template<class C, class Get>
class GetParserPolicy

Policy for getting a Parser for an object.

Specialize this template to customize the behaviour for different types

Template Parameters:
  • C – type of object for which a Parser is obtained

  • Get – pointer to function that returns a pointer to a Parser, given a pointer to an object of type C

Public Functions

inline Parser *operator()(const C *ptr, Get func) const

Function call operator returns a pointer to a Parser.

Parameters:
  • ptr – pointer to object of template argument type C

  • func – pointer to function of template argument type Get

Returns:

pointer to Parser