Main Page   Groups   Namespaces  

mini3d::opEquality Class Reference
[Operation]

opEquality - Check if two entities are the same More...

List of all members.

Public Member Functions

 opEquality (double epsilon=EPSILON)
 A default constructor.
virtual ~opEquality ()
 A destructor.
virtual bool check (double lhs, double rhs) const
 Check if two double are the same.
template<typename T, int S>
bool check (const array<T, S>& lhs, const array<T, S>& rhs) const
 Check if two vectors are the same.
template<typename T, int nR, int nC>
bool check (const matrix<T, nR, nC>& lhs, const matrix<T, nR, nC>& rhs) const
 Check if two matrixs are the same.
template<typename T>
bool check (const std::vector<T>& lhs, const std::vector<T>& rhs) const
 Check if two std::vector are the same.
template<typename T>
bool check (const std::list<T>& lhs, const std::list<T>& rhs) const
 Check if two std::list are the same.

Protected Attributes

double _epsilon

Classes

class  containerElementCheck
 containerElementCheck - Check if two entities in the stl container are the same More...


Detailed Description

opEquality - Check if two entities are the same


Constructor & Destructor Documentation

mini3d::opEquality::opEquality ( double  epsilon = EPSILON  ) 
 

A default constructor.

Parameters:
epsilon the epsilon of checking

virtual mini3d::opEquality::~opEquality (  )  [virtual]
 

A destructor.


Member Function Documentation

template <typename T>
bool mini3d::opEquality::check ( const std::list<T>&  lhs,
const std::list<T>&  rhs
const [inline]
 

Check if two std::list are the same.

Returns:
true if they are the same, false otherwise

template <typename T>
bool mini3d::opEquality::check ( const std::vector<T>&  lhs,
const std::vector<T>&  rhs
const [inline]
 

Check if two std::vector are the same.

Returns:
true if they are the same, false otherwise

template <typename T, int nR, int nC>
bool mini3d::opEquality::check ( const matrix<T, nR, nC>&  lhs,
const matrix<T, nR, nC>&  rhs
const [inline]
 

Check if two matrixs are the same.

Returns:
true if they are the same, false otherwise

template <typename T, int S>
bool mini3d::opEquality::check ( const array<T, S>&  lhs,
const array<T, S>&  rhs
const [inline]
 

Check if two vectors are the same.

Returns:
true if they are the same, false otherwise

virtual bool mini3d::opEquality::check ( double  lhs,
double  rhs
const [virtual]
 

Check if two double are the same.

Returns:
true if they are the same, false otherwise


Member Data Documentation

double mini3d::opEquality::_epsilon [protected]
 


The documentation for this class was generated from the following file:
Generated for libmini3d by Doxygen 1.4.4 © 1997-2001