Go to the source code of this file.
Defines | |
#define | PIX_INST(CLASS, TYPE) |
Instantiate classes with pixel types. | |
#define | PIX_INST_ALL(CLASS, TYPE) |
Instantiate classes with ALL known pixel types. |
Macros for instantiating classes with pixel types
Definition in file PixelsInst.H.
#define PIX_INST | ( | CLASS, | |||
TYPE | ) |
template class CLASS< TYPE >; \ template class CLASS< PixRGB<TYPE> >;
Instantiate classes with pixel types.
PIX_INST only includes the "common" pixel types. To also instantiate a class for less-common pixel types, use the PIX_INST_ALL macro instead (see below). See bottom of Image.C, ImageCache.C and ImageSet.C for usage.
NOTE: if you move a pixel type from PIX_INST to PIX_INST_ALL, or vice versa, you'll probably need to make a corresponding change in the extract_templates.tcl script.
Definition at line 62 of file PixelsInst.H.
#define PIX_INST_ALL | ( | CLASS, | |||
TYPE | ) |
template class CLASS< PixH2SV1<TYPE> >; \ template class CLASS< PixH2SV2<TYPE> >; \ template class CLASS< PixYIQ<TYPE> >; \ template class CLASS< PixJpegYUV<TYPE> >; \ template class CLASS< PixVideoYUV<TYPE> >; \ template class CLASS< PixHSV<TYPE> >; \ template class CLASS< PixH2SV3<TYPE> >; \ template class CLASS< PixHyper<TYPE,3> >; \ template class CLASS< PixHyper<TYPE,4> >;
Instantiate classes with ALL known pixel types.
To instantiate a class with only "common" pixel types, use PIX_INST (see above) instead of PIX_INST_ALL.
NOTE: if you move a pixel type from PIX_INST to PIX_INST_ALL, or vice versa, you'll probably need to make a corresponding change in the extract_templates.tcl script.
Definition at line 77 of file PixelsInst.H.