Public Member Functions | Private Attributes
rgrl_feature_caster< CastTo > Class Template Reference

Down cast from rgrl_feature_sptr. More...

#include <rgrl_feature.h>

List of all members.

Public Member Functions

 rgrl_feature_caster (rgrl_feature_sptr f)
 operator CastTo * () const
CastTo * operator-> () const

Private Attributes

CastTo * data_

Detailed Description

template<class CastTo>
class rgrl_feature_caster< CastTo >

Down cast from rgrl_feature_sptr.

This does a dynamic_cast and then asserts that the result is not null. Therefore, you are guaranteed that the result is a valid pointer, or else the program will halt.

Definition at line 187 of file rgrl_feature.h.


Constructor & Destructor Documentation

template<class CastTo >
rgrl_feature_caster< CastTo >::rgrl_feature_caster ( rgrl_feature_sptr  f) [inline]

Definition at line 190 of file rgrl_feature.h.


Member Function Documentation

template<class CastTo >
rgrl_feature_caster< CastTo >::operator CastTo * ( ) const [inline]

Definition at line 193 of file rgrl_feature.h.

template<class CastTo >
CastTo* rgrl_feature_caster< CastTo >::operator-> ( ) const [inline]

Definition at line 194 of file rgrl_feature.h.


Member Data Documentation

template<class CastTo >
CastTo* rgrl_feature_caster< CastTo >::data_ [private]

Definition at line 196 of file rgrl_feature.h.


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