# PhasicFlow: triple< T > Struct Template Reference

triple< T > Struct Template Reference
Inheritance diagram for triple< T >:
[legend]

## 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_HD T | length () 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

T | x_
T | y_
T | z_

## Friends

FUNCTION_HD T | dot (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)
iOstream & | operator (iOstream &str, const triple< T > &ov)
iIstream & | operator>> (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]

INLINE_FUNCTION_HD triple | ( |  | ) |

inline

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]

INLINE_FUNCTION_HD T& x | ( |  | ) |

inline

Definition at line 138 of file triple.hpp.

Referenced by pFlow::PFtoVTK::addRealx3PointField(), pFlow::TSFtoVTK::addRealx3TriSurfaceField(), triSurface::addTriangle(), pFlow::PFtoVTK::addUndstrcuturedGridField(), cells< int32 >::bound(), pFlow::boxExtent(), mapperNBS< DefaultHostExecutionSpace >::build(), pFlow::equal(), pFlow::indexToCell(), cells< int32 >::isInRange(), cells< int32 >::nx(), cuboidWall::readcuboidWall(), stlFile::readFacet(), cells< int32 >::totalCells(), zAxis::transferBackZ(), zAxis::transferToZ(), and stlFile::writeFacet().

Here is the caller graph for this function:

## x() [2/2]

const INLINE_FUNCTION_HD T& x | ( |  | ) | const

inline

Definition at line 139 of file triple.hpp.

## y() [1/2]

INLINE_FUNCTION_HD T& y | ( |  | ) |

inline

Definition at line 141 of file triple.hpp.

Referenced by pFlow::PFtoVTK::addRealx3PointField(), pFlow::TSFtoVTK::addRealx3TriSurfaceField(), triSurface::addTriangle(), pFlow::PFtoVTK::addUndstrcuturedGridField(), cells< int32 >::bound(), pFlow::boxExtent(), mapperNBS< DefaultHostExecutionSpace >::build(), pFlow::equal(), pFlow::indexToCell(), cells< int32 >::isInRange(), cells< int32 >::ny(), cuboidWall::readcuboidWall(), stlFile::readFacet(), cells< int32 >::totalCells(), zAxis::transferBackZ(), zAxis::transferToZ(), and stlFile::writeFacet().

Here is the caller graph for this function:

## y() [2/2]

const INLINE_FUNCTION_HD T& y | ( |  | ) | const

inline

Definition at line 142 of file triple.hpp.

## z() [1/2]

INLINE_FUNCTION_HD T& z | ( |  | ) |

inline

Definition at line 144 of file triple.hpp.

Referenced by pFlow::PFtoVTK::addRealx3PointField(), pFlow::TSFtoVTK::addRealx3TriSurfaceField(), triSurface::addTriangle(), pFlow::PFtoVTK::addUndstrcuturedGridField(), cells< int32 >::bound(), pFlow::boxExtent(), mapperNBS< DefaultHostExecutionSpace >::build(), pFlow::equal(), pFlow::indexToCell(), cells< int32 >::isInRange(), cells< int32 >::nz(), cuboidWall::readcuboidWall(), stlFile::readFacet(), cells< int32 >::totalCells(), zAxis::transferBackZ(), zAxis::transferToZ(), and stlFile::writeFacet().

Here is the caller graph for this function:

## z() [2/2]

const INLINE_FUNCTION_HD T& z | ( |  | ) | const

inline

Definition at line 145 of file triple.hpp.

## length()

INLINE_FUNCTION_HD T 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-()

INLINE_FUNCTION_HD pFlow::triple< T > operator-

Definition at line 299 of file tripleI.hpp.

## operator+()

INLINE_FUNCTION_HD pFlow::triple< T > 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_

T x_

Definition at line 49 of file triple.hpp.

Referenced by pFlow::sphTriInteraction::isSphereInContactBothSides(), triWall::nearestPointOnWall(), ppInteractionFunctor< ContactForceModel, ContactListType >::operator()(), pwInteractionFunctor< ContactForceModel, ContactListType, TraingleAccessor, MotionModel >::operator()(), triple< intType >::operator*=(), triple< intType >::operator+=(), triple< intType >::operator-=(), triple< intType >::operator/=(), triple< intType >::operator=(), triWall::triWall(), and triple< intType >::x().

## y_

T y_

Definition at line 50 of file triple.hpp.

Referenced by pFlow::sphTriInteraction::isSphereInContactBothSides(), triWall::nearestPointOnWall(), ppInteractionFunctor< ContactForceModel, ContactListType >::operator()(), pwInteractionFunctor< ContactForceModel, ContactListType, TraingleAccessor, MotionModel >::operator()(), triple< intType >::operator=(), triWall::triWall(), and triple< intType >::y().

## z_

T z_

Definition at line 51 of file triple.hpp.

Referenced by pFlow::sphTriInteraction::isSphereInContactBothSides(), triWall::nearestPointOnWall(), ppInteractionFunctor< ContactForceModel, ContactListType >::operator()(), pwInteractionFunctor< ContactForceModel, ContactListType, TraingleAccessor, MotionModel >::operator()(), triple< intType >::operator=(), triWall::triWall(), and triple< intType >::z().

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

- src/phasicFlow/types/triple/triple.hpp
- src/phasicFlow/types/triple/tripleI.hpp