Lumiera 0.pre.04~rc.1
»edit your freedom«
Loading...
Searching...
No Matches
VerbToken< REC, RET(ARGS...)> Class Template Reference

#include "lib/verb-token.hpp"

Description

template<class REC, class RET, typename... ARGS>
class lib::VerbToken< REC, RET(ARGS...)>

Definition at line 72 of file verb-token.hpp.

Public Types

typedef RET(REC::* Handler) (ARGS...)
 

Public Member Functions

RET applyTo (REC &receiver, ARGS &&...args)
 
 VerbToken (Handler handlerFunction, Literal token)
 
 VerbToken ()
 
 operator string () const
 
Literal const & getID () const
 
bool operator== (VerbToken const &o) const
 equality of VerbToken, based on equality of the token_ Literal
 
bool operator!= (VerbToken const &o) const
 

Protected Attributes

Handler handler_
 
Literal token_
 

Constructor & Destructor Documentation

◆ VerbToken() [1/2]

template<class REC , class RET , typename... ARGS>
VerbToken ( Handler  handlerFunction,
Literal  token 
)
inline

Definition at line 89 of file verb-token.hpp.

◆ VerbToken() [2/2]

template<class REC , class RET , typename... ARGS>
VerbToken ( )
inline

Definition at line 94 of file verb-token.hpp.

Member Typedef Documentation

◆ Handler

template<class REC , class RET , typename... ARGS>
typedef RET(REC::* Handler) (ARGS...)

Definition at line 75 of file verb-token.hpp.

Member Function Documentation

◆ applyTo()

template<class REC , class RET , typename... ARGS>
RET applyTo ( REC &  receiver,
ARGS &&...  args 
)
inline

Definition at line 83 of file verb-token.hpp.

◆ operator string()

template<class REC , class RET , typename... ARGS>
operator string ( ) const
inline

Definition at line 101 of file verb-token.hpp.

◆ getID()

template<class REC , class RET , typename... ARGS>
Literal const & getID ( ) const
inline

Definition at line 107 of file verb-token.hpp.

◆ operator==()

template<class REC , class RET , typename... ARGS>
bool operator== ( VerbToken< REC, RET(ARGS...)> const &  o) const
inline

equality of VerbToken, based on equality of the token_ Literal

Remarks
member pointers to virtual functions aren't comparable, for good reason

Definition at line 115 of file verb-token.hpp.

◆ operator!=()

template<class REC , class RET , typename... ARGS>
bool operator!= ( VerbToken< REC, RET(ARGS...)> const &  o) const
inline

Definition at line 116 of file verb-token.hpp.

Member Data Documentation

◆ handler_

template<class REC , class RET , typename... ARGS>
Handler handler_
protected

Definition at line 78 of file verb-token.hpp.

◆ token_

template<class REC , class RET , typename... ARGS>
Literal token_
protected

Definition at line 79 of file verb-token.hpp.

+ Inheritance diagram for VerbToken< REC, RET(ARGS...)>:
+ Collaboration diagram for VerbToken< REC, RET(ARGS...)>:

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