Pink 0.9
Classes | Namespaces | Functions

ui_convert_if.hpp File Reference

This function is used for automated type casting. It contains template algorithms that cast the 'ujoi<>' classes to 'xvimage*'. As it is a casting it is done in constant time, no pixel values are copied. More...

Classes

struct  pink::python::convert_if< T >
 This class casts an 'ujoi<>' image class to 'xvimage*'. If the template parameter is not derived from 'pink_image' class, then the type is unchanged. More...
struct  pink::python::xv2pink< T >
 This class is used for C function type decomposition. It takes any type as template parameter and if it's 'xvimage*' then it returns 'pink_image'. In other cases it returns the parameter type unchanged. More...

Namespaces

namespace  pink

Functions

template<class RT , class T , RT(*)(T) mcfunction>
RT pink::python::ui_cheat (T t)
 This class is used to delay the instantiation of a template function.

Detailed Description

This function is used for automated type casting. It contains template algorithms that cast the 'ujoi<>' classes to 'xvimage*'. As it is a casting it is done in constant time, no pixel values are copied.

Author:
UjoImro, 2011