Jpp 19.3.0-rc.3
the software that should make you happy
Loading...
Searching...
No Matches
JLANG::JObjectSelector< T > Class Template Reference

Interface for selection of objects. More...

#include <JObjectSelector.hh>

Inheritance diagram for JLANG::JObjectSelector< T >:
JLANG::JDefault< JObjectSelector< T > > JLANG::JTypeSelector< T >

Public Types

typedef JClass< T >::argument_type argument_type
 Type definition of argument of interface method.
 

Public Member Functions

virtual ~JObjectSelector ()
 Virtual destructor.
 
virtual bool accept (argument_type object) const
 Accept object.
 

Static Public Member Functions

static const T & getDefault ()
 Get default value of template class.
 

Static Private Attributes

static const T value
 

Detailed Description

template<class T>
class JLANG::JObjectSelector< T >

Interface for selection of objects.

Definition at line 21 of file JObjectSelector.hh.

Member Typedef Documentation

◆ argument_type

template<class T >
JClass<T>::argument_type JLANG::JObjectSelector< T >::argument_type

Type definition of argument of interface method.

Definition at line 28 of file JObjectSelector.hh.

Constructor & Destructor Documentation

◆ ~JObjectSelector()

template<class T >
virtual JLANG::JObjectSelector< T >::~JObjectSelector ( )
inlinevirtual

Virtual destructor.

Definition at line 34 of file JObjectSelector.hh.

35 {}

Member Function Documentation

◆ accept()

template<class T >
virtual bool JLANG::JObjectSelector< T >::accept ( argument_type object) const
inlinevirtual

Accept object.

Parameters
objectobject
Returns
true if accepted; else false

Reimplemented in JLANG::JTypeSelector< T >, JLANG::JTypeSelector< JHead_t >, and JLANG::JTypeSelector< JTail_t >.

Definition at line 44 of file JObjectSelector.hh.

45 {
46 return true;
47 }

◆ getDefault()

static const T & JLANG::JDefault< T >::getDefault ( )
inlinestaticinherited

Get default value of template class.

Returns
value

Definition at line 24 of file JDefault.hh.

25 {
26 return value;
27 }

Member Data Documentation

◆ value

const T JLANG::JDefault< T >::value
staticprivateinherited

Definition at line 30 of file JDefault.hh.


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