ROSE 0.11.145.192
|
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>
Public Types | |
typedef _ReturnType | ReturnType |
typedef DispatchHandler< ReturnType > | Base |
Public Member Functions | |
DispatchHandler (const ReturnType &defaultval) | |
operator ReturnType () const | |
Protected Attributes | |
ReturnType | res |
typedef _ReturnType sg::DispatchHandler< _ReturnType >::ReturnType |
Definition at line 187 of file sageGeneric.h.
typedef DispatchHandler<ReturnType> sg::DispatchHandler< _ReturnType >::Base |
Definition at line 188 of file sageGeneric.h.
|
inline |
Definition at line 190 of file sageGeneric.h.
|
inlineexplicit |
Definition at line 195 of file sageGeneric.h.
|
inline |
Definition at line 199 of file sageGeneric.h.
|
protected |
Definition at line 202 of file sageGeneric.h.