Down cast from rgrl_feature_sptr. More...
#include <rgrl_feature.h>
Public Member Functions | |
rgrl_feature_caster (rgrl_feature_sptr f) | |
operator CastTo * () const | |
CastTo * | operator-> () const |
Private Attributes | |
CastTo * | data_ |
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.
rgrl_feature_sptr ptr; rgrl_feature_landmark* real_ptr = rgrl_feature_caster<rgrl_feature_landmark>(ptr);
Definition at line 187 of file rgrl_feature.h.
rgrl_feature_caster< CastTo >::rgrl_feature_caster | ( | rgrl_feature_sptr | f | ) | [inline] |
Definition at line 190 of file rgrl_feature.h.
rgrl_feature_caster< CastTo >::operator CastTo * | ( | ) | const [inline] |
Definition at line 193 of file rgrl_feature.h.
CastTo* rgrl_feature_caster< CastTo >::operator-> | ( | ) | const [inline] |
Definition at line 194 of file rgrl_feature.h.
CastTo* rgrl_feature_caster< CastTo >::data_ [private] |
Definition at line 196 of file rgrl_feature.h.