Dims.H File Reference

#include "Util/Assert.H"
#include "Util/Types.H"
#include <string>
Include dependency graph for Dims.H:

Go to the source code of this file.

Classes

class  Dims
 A simple struct to hold a pair of width/height dimensions. More...

Functions

std::string convertToString (const Dims &val)
 Dims overload: format is "<int>x<int>".
void convertFromString (const std::string &str, Dims &val)
 Dims overload: format is "<int>x<int>".
Dims operator+ (const Dims &d1, const Dims &d2)
 Dims+Dims addition.
Dims operator+ (const Dims &d, int a)
 Dims+int addition.
Dims operator+ (int a, const Dims &d)
 int+Dims addition
Dims operator- (const Dims &d, int a)
 Dims-int subtraction.
Dims operator* (const Dims &d, int factor)
 Dims*int multiplication.
Dims operator* (const Dims &d, double factor)
 Dims*double multiplication.
Dims operator* (int factor, const Dims &d)
 int*Dims multiplication
Dims operator* (double factor, const Dims &d)
 double*Dims multiplication
Dims operator/ (const Dims &d, int factor)
 Dims/int division.
Dims operator/ (const Dims &d, double factor)
 Dims/double division.

Detailed Description

A simple struct to hold a pair of width/height dimensions.

Definition in file Dims.H.


Function Documentation

void convertFromString ( const std::string str,
Dims val 
)

Dims overload: format is "<int>x<int>".

Definition at line 52 of file Dims.C.

std::string convertToString ( const Dims val  ) 

Dims overload: format is "<int>x<int>".

Definition at line 49 of file Dims.C.

References Dims::h(), and Dims::w().

Dims operator* ( double  factor,
const Dims d 
) [inline]

double*Dims multiplication

Definition at line 157 of file Dims.H.

References Dims::h(), and Dims::w().

Dims operator* ( int  factor,
const Dims d 
) [inline]

int*Dims multiplication

Definition at line 151 of file Dims.H.

References Dims::h(), and Dims::w().

Dims operator* ( const Dims d,
double  factor 
) [inline]

Dims*double multiplication.

Definition at line 145 of file Dims.H.

References Dims::h(), and Dims::w().

Dims operator* ( const Dims d,
int  factor 
) [inline]

Dims*int multiplication.

Definition at line 139 of file Dims.H.

References Dims::h(), and Dims::w().

Dims operator+ ( int  a,
const Dims d 
) [inline]

int+Dims addition

Definition at line 127 of file Dims.H.

References Dims::h(), and Dims::w().

Dims operator+ ( const Dims d,
int  a 
) [inline]

Dims+int addition.

Definition at line 121 of file Dims.H.

References Dims::h(), and Dims::w().

Dims operator+ ( const Dims d1,
const Dims d2 
) [inline]

Dims+Dims addition.

Definition at line 115 of file Dims.H.

References Dims::h(), and Dims::w().

Dims operator- ( const Dims d,
int  a 
) [inline]

Dims-int subtraction.

Definition at line 133 of file Dims.H.

References Dims::h(), and Dims::w().

Dims operator/ ( const Dims d,
double  factor 
) [inline]

Dims/double division.

Definition at line 169 of file Dims.H.

References Dims::h(), and Dims::w().

Dims operator/ ( const Dims d,
int  factor 
) [inline]

Dims/int division.

Definition at line 163 of file Dims.H.

References Dims::h(), and Dims::w().

Generated on Sun May 8 08:42:41 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3