Cast down the hierarchy. More...
#include <rgrl_cast.h>
Public Member Functions | |
rgrl_cast (rgrl_feature_sptr feature) | |
Downcast a feature object. | |
rgrl_cast (rgrl_feature_set_sptr feature_set) | |
Downcast a feature object. | |
rgrl_cast (rgrl_transformation_sptr trans) | |
Downcast a transformation object. | |
rgrl_cast (rgrl_converge_status_sptr status) | |
Downcast a convergence status object. | |
rgrl_cast (rgrl_invariant_sptr invariant) | |
Downcast an invariant feature object. | |
operator ToType () const | |
ToType | operator-> () const |
rgrl_cast (rgrl_mask_sptr mask) | |
Downcast a mask object. | |
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(...); rgrl_trans_affine* aff = rgrl_cast<rgrl_trans_affine*>(trans);
Definition at line 29 of file rgrl_cast.h.
rgrl_cast< ToType >::rgrl_cast | ( | rgrl_feature_sptr | feature | ) | [inline] |
Downcast a feature object.
Definition at line 33 of file rgrl_cast.h.
rgrl_cast< ToType >::rgrl_cast | ( | rgrl_feature_set_sptr | feature_set | ) | [inline] |
Downcast a feature object.
Definition at line 40 of file rgrl_cast.h.
rgrl_cast< ToType >::rgrl_cast | ( | rgrl_transformation_sptr | trans | ) | [inline] |
Downcast a transformation object.
Definition at line 47 of file rgrl_cast.h.
rgrl_cast< ToType >::rgrl_cast | ( | rgrl_converge_status_sptr | status | ) | [inline] |
Downcast a convergence status object.
Definition at line 54 of file rgrl_cast.h.
rgrl_cast< ToType >::rgrl_cast | ( | rgrl_invariant_sptr | invariant | ) | [inline] |
Downcast an invariant feature object.
Definition at line 61 of file rgrl_cast.h.
rgrl_cast< ToType >::rgrl_cast | ( | rgrl_mask_sptr | mask | ) | [inline] |
Downcast a mask object.
Definition at line 80 of file rgrl_cast.h.
rgrl_cast< ToType >::operator ToType | ( | ) | const [inline] |
Definition at line 68 of file rgrl_cast.h.
ToType rgrl_cast< ToType >::operator-> | ( | ) | const [inline] |
Definition at line 74 of file rgrl_cast.h.
Definition at line 87 of file rgrl_cast.h.