Pink 0.9

pink::python::convert_if< T > Struct Template Reference

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...

List of all members.


Detailed Description

template<class T>
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.

Example of usage:

    convert_if<char_image>::type I; // I will be of 'xvimage*' type. 
    convert_if<int_image>::type I;  // I will be of 'xvimage*' type. 
    convert_if<float>::type I;      // I will be of 'float' type.' 
Template Parameters:
TThe type to cast

The documentation for this struct was generated from the following file: