HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Image_or_Const Class Reference

#include <imagebufalgo.h>

Classes

struct  None
 

Public Member Functions

 Image_or_Const (None)
 
 Image_or_Const (const ImageBuf &img)
 
 Image_or_Const (const ImageBuf *img)
 
 Image_or_Const (cspan< float > val)
 
 Image_or_Const (const float &val)
 
 Image_or_Const (const std::vector< float > &val)
 
 Image_or_Const (std::initializer_list< const float > val)
 
 Image_or_Const (const float *v, size_t s)
 
 Image_or_Const (const float *v, int s)
 
bool is_img () const
 
bool is_val () const
 
bool is_empty () const
 
const ImageBufimg () const
 
const ImageBufimgptr () const
 
cspan< floatval () const
 
void swap (Image_or_Const &other)
 

Detailed Description

Image_or_Const: Parameter-passing helper that is a non-owning reference to either an ImageBuf&, ImageBuf*, per-channel float constant, or a single float constant. This lets us tame the combinatorics of functions where each of several input parameters may be either images or constant values.

Definition at line 156 of file imagebufalgo.h.

Constructor & Destructor Documentation

Image_or_Const::Image_or_Const ( None  )
inline

Definition at line 159 of file imagebufalgo.h.

Image_or_Const::Image_or_Const ( const ImageBuf img)
inline

Definition at line 160 of file imagebufalgo.h.

Image_or_Const::Image_or_Const ( const ImageBuf img)
inline

Definition at line 161 of file imagebufalgo.h.

Image_or_Const::Image_or_Const ( cspan< float val)
inline

Definition at line 162 of file imagebufalgo.h.

Image_or_Const::Image_or_Const ( const float val)
inline

Definition at line 163 of file imagebufalgo.h.

Image_or_Const::Image_or_Const ( const std::vector< float > &  val)
inline

Definition at line 164 of file imagebufalgo.h.

Image_or_Const::Image_or_Const ( std::initializer_list< const float val)
inline

Definition at line 165 of file imagebufalgo.h.

Image_or_Const::Image_or_Const ( const float v,
size_t  s 
)
inline

Definition at line 166 of file imagebufalgo.h.

Image_or_Const::Image_or_Const ( const float v,
int  s 
)
inline

Definition at line 167 of file imagebufalgo.h.

Member Function Documentation

const ImageBuf& Image_or_Const::img ( ) const
inline

Definition at line 172 of file imagebufalgo.h.

const ImageBuf* Image_or_Const::imgptr ( ) const
inline

Definition at line 173 of file imagebufalgo.h.

bool Image_or_Const::is_empty ( ) const
inline

Definition at line 171 of file imagebufalgo.h.

bool Image_or_Const::is_img ( ) const
inline

Definition at line 169 of file imagebufalgo.h.

bool Image_or_Const::is_val ( ) const
inline

Definition at line 170 of file imagebufalgo.h.

void Image_or_Const::swap ( Image_or_Const other)
inline

Definition at line 176 of file imagebufalgo.h.

cspan<float> Image_or_Const::val ( ) const
inline

Definition at line 174 of file imagebufalgo.h.


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