ROSE  0.11.145.0
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 117 of file sageGeneric.h.

#include <sageInterface/sageGeneric.h>

Inheritance diagram for sg::DispatchHandler< _ReturnType >:
Inheritance graph
[legend]
Collaboration diagram for sg::DispatchHandler< _ReturnType >:
Collaboration 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
 

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