PPL Logo

CkVector3dT< real > Class Template Reference

#include <ckvector3d.h>

Inheritance diagram for CkVector3dT< real >:

Inheritance graph
[legend]
Collaboration diagram for CkVector3dT< real >:

Collaboration graph
[legend]

Public Member Functions

 CkVector3dT (void)
 CkVector3dT (int init)
 CkVector3dT (float init)
 CkVector3dT (double init)
 CkVector3dT (const real Nx, const real Ny, const real Nz)
 CkVector3dT (const real *arr)
 CkVector3dT (const CkVector3dT< float > &src)
 CkVector3dT (const CkVector3dT< double > &src)
 CkVector3dT (const CkVector3dT< int > &src)
 operator real * ()
 operator const real * () const
int operator== (const vec &b) const
int operator!= (const vec &b) const
vec operator+ (const vec &b) const
vec operator- (const vec &b) const
vec operator* (const real scale) const
vec operator/ (const real &div) const
vec operator- (void) const
void operator+= (const vec &b)
void operator-= (const vec &b)
void operator*= (const real scale)
void operator/= (const real div)
real magSqr (void) const
real mag (void) const
real distSqr (const vec &b) const
real dist (const vec &b) const
real dot (const vec &b) const
real cosAng (const vec &b) const
vec dir (void) const
vec cross (const vec &b) const
real max (void)
void enlarge (const vec &by)
void pup (PUP::er &p)

Data Fields

real x
real y
real z

Private Types

typedef CkVector3dT< realvec

Friends

vec operator* (const real scale, const vec &v)

Detailed Description

template<class real>
class CkVector3dT< real >

Definition at line 27 of file ckvector3d.h.


Member Typedef Documentation

template<class real>
typedef CkVector3dT<real> CkVector3dT< real >::vec [private]

Definition at line 28 of file ckvector3d.h.


Constructor & Destructor Documentation

template<class real>
CkVector3dT< real >::CkVector3dT ( void   )  [inline]

Definition at line 31 of file ckvector3d.h.

template<class real>
CkVector3dT< real >::CkVector3dT ( int  init  )  [inline, explicit]

Definition at line 33 of file ckvector3d.h.

template<class real>
CkVector3dT< real >::CkVector3dT ( float  init  )  [inline, explicit]

Definition at line 34 of file ckvector3d.h.

template<class real>
CkVector3dT< real >::CkVector3dT ( double  init  )  [inline, explicit]

Definition at line 35 of file ckvector3d.h.

template<class real>
CkVector3dT< real >::CkVector3dT ( const real  Nx,
const real  Ny,
const real  Nz 
) [inline]

Definition at line 37 of file ckvector3d.h.

template<class real>
CkVector3dT< real >::CkVector3dT ( const real arr  )  [inline]

Definition at line 39 of file ckvector3d.h.

template<class real>
CkVector3dT< real >::CkVector3dT ( const CkVector3dT< float > &  src  )  [inline]

Definition at line 42 of file ckvector3d.h.

template<class real>
CkVector3dT< real >::CkVector3dT ( const CkVector3dT< double > &  src  )  [inline]

Definition at line 44 of file ckvector3d.h.

template<class real>
CkVector3dT< real >::CkVector3dT ( const CkVector3dT< int > &  src  )  [inline]

Definition at line 46 of file ckvector3d.h.


Member Function Documentation

template<class real>
CkVector3dT< real >::operator real * (  )  [inline]

Definition at line 52 of file ckvector3d.h.

References CkVector3dT< real >::x.

template<class real>
CkVector3dT< real >::operator const real * (  )  const [inline]

Definition at line 53 of file ckvector3d.h.

References CkVector3dT< real >::x.

template<class real>
int CkVector3dT< real >::operator== ( const vec b  )  const [inline]

Definition at line 56 of file ckvector3d.h.

template<class real>
int CkVector3dT< real >::operator!= ( const vec b  )  const [inline]

Definition at line 57 of file ckvector3d.h.

