Image Component Library (ICL)
|
utility class that helps for an implicit conversion between Img<T>* to ImgBase** More...
#include <Img.h>
Public Member Functions | |
ImgBasePtrPtr (Img< T > &i) | |
1st private constructor | |
ImgBasePtrPtr (Img< T > *i) | |
2nd private constructor | |
~ImgBasePtrPtr () | |
Destructor. | |
operator ImgBase ** () | |
Implicit cast operator (allows to place an ImgBasePtrPtr where an ImgBase** is expected) | |
Private Attributes | |
ImgBase * | o |
Internal image pointers. | |
ImgBase * | r |
ImgBase * | rbef |
utility class that helps for an implicit conversion between Img<T>* to ImgBase**
icl::core::ImgBasePtrPtr< T >::ImgBasePtrPtr | ( | Img< T > & | i | ) |
1st private constructor
icl::core::ImgBasePtrPtr< T >::ImgBasePtrPtr | ( | Img< T > * | i | ) |
2nd private constructor
icl::core::ImgBasePtrPtr< T >::~ImgBasePtrPtr | ( | ) |
Destructor.
In this class, the destrutctor does all of the work: if the pointer returned by the implicit cast to ImgBase** operator was chnaged (reallocated) it is detected here, and a warnig is writte to std::out. To ensure compability for later computation, the reallocated images data is converted into the given source image. By this means, the result image gets all parameters of the source image except its depth. Images, that are not further needed, are deleted automatically.
icl::core::ImgBasePtrPtr< T >::operator ImgBase ** | ( | ) | [inline] |
Implicit cast operator (allows to place an ImgBasePtrPtr where an ImgBase** is expected)
ImgBase* icl::core::ImgBasePtrPtr< T >::o [private] |
Internal image pointers.
ImgBase * icl::core::ImgBasePtrPtr< T >::r [private] |
ImgBase * icl::core::ImgBasePtrPtr< T >::rbef [private] |