Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Dims.H File Reference


Detailed Description

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

Definition in file Dims.H.

#include "Util/Assert.H"
#include "Util/Types.H"
#include <string>

Include dependency graph for Dims.H:

This graph shows which files directly or indirectly include this file:

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.


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.

References c, h, s, and w.

std::string convertToString const Dims val  ) 
 

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

Definition at line 49 of file Dims.C.

References Dims::h(), s, 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().

Referenced by nub::objectdb::casting_iterator< T >::operator->().

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 Nov 22 13:44:05 2009 for iLab Neuromorphic Vision Toolkit by  doxygen 1.4.4