Image Utilities (IU)
 All Data Structures Namespaces Functions Variables Typedefs Enumerations Friends Groups Pages
Public Member Functions | Data Fields
iu::Size< 2 > Class Template Reference

Template specialization for 2-d unsigned int vectors (size vectors). More...

#include <vector.h>

Inheritance diagram for iu::Size< 2 >:
iu::SizeBase< 2 > iu::VectorBase< unsigned int, Ndim >

Public Member Functions

 Size ()
 
 Size (unsigned int value)
 
 Size (std::initializer_list< unsigned int > list)
 
 Size (unsigned int width, unsigned int height)
 
 ~Size ()
 
 Size (const Size &from)
 
 Size (const SizeBase &from)
 
Sizeoperator= (const Size &from)
 
Sizeoperator= (const SizeBase< 2 > &from)
 
- Public Member Functions inherited from iu::SizeBase< 2 >
 SizeBase (unsigned int value)
 
 SizeBase (std::initializer_list< unsigned int > list)
 
 SizeBase (const SizeBase &from)
 
virtual ~SizeBase ()
 
unsigned int numel () const
 
SizeBase operator* (const ScalarType &scalar) const
 
void operator*= (const ScalarType &scalar)
 
SizeBase operator/ (const ScalarType &scalar) const
 
void operator/= (const ScalarType &scalar)
 
SizeBaseoperator= (const SizeBase &from)
 
unsigned int * ptr ()
 
const unsigned int * ptr () const
 
- Public Member Functions inherited from iu::VectorBase< unsigned int, Ndim >
 VectorBase ()
 
 VectorBase (const unsigned int &value)
 
 VectorBase (std::initializer_list< unsigned int > list)
 
virtual ~VectorBase ()
 
unsigned int operator[] (unsigned int i) const
 
unsigned int & operator[] (unsigned int i)
 
void fill (const unsigned int &value)
 

Data Fields

unsigned int & width
 
unsigned int & height
 

Additional Inherited Members

- Static Public Member Functions inherited from iu::VectorBase< unsigned int, Ndim >
static unsigned int ndim ()
 
- Protected Attributes inherited from iu::VectorBase< unsigned int, Ndim >
unsigned int data_ [Ndim]
 

Detailed Description

template<>
class iu::Size< 2 >

Template specialization for 2-d unsigned int vectors (size vectors).

This class additionally has public members width, height and is used for the Image class to be compatible with previously written code.

Constructor & Destructor Documentation

iu::Size< 2 >::Size ( )
inline

Constructor.

iu::Size< 2 >::Size ( unsigned int  value)
inline

Special Constructor. Init all elements of the size vector with a special value.

Parameters
valuevalue to initialize size vector elements.
iu::Size< 2 >::Size ( std::initializer_list< unsigned int >  list)
inline

Special Constructor. Init all elements of the vector with a initializer list.

Parameters
listInitializer list, e.g. {1,2}.
iu::Size< 2 >::Size ( unsigned int  width,
unsigned int  height 
)
inline

Special Constructor. Init size with width, height.

Parameters
widthSet 0th entry of data buffer
heightSet 1st entry of data buffer
iu::Size< 2 >::~Size ( )
inline

Destructor.

iu::Size< 2 >::Size ( const Size< 2 > &  from)
inline

Public copy constructor.

iu::Size< 2 >::Size ( const SizeBase from)
inline

Public copy constructor.

Member Function Documentation

Size& iu::Size< 2 >::operator= ( const Size< 2 > &  from)
inline

Public copy assignment operator.

Size& iu::Size< 2 >::operator= ( const SizeBase< 2 > &  from)
inline

Public copy assignment operator.

Field Documentation

unsigned int& iu::Size< 2 >::height

Height: Reference to 1st entry of data buffer

unsigned int& iu::Size< 2 >::width

Width: Reference to 0th entry of data buffer


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