+ do files

This commit is contained in:
Caner Candan 2010-07-05 19:04:35 +02:00
commit a038586edb
27 changed files with 1439 additions and 0 deletions

24
src/doVectorBounds.h Normal file
View file

@ -0,0 +1,24 @@
#ifndef _doVectorBounds_h
#define _doVectorBounds_h
#include "doDistribParams.h"
template < typename EOT >
class doVectorBounds : public doDistribParams< EOT >
{
public:
doVectorBounds(EOT _min, EOT _max)
: doDistribParams< EOT >(2)
{
assert(_min.size() > 0);
assert(_min.size() == _max.size());
min() = _min;
max() = _max;
}
EOT& min(){return this->param(0);}
EOT& max(){return this->param(1);}
};
#endif // !_doVectorBounds_h