triple< T > Struct Template Reference
Inheritance diagram for triple< T >:

Public Member Functions

INLINE_FUNCTION_HD triple ()
 
INLINE_FUNCTION_HD triple (const T &x, const T &y, const T &z)
 
INLINE_FUNCTION_HD triple (const T &v)
 
template<typename T2 >
INLINE_FUNCTION_HD triple< T > & operator= (const triple< T2 > &rhs)
 
template<typename T2 >
INLINE_FUNCTION_HD triple (const triple< T2 > &src)
 
INLINE_FUNCTION_HD triple (const triple< T > &src)=default
 
INLINE_FUNCTION_HD triple (triple< T > &&src)=default
 
INLINE_FUNCTION_HD triple< T > & operator= (const triple< T > &src)=default
 
INLINE_FUNCTION_HD triple< T > & operator= (triple< T > &&src)=default
 
INLINE_FUNCTION uniquePtr< triple< T > > clone () const
 
INLINE_FUNCTION triple< T > * clonePtr () const
 
INLINE_FUNCTION_HD T & x ()
 
const INLINE_FUNCTION_HD T & x () const
 
INLINE_FUNCTION_HD T & y ()
 
const INLINE_FUNCTION_HD T & y () const
 
INLINE_FUNCTION_HD T & z ()
 
const INLINE_FUNCTION_HD T & z () const
 
INLINE_FUNCTION_HDlength () const
 
INLINE_FUNCTION_HD void normalize ()
 
INLINE_FUNCTION_HD void operator+= (const triple &oprnd2)
 
INLINE_FUNCTION_HD void operator-= (const triple &oprnd2)
 
INLINE_FUNCTION_HD void operator*= (const triple &oprnd2)
 
INLINE_FUNCTION_HD void operator/= (const triple &oprnd2)
 
INLINE_FUNCTION_HD triple operator- () const
 
INLINE_FUNCTION_HD triple operator+ () const
 

Public Attributes

x_
 
y_
 
z_
 

Friends

FUNCTION_HDdot (const triple< T > &oprnd1, const triple< T > &oprnd2)
 
FUNCTION_HD triple< T > cross (const triple< T > &v1, const triple< T > &v2)
 
FUNCTION_HD triple< T > operator+ (const triple< T > &oprnd1, const triple< T > &oprnd2)
 
FUNCTION_HD triple< T > operator+ (const triple< T > &oprnd1, const T &oprnd2)
 
FUNCTION_HD triple< T > operator+ (const T &oprnd1, const triple< T > &oprnd2)
 
FUNCTION_HD triple< T > operator- (const triple< T > &oprnd1, const triple< T > &oprnd2)
 
FUNCTION_HD triple< T > operator- (const triple< T > &oprnd1, const T &oprnd2)
 
FUNCTION_HD triple< T > operator- (const T &oprnd1, const triple< T > &oprnd2)
 
FUNCTION_HD triple< T > operator* (const triple< T > &oprnd1, const triple< T > &oprnd2)
 
FUNCTION_HD triple< T > operator* (const triple< T > &oprnd1, const T &oprnd2)
 
FUNCTION_HD triple< T > operator* (const T &oprnd1, const triple< T > &oprnd2)
 
FUNCTION_HD triple< T > operator/ (const triple< T > &oprnd1, const triple< T > &oprnd2)
 
FUNCTION_HD triple< T > operator/ (const triple< T > &oprnd1, const T &oprnd2)
 
FUNCTION_HD triple< T > operator/ (const T &oprnd1, const triple< T > &oprnd2)
 
FUNCTION_HD bool operator== (const triple< T > &opr1, const triple< T > &opr2)
 
FUNCTION_HD bool operator (const triple< T > &opr1, const triple< T > &opr2)
 
FUNCTION_HD bool operator> (const triple< T > &opr1, const triple< T > &opr2)
 
FUNCTION_HD bool operator>= (const triple< T > &opr1, const triple< T > &opr2)
 
FUNCTION_HD bool operator (const triple< T > &opr1, const triple< T > &opr2)
 
iOstreamoperator (iOstream &str, const triple< T > &ov)
 
iIstreamoperator>> (iIstream &str, triple< T > &iv)
 
void readIstream (iIstream &str, triple< T > &iv)
 

Detailed Description

template<typename T>
struct pFlow::triple< T >

Definition at line 37 of file triple.hpp.

Constructor & Destructor Documentation

◆ triple() [1/6]

Definition at line 54 of file triple.hpp.

◆ triple() [2/6]

INLINE_FUNCTION_HD triple ( const T &  x,
const T &  y,
const T &  z 
)
inline

Definition at line 61 of file triple.hpp.

◆ triple() [3/6]

INLINE_FUNCTION_HD triple ( const T &  v)
inline

Definition at line 67 of file triple.hpp.

◆ triple() [4/6]

INLINE_FUNCTION_HD triple ( const triple< T2 > &  src)
inline

Definition at line 83 of file triple.hpp.

◆ triple() [5/6]

INLINE_FUNCTION_HD triple ( const triple< T > &  src)
default

◆ triple() [6/6]

INLINE_FUNCTION_HD triple ( triple< T > &&  src)
default

Member Function Documentation

◆ operator=() [1/3]

INLINE_FUNCTION_HD triple<T>& operator= ( const triple< T2 > &  rhs)
inline

Definition at line 73 of file triple.hpp.

◆ operator=() [2/3]

