VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes
makVrv::DtIntersectorCacheKey Class Reference

Class that will be used to translate positions into a quick lookup key for cached intersections. More...

Public Member Functions

 DtIntersectorCacheKey (DtIntersector::IntersectProperties p, DtIntersector::DynamicOceanProperties op, double x, double y, double z)
 CTOR for single point intersection.
 DtIntersectorCacheKey (DtIntersector::IntersectProperties p, DtIntersector::DynamicOceanProperties op, double x, double y, double z, double end_x, double end_y, double end_z)
 CTOR for start and end point (line)
 DtIntersectorCacheKey (const DtIntersectorCacheKey &k)
 Copy CTOR.
bool operator== (const DtIntersectorCacheKey &rhs) const
 Equality operator.
bool operator!= (const DtIntersectorCacheKey &rhs) const
std::size_t hash (const unsigned char *p, int n)
 Turn key into single hash value.
std::size_t hashValue () const
 Return calculated hash value.
 operator std::size_t () const

Protected Attributes

double myVals [8]
std::size_t myHashValue

Detailed Description

Class that will be used to translate positions into a quick lookup key for cached intersections.

Constructor & Destructor Documentation

makVrv::DtIntersectorCacheKey::DtIntersectorCacheKey ( DtIntersector::IntersectProperties  p,
DtIntersector::DynamicOceanProperties  op,
double  x,
double  y,
double  z 
)
inline

CTOR for single point intersection.

References hash(), myHashValue, and myVals.

makVrv::DtIntersectorCacheKey::DtIntersectorCacheKey ( DtIntersector::IntersectProperties  p,
DtIntersector::DynamicOceanProperties  op,
double  x,
double  y,
double  z,
double  end_x,
double  end_y,
double  end_z 
)
inline

CTOR for start and end point (line)

References hash(), myHashValue, and myVals.

makVrv::DtIntersectorCacheKey::DtIntersectorCacheKey ( const DtIntersectorCacheKey k)
inline

Copy CTOR.

References myHashValue, and myVals.

Member Function Documentation

bool makVrv::DtIntersectorCacheKey::operator== ( const DtIntersectorCacheKey rhs) const
inline

Equality operator.

References myHashValue.

bool makVrv::DtIntersectorCacheKey::operator!= ( const DtIntersectorCacheKey rhs) const
inline
std::size_t makVrv::DtIntersectorCacheKey::hash ( const unsigned char p,
int  n 
)
inline

Turn key into single hash value.

Referenced by DtIntersectorCacheKey().

std::size_t makVrv::DtIntersectorCacheKey::hashValue ( ) const
inline

Return calculated hash value.

References myHashValue.

makVrv::DtIntersectorCacheKey::operator std::size_t ( ) const
inline

References myHashValue.

Member Data Documentation

double makVrv::DtIntersectorCacheKey::myVals[8]
protected

Referenced by DtIntersectorCacheKey().

std::size_t makVrv::DtIntersectorCacheKey::myHashValue
protected

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

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)