ROSE 0.11.145.192
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 to be 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 traversal.

Definition at line 185 of file sageGeneric.h.

#include <sageInterface/sageGeneric.h>

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

Public Types

typedef _ReturnType ReturnType
 
typedef DispatchHandler< ReturnType > Base
 

Public Member Functions

 DispatchHandler (const ReturnType &defaultval)
 
 operator ReturnType () const
 

Protected Attributes

ReturnType res
 

Member Typedef Documentation

◆ ReturnType

template<class _ReturnType >
typedef _ReturnType sg::DispatchHandler< _ReturnType >::ReturnType

Definition at line 187 of file sageGeneric.h.

◆ Base

template<class _ReturnType >
typedef DispatchHandler<ReturnType> sg::DispatchHandler< _ReturnType >::Base

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 ( const ReturnType &  defaultval)
inlineexplicit

Definition at line 195 of file sageGeneric.h.

Member Function Documentation

◆ operator ReturnType()

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

Definition at line 199 of file sageGeneric.h.

Member Data Documentation

◆ res

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

Definition at line 202 of file sageGeneric.h.


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