INLINE_FUNCTION_HD triple<T>& operator= ( const triple< T > &  src)
default

◆ operator=() [3/3]

INLINE_FUNCTION_HD triple<T>& operator= ( triple< T > &&  src)
default

◆ clone()

INLINE_FUNCTION uniquePtr<triple<T> > clone ( ) const
inline

Definition at line 124 of file triple.hpp.

◆ clonePtr()

INLINE_FUNCTION triple<T>* clonePtr ( ) const
inline

Definition at line 130 of file triple.hpp.

◆ x() [1/2]

◆ x() [2/2]

const INLINE_FUNCTION_HD T& x ( ) const
inline

Definition at line 139 of file triple.hpp.

◆ y() [1/2]

◆ y() [2/2]

const INLINE_FUNCTION_HD T& y ( ) const
inline

Definition at line 142 of file triple.hpp.

◆ z() [1/2]

◆ z() [2/2]

const INLINE_FUNCTION_HD T& z ( ) const
inline

Definition at line 145 of file triple.hpp.

◆ length()

Definition at line 64 of file tripleI.hpp.

Referenced by Wall::checkTrianlge().

Here is the caller graph for this function:

◆ normalize()

INLINE_FUNCTION_HD void normalize

Definition at line 72 of file tripleI.hpp.

◆ operator+=()

INLINE_FUNCTION_HD void operator+= ( const triple< T > &  oprnd2)

Definition at line 255 of file tripleI.hpp.

◆ operator-=()

INLINE_FUNCTION_HD void operator-= ( const triple< T > &  oprnd2)

Definition at line 266 of file tripleI.hpp.

◆ operator*=()

INLINE_FUNCTION_HD void operator*= ( const triple< T > &  oprnd2)

Definition at line 277 of file tripleI.hpp.

◆ operator/=()

INLINE_FUNCTION_HD void operator/= ( const triple< T > &  oprnd2)

Definition at line 288 of file tripleI.hpp.

◆ operator-()

Definition at line 299 of file tripleI.hpp.

◆ operator+()

Definition at line 307 of file tripleI.hpp.

Friends And Related Function Documentation

◆ dot

FUNCTION_HD T dot ( const triple< T > &  oprnd1,
const triple< T > &  oprnd2 
)
friend

◆ cross

FUNCTION_HD triple<T> cross ( const triple< T > &  v1,
const triple< T > &  v2 
)
friend

◆ operator+ [1/3]

FUNCTION_HD triple<T> operator+ ( const triple< T > &  oprnd1,
const triple< T > &  oprnd2 
)
friend

◆ operator+ [2/3]

FUNCTION_HD triple<T> operator+ ( const triple< T > &  oprnd1,
const T &  oprnd2 
)
friend

◆ operator+ [3/3]

FUNCTION_HD triple<T> operator+ ( const T &  oprnd1,
const triple< T > &  oprnd2 
)
friend

◆ operator- [1/3]

FUNCTION_HD triple<T> operator- ( const triple< T > &  oprnd1,
const triple< T > &  oprnd2 
)
friend

◆ operator- [2/3]

FUNCTION_HD triple<T> operator- ( const triple< T > &  oprnd1,
const T &  oprnd2 
)
friend

◆ operator- [3/3]

FUNCTION_HD triple<T> operator- ( const T &  oprnd1,
const triple< T > &  oprnd2 
)
friend

◆ operator* [1/3]

FUNCTION_HD triple<T> operator* ( const triple< T > &  oprnd1,
const triple< T > &  oprnd2 
)
friend

◆ operator* [2/3]

FUNCTION_HD triple<T> operator* ( const triple< T > &  oprnd1,
const T &  oprnd2 
)
friend

◆ operator* [3/3]

FUNCTION_HD triple<T> operator* ( const T &  oprnd1,
const triple< T > &  oprnd2 
)
friend

◆ operator/ [1/3]

FUNCTION_HD triple<T> operator/ ( const triple< T > &  oprnd1,
const triple< T > &  oprnd2 
)
friend

◆ operator/ [2/3]

FUNCTION_HD triple<T> operator/ ( const triple< T > &  oprnd1,
const T &  oprnd2 
)
friend

◆ operator/ [3/3]

FUNCTION_HD triple<T> operator/ ( const T &  oprnd1,
const triple< T > &  oprnd2 
)
friend

◆ operator==

FUNCTION_HD bool operator== ( const triple< T > &  opr1,
const triple< T > &  opr2 
)
friend

◆ operator [1/3]

FUNCTION_HD bool operator ( const triple< T > &  opr1,
const triple< T > &  opr2 
)
friend

◆ operator>

FUNCTION_HD bool operator> ( const triple< T > &  opr1,
const triple< T > &  opr2 
)
friend

◆ operator>=

FUNCTION_HD bool operator>= ( const triple< T > &  opr1,
const triple< T > &  opr2 
)
friend

◆ operator [2/3]

FUNCTION_HD bool operator ( const triple< T > &  opr1,
const triple< T > &  opr2 
)
friend

◆ operator [3/3]

iOstream& operator ( iOstream str,
const triple< T > &  ov 
)
friend

◆ operator>>

iIstream& operator>> ( iIstream str,
triple< T > &  iv 
)
friend

◆ readIstream

void readIstream ( iIstream str,
triple< T > &  iv 
)
friend

Member Data Documentation

◆ x_

◆ y_

◆ z_


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