library of assembled shared sources

http://lass.cocamware.com

lass::prim::UncheckedMinMax Struct Reference
[MinMaxPolicy]

MinMaxPolicy that makes it your responsibility to behave well. More...

#include <min_max_policy.h>


Static Public Member Functions

template<typename PointType >
static void setMin (PointType &oMin, PointType &ioMax, const PointType &iMin)
 set value oMin to iMin and move ioMax (if necessary) so it stays correct.
template<typename PointType >
static void setMax (PointType &ioMin, PointType &oMax, const PointType &iMax)
 set value oMax to iMax and move ioMin (if necessary) so it stays correct.
template<typename PointType >
static void checkMinMax (PointType &, PointType &)
 correct ioMin and ioMax so that they are indeed then minimum and maximum.


Detailed Description

MinMaxPolicy that makes it your responsibility to behave well.

Author:
Bram de Greve
Date:
2003
The unchecked policy is the fastest policy of the pool. It will silently expects you to provide correct min/max values and ignores all invalid states caused by you. That way it can avoid all checks and it will be faster than the other to in speed ciritical situations.

If you're using this policy, it's your responsibility to give the AABB correct values so it stays valid. If you don't, you'll get what we call undefined behaviour. Have fun :)

The rest of the class are implementation details for the AABB and should not be called by the client (you :). In short we can say of this policy: if you try to do something stupid, you get undefined behaviour.

Definition at line 270 of file min_max_policy.h.


Member Function Documentation

template<typename PointType >
static void lass::prim::UncheckedMinMax::setMin ( PointType &  oMin,
PointType &  ioMax,
const PointType &  iMin 
) [inline, static]

set value oMin to iMin and move ioMax (if necessary) so it stays correct.

Definition at line 275 of file min_max_policy.h.

template<typename PointType >
static void lass::prim::UncheckedMinMax::setMax ( PointType &  ioMin,
PointType &  oMax,
const PointType &  iMax 
) [inline, static]

set value oMax to iMax and move ioMin (if necessary) so it stays correct.

Definition at line 283 of file min_max_policy.h.

template<typename PointType >
static void lass::prim::UncheckedMinMax::checkMinMax ( PointType &  ,
PointType &   
) [inline, static]

correct ioMin and ioMax so that they are indeed then minimum and maximum.

Definition at line 291 of file min_max_policy.h.


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

Generated on Mon Nov 10 14:22:13 2008 for Library of Assembled Shared Sources by doxygen 1.5.7.1
SourceForge.net Logo