template<class real>
vec CkVector3dT< real >::operator+ ( const vec b  )  const [inline]

Definition at line 58 of file ckvector3d.h.

template<class real>
vec CkVector3dT< real >::operator- ( const vec b  )  const [inline]

Definition at line 59 of file ckvector3d.h.

template<class real>
vec CkVector3dT< real >::operator* ( const real  scale  )  const [inline]

Definition at line 60 of file ckvector3d.h.

template<class real>
vec CkVector3dT< real >::operator/ ( const real div  )  const [inline]

Definition at line 64 of file ckvector3d.h.

template<class real>
vec CkVector3dT< real >::operator- ( void   )  const [inline]

Definition at line 66 of file ckvector3d.h.

template<class real>
void CkVector3dT< real >::operator+= ( const vec b  )  [inline]

Definition at line 67 of file ckvector3d.h.

template<class real>
void CkVector3dT< real >::operator-= ( const vec b  )  [inline]

Definition at line 68 of file ckvector3d.h.

template<class real>
void CkVector3dT< real >::operator*= ( const real  scale  )  [inline]

Definition at line 69 of file ckvector3d.h.

template<class real>
void CkVector3dT< real >::operator/= ( const real  div  )  [inline]

Definition at line 70 of file ckvector3d.h.

template<class real>
real CkVector3dT< real >::magSqr ( void   )  const [inline]

Definition at line 74 of file ckvector3d.h.

Referenced by CkVector3dT< double >::mag().

Here is the caller graph for this function:

template<class real>
real CkVector3dT< real >::mag ( void   )  const [inline]

Definition at line 76 of file ckvector3d.h.

Referenced by CkVector3dT< double >::cosAng(), and CkVector3dT< double >::dir().

Here is the caller graph for this function:

template<class real>
real CkVector3dT< real >::distSqr ( const vec b  )  const [inline]

Definition at line 79 of file ckvector3d.h.

Referenced by faceSet::calculateFaceLenSq(), CkVector3dT< double >::dist(), faceSet::getLocFace(), faceSet::getLocNode(), and PUPmarshall().

Here is the caller graph for this function:

template<class real>
real CkVector3dT< real >::dist ( const vec b  )  const [inline]

Definition at line 82 of file ckvector3d.h.

template<class real>
real CkVector3dT< real >::dot ( const vec b  )  const [inline]

Definition at line 85 of file ckvector3d.h.

Referenced by CkHalfspace3d::CkHalfspace3d(), CkVector3dT< double >::cosAng(), CkHalfspace3d::init(), CkHalfspace3d::intersect(), and CkHalfspace3d::side().

Here is the caller graph for this function:

template<class real>
real CkVector3dT< real >::cosAng ( const vec b  )  const [inline]

Definition at line 87 of file ckvector3d.h.

template<class real>
vec CkVector3dT< real >::dir ( void   )  const [inline]

Definition at line 90 of file ckvector3d.h.

template<class real>
vec CkVector3dT< real >::cross ( const vec b  )  const [inline]

Definition at line 92 of file ckvector3d.h.

Referenced by CkAxes3d::ortho().

Here is the caller graph for this function:

template<class real>
real CkVector3dT< real >::max ( void   )  [inline]

Definition at line 97 of file ckvector3d.h.

template<class real>
void CkVector3dT< real >::enlarge ( const vec by  )  [inline]

Definition at line 105 of file ckvector3d.h.

template<class real>
void CkVector3dT< real >::pup ( PUP::er p  )  [inline]

Definition at line 112 of file ckvector3d.h.


Friends And Related Function Documentation

template<class real>
vec operator* ( const real  scale,
const vec v 
) [friend]

Definition at line 62 of file ckvector3d.h.


Field Documentation

template<class real>
real CkVector3dT< real >::x

template<class real>
real CkVector3dT< real >::y

template<class real>
real CkVector3dT< real >::z


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

Generated on Mon Sep 21 08:21:41 2020 for Charm++ by  doxygen 1.5.5