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


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 133 of file sageGeneric.h.

#include <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

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