ROSE 0.11.145.263
Public Types | Public Member Functions | Protected Attributes | List of all members
sg::DispatchHandler< _ReturnType > Struct Template Reference

Description

template<class _ReturnType>
struct sg::DispatchHandler< _ReturnType >

struct DispatchHandler

Base class for any handlers passed to dispatch

This templated class should be used as a BaseClass for Handlers passed to dispatch. "handle" functions will have to be implemented for each possible type to be handled. _ReturnType holds any data that should be returned from the handlers.

Definition at line 185 of file sageGeneric.h.

#include <sageInterface/sageGeneric.h>

Inheritance diagram for sg::DispatchHandler< _ReturnType >:
Inheritance graph
[legend]

Public Types

using ReturnType = _ReturnType
 
using Base = DispatchHandler< ReturnType >
 

Public Member Functions

 DispatchHandler (ReturnType defaultval)
 
 operator ReturnType () &&
 

Protected Attributes

ReturnType res
 

Member Typedef Documentation

◆ ReturnType

template<class _ReturnType >
using sg::DispatchHandler< _ReturnType >::ReturnType = _ReturnType

Definition at line 187 of file sageGeneric.h.

◆ Base

template<class _ReturnType >
using sg::DispatchHandler< _ReturnType >::Base = DispatchHandler<ReturnType>

Definition at line 188 of file sageGeneric.h.

Constructor & Destructor Documentation

◆ DispatchHandler() [1/2]

template<class _ReturnType >
sg::DispatchHandler< _ReturnType >::DispatchHandler ( )
inline

Definition at line 190 of file sageGeneric.h.

◆ DispatchHandler() [2/2]

template<class _ReturnType >
sg::DispatchHandler< _ReturnType >::DispatchHandler ( ReturnType  defaultval)
inlineexplicit

Definition at line 201 of file sageGeneric.h.

Member Function Documentation

◆ operator ReturnType()

template<class _ReturnType >
sg::DispatchHandler< _ReturnType >::operator ReturnType ( ) &&
inline

Definition at line 205 of file sageGeneric.h.

Member Data Documentation

◆ res

template<class _ReturnType >
ReturnType sg::DispatchHandler< _ReturnType >::res
protected

Definition at line 207 of file sageGeneric.h.


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