Auxiliary class for selection of data type.
More...
#include <JTypeSelector.hh>
|
| static const T & | getDefault () |
| | Get default value of template class.
|
| |
template<class T>
struct JLANG::JTypeSelector< T >
Auxiliary class for selection of data type.
This class implements the JLANG::JObjectSelector interface.
Definition at line 22 of file JTypeSelector.hh.
◆ argument_type
Type definition of argument of interface method.
Definition at line 28 of file JTypeSelector.hh.
◆ JTypeSelector() [1/2]
◆ JTypeSelector() [2/2]
template<class T >
template<class JSelector_t >
Constructor.
- Parameters
-
Definition at line 45 of file JTypeSelector.hh.
46 {
48 }
static JTypeSelector selector
Selector.
◆ accept() [1/2]
Accept data type.
- Returns
- true if accepted; else false
Definition at line 56 of file JTypeSelector.hh.
◆ accept() [2/2]
◆ set()
◆ operator()()
template<class T >
template<class JSelector_t >
Set selection.
The template argument JSelector_t refers to a data structure which should provide for the function object operator:
bool operator()(JType<T>& type) const; // get status of data type
- Parameters
-
Definition at line 97 of file JTypeSelector.hh.
98 {
100
101 return *this;
102 }
◆ getDefault()
Get default value of template class.
- Returns
- value
Definition at line 24 of file JDefault.hh.
◆ selector
◆ is_enabled
◆ value
The documentation for this struct was generated from the following file: