Cast down the hierarchy. More...
#include <rgrl_cast.h>
Public Member Functions | |
rgrl_const_cast (rgrl_feature_sptr const &feature) | |
Downcast a feature object. | |
rgrl_const_cast (rgrl_feature_set_sptr const &feature_set) | |
Downcast a feature object. | |
rgrl_const_cast (rgrl_transformation_sptr const &trans) | |
Downcast a transformation object. | |
rgrl_const_cast (rgrl_converge_status_sptr const &status) | |
Downcast a convergence status object. | |
rgrl_const_cast (rgrl_invariant_sptr const &invariant) | |
Downcast an invariant feature object. | |
operator const ToType () const | |
const ToType | operator-> () const |
Private Attributes | |
void * | ptr |
Cast down the hierarchy.
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.
Example of usage:
rgrl_transformation_sptr trans = new rgrl_trans_affine(...); const rgrl_trans_affine* aff = rgrl_const_cast<rgrl_trans_affine*>(trans);
Definition at line 104 of file rgrl_cast.h.
rgrl_const_cast< ToType >::rgrl_const_cast | ( | rgrl_feature_sptr const & | feature | ) | [inline] |
Downcast a feature object.
Definition at line 108 of file rgrl_cast.h.
rgrl_const_cast< ToType >::rgrl_const_cast | ( | rgrl_feature_set_sptr const & | feature_set | ) | [inline] |
Downcast a feature object.
Definition at line 115 of file rgrl_cast.h.
rgrl_const_cast< ToType >::rgrl_const_cast | ( | rgrl_transformation_sptr const & | trans | ) | [inline] |
Downcast a transformation object.
Definition at line 122 of file rgrl_cast.h.
rgrl_const_cast< ToType >::rgrl_const_cast | ( | rgrl_converge_status_sptr const & | status | ) | [inline] |
Downcast a convergence status object.
Definition at line 129 of file rgrl_cast.h.
rgrl_const_cast< ToType >::rgrl_const_cast | ( | rgrl_invariant_sptr const & | invariant | ) | [inline] |
Downcast an invariant feature object.
Definition at line 136 of file rgrl_cast.h.
rgrl_const_cast< ToType >::operator const ToType | ( | ) | const [inline] |
Definition at line 143 of file rgrl_cast.h.
const ToType rgrl_const_cast< ToType >::operator-> | ( | ) | const [inline] |
Definition at line 149 of file rgrl_cast.h.
void* rgrl_const_cast< ToType >::ptr [private] |
Definition at line 155 of file rgrl_cast.h.