# PhasicFlow: quadruple< T > Class Template Reference

quadruple< T > Class Template Reference

## Public Member Functions

INLINE_FUNCTION_HD | quadruple ()
INLINE_FUNCTION_HD | quadruple (const T &w, const T &x, const T &y, const T &z)
INLINE_FUNCTION_HD | quadruple (const T &s, const triple< T > v)
INLINE_FUNCTION_HD | quadruple (const T &val)
template<typename T2 >
INLINE_FUNCTION_HD quadruple< T > & | operator= (const quadruple< T2 > &rhs)
template<typename T2 >
INLINE_FUNCTION_HD | quadruple (const quadruple< T2 > &src)
INLINE_FUNCTION_HD | quadruple (const quadruple< T > &src)=default
INLINE_FUNCTION_HD | quadruple (quadruple< T > &&src)=default
INLINE_FUNCTION_HD quadruple< T > & | operator= (const quadruple< T > &src)=default
INLINE_FUNCTION_HD quadruple< T > & | operator= (quadruple< T > &&src)=default
INLINE_FUNCTION_H uniquePtr< quadruple< T > > | clone () const
INLINE_FUNCTION_H quadruple< T > * | clonePtr () const
INLINE_FUNCTION_HD T & | w ()
const INLINE_FUNCTION_HD T & | w () 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 & | s ()
const INLINE_FUNCTION_HD T & | s () const
INLINE_FUNCTION_HD triple< T > | v ()
const INLINE_FUNCTION_HD triple< T > | v () const
INLINE_FUNCTION_HD T | length () const
INLINE_FUNCTION_HD void | normalize ()
INLINE_FUNCTION_HD void | operator+= (const quadruple &oprnd2)
INLINE_FUNCTION_HD void | operator-= (const quadruple &oprnd2)
INLINE_FUNCTION_HD void | operator*= (const quadruple &oprnd2)
INLINE_FUNCTION_HD void | operator/= (const quadruple &oprnd2)
INLINE_FUNCTION_HD quadruple | operator- () const
INLINE_FUNCTION_HD quadruple | operator+ () const

## Public Attributes

T | s_
triple< T > | v_

## Friends

FUNCTION_HD T | dot (const quadruple< T > &oprnd1, const quadruple< T > &oprnd2)
FUNCTION_HD quadruple< T > | operator+ (const quadruple< T > &oprnd1, const quadruple< T > &oprnd2)
FUNCTION_HD quadruple< T > | operator+ (const quadruple< T > &oprnd1, const T &oprnd2)
FUNCTION_HD quadruple< T > | operator+ (const T &oprnd1, const quadruple< T > &oprnd2)
FUNCTION_HD quadruple< T > | operator- (const quadruple< T > &oprnd1, const quadruple< T > &oprnd2)
FUNCTION_HD quadruple< T > | operator- (const quadruple< T > &oprnd1, const T &oprnd2)
FUNCTION_HD quadruple< T > | operator- (const T &oprnd1, const quadruple< T > &oprnd2)
FUNCTION_HD quadruple< T > | operator* (const quadruple< T > &oprnd1, const quadruple< T > &oprnd2)
FUNCTION_HD quadruple< T > | operator* (const quadruple< T > &oprnd1, const T &oprnd2)
FUNCTION_HD quadruple< T > | operator* (const T &oprnd1, const quadruple< T > &oprnd2)
FUNCTION_HD quadruple< T > | operator/ (const quadruple< T > &oprnd1, const quadruple< T > &oprnd2)
FUNCTION_HD quadruple< T > | operator/ (const quadruple< T > &oprnd1, const T &oprnd2)
FUNCTION_HD quadruple< T > | operator/ (const T &oprnd1, const quadruple< T > &oprnd2)
FUNCTION_HD bool | operator== (const quadruple< T > &opr1, const quadruple< T > &opr2)
FUNCTION_H iOstream & | operator (iOstream &str, const quadruple< T > &ov)
FUNCTION_H iIstream & | operator>> (iIstream &str, quadruple< T > &iv)
FUNCTION_H void | readIstream (iIstream &str, quadruple< T > &iv)

## Detailed Description

### template<typename T>
class pFlow::quadruple< T >

Definition at line 37 of file quadruple.hpp.

## Constructor & Destructor Documentation

## quadruple() [1/7]

INLINE_FUNCTION_HD quadruple | ( |  | ) |

inline

Definition at line 54 of file quadruple.hpp.

## quadruple() [2/7]

INLINE_FUNCTION_HD quadruple | ( | const T & | w,
|  | const T & | x,
|  | const T & | y,
|  | const T & | z
| ) |  |

inline

Definition at line 60 of file quadruple.hpp.

## quadruple() [3/7]

INLINE_FUNCTION_HD quadruple | ( | const T & | s,
|  | const triple< T > | v
| ) |  |

inline

Definition at line 67 of file quadruple.hpp.

## quadruple() [4/7]

INLINE_FUNCTION_HD quadruple | ( | const T & | val | ) |

inline

Definition at line 74 of file quadruple.hpp.

## quadruple() [5/7]

INLINE_FUNCTION_HD quadruple | ( | const quadruple< T2 > & | src | ) |

inline

Definition at line 93 of file quadruple.hpp.

## quadruple() [6/7]

INLINE_FUNCTION_HD quadruple | ( | const quadruple< T > & | src | ) |

default

## quadruple() [7/7]

INLINE_FUNCTION_HD quadruple | ( | quadruple< T > && | src | ) |

default

## Member Function Documentation

## operator=() [1/3]

INLINE_FUNCTION_HD quadruple<T>& operator= | ( | const quadruple< T2 > & | rhs | ) |

inline

Definition at line 83 of file quadruple.hpp.

References quadruple< T >::s_, and quadruple< T >::v_.

## operator=() [2/3]

INLINE_FUNCTION_HD quadruple<T>& operator= | ( | const quadruple< T > & | src | ) |

default

## operator=() [3/3]

INLINE_FUNCTION_HD quadruple<T>& operator= | ( | quadruple< T > && | src | ) |

default

## clone()

INLINE_FUNCTION_H uniquePtr<quadruple<T> > clone | ( |  | ) | const

inline

Definition at line 116 of file quadruple.hpp.

## clonePtr()

INLINE_FUNCTION_H quadruple<T>* clonePtr | ( |  | ) | const

inline

Definition at line 122 of file quadruple.hpp.

## w() [1/2]

INLINE_FUNCTION_HD T& w | ( |  | ) |

inline

Definition at line 129 of file quadruple.hpp.

References quadruple< T >::s_.

## w() [2/2]

const INLINE_FUNCTION_HD T& w | ( |  | ) | const

inline

Definition at line 131 of file quadruple.hpp.

References quadruple< T >::s_.

## x() [1/2]

INLINE_FUNCTION_HD T& x | ( |  | ) |

inline

Definition at line 134 of file quadruple.hpp.

References quadruple< T >::v_.

## x() [2/2]

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

inline

Definition at line 136 of file quadruple.hpp.

References quadruple< T >::v_.

## y() [1/2]

INLINE_FUNCTION_HD T& y | ( |  | ) |

inline

Definition at line 139 of file quadruple.hpp.

References quadruple< T >::v_.

## y() [2/2]

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

inline

Definition at line 141 of file quadruple.hpp.

References quadruple< T >::v_.

## z() [1/2]

INLINE_FUNCTION_HD T& z | ( |  | ) |

inline

Definition at line 144 of file quadruple.hpp.

References quadruple< T >::v_.

## z() [2/2]

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

inline

Definition at line 146 of file quadruple.hpp.

References quadruple< T >::v_.

## s() [1/2]

INLINE_FUNCTION_HD T& s | ( |  | ) |

inline

Definition at line 149 of file quadruple.hpp.

References quadruple< T >::s_.

## s() [2/2]

const INLINE_FUNCTION_HD T& s | ( |  | ) | const

inline

Definition at line 151 of file quadruple.hpp.

References quadruple< T >::s_.

## v() [1/2]

INLINE_FUNCTION_HD triple<T> v | ( |  | ) |

inline

Definition at line 154 of file quadruple.hpp.

References quadruple< T >::v_.

## v() [2/2]

const INLINE_FUNCTION_HD triple<T> v | ( |  | ) | const

inline

Definition at line 156 of file quadruple.hpp.

References quadruple< T >::v_.

## length()

INLINE_FUNCTION_HD T length

Definition at line 34 of file quadrupleI.hpp.

References dot(), and pFlow::sqrt().

Here is the call graph for this function:

## normalize()

INLINE_FUNCTION_HD void normalize

Definition at line 42 of file quadrupleI.hpp.

References length(), and pFlow::smallValue.

Here is the call graph for this function:

## operator+=()

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

Definition at line 217 of file quadrupleI.hpp.

References quadruple< T >::s_.

## operator-=()

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

Definition at line 227 of file quadrupleI.hpp.

References quadruple< T >::s_.

## operator*=()

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

Definition at line 238 of file quadrupleI.hpp.

References quadruple< T >::s_.

## operator/=()

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

Definition at line 248 of file quadrupleI.hpp.

References quadruple< T >::s_.

## operator-()

INLINE_FUNCTION_HD pFlow::quadruple< T > operator-

Definition at line 259 of file quadrupleI.hpp.

## operator+()

INLINE_FUNCTION_HD pFlow::quadruple< T > operator+

Definition at line 267 of file quadrupleI.hpp.

## Friends And Related Function Documentation

## dot

FUNCTION_HD T dot | ( | const quadruple< T > & | oprnd1,
|  | const quadruple< T > & | oprnd2
| ) |  |

friend

## operator+ [1/3]

FUNCTION_HD quadruple<T> operator+ | ( | const quadruple< T > & | oprnd1,
|  | const quadruple< T > & | oprnd2
| ) |  |

friend

## operator+ [2/3]

FUNCTION_HD quadruple<T> operator+ | ( | const quadruple< T > & | oprnd1,
|  | const T & | oprnd2
| ) |  |

friend

## operator+ [3/3]

FUNCTION_HD quadruple<T> operator+ | ( | const T & | oprnd1,
|  | const quadruple< T > & | oprnd2
| ) |  |

friend

## operator- [1/3]

FUNCTION_HD quadruple<T> operator- | ( | const quadruple< T > & | oprnd1,
|  | const quadruple< T > & | oprnd2
| ) |  |

friend

## operator- [2/3]

FUNCTION_HD quadruple<T> operator- | ( | const quadruple< T > & | oprnd1,
|  | const T & | oprnd2
| ) |  |

friend

## operator- [3/3]

FUNCTION_HD quadruple<T> operator- | ( | const T & | oprnd1,
|  | const quadruple< T > & | oprnd2
| ) |  |

friend

## operator* [1/3]

FUNCTION_HD quadruple<T> operator* | ( | const quadruple< T > & | oprnd1,
|  | const quadruple< T > & | oprnd2
| ) |  |

friend

## operator* [2/3]

FUNCTION_HD quadruple<T> operator* | ( | const quadruple< T > & | oprnd1,
|  | const T & | oprnd2
| ) |  |

friend

## operator* [3/3]

FUNCTION_HD quadruple<T> operator* | ( | const T & | oprnd1,
|  | const quadruple< T > & | oprnd2
| ) |  |

friend

## operator/ [1/3]

FUNCTION_HD quadruple<T> operator/ | ( | const quadruple< T > & | oprnd1,
|  | const quadruple< T > & | oprnd2
| ) |  |

friend

## operator/ [2/3]

FUNCTION_HD quadruple<T> operator/ | ( | const quadruple< T > & | oprnd1,
|  | const T & | oprnd2
| ) |  |

friend

## operator/ [3/3]

FUNCTION_HD quadruple<T> operator/ | ( | const T & | oprnd1,
|  | const quadruple< T > & | oprnd2
| ) |  |

friend

## operator==

FUNCTION_HD bool operator== | ( | const quadruple< T > & | opr1,
|  | const quadruple< T > & | opr2
| ) |  |

friend

## operator

FUNCTION_H iOstream& operator | ( | iOstream & | str,
|  | const quadruple< T > & | ov
| ) |  |

friend

## operator>>

FUNCTION_H iIstream& operator>> | ( | iIstream & | str,
|  | quadruple< T > & | iv
| ) |  |

friend

## readIstream

FUNCTION_H void readIstream | ( | iIstream & | str,
|  | quadruple< T > & | iv
| ) |  |

friend

## Member Data Documentation

## s_

T s_

Definition at line 48 of file quadruple.hpp.

Referenced by quadruple< T >::operator*=(), quadruple< T >::operator+=(), quadruple< T >::operator-=(), quadruple< T >::operator/=(), quadruple< T >::operator=(), quadruple< T >::s(), and quadruple< T >::w().

## v_

triple<T> v_

Definition at line 49 of file quadruple.hpp.

Referenced by quadruple< T >::operator=(), quadruple< T >::v(), quadruple< T >::x(), quadruple< T >::y(), and quadruple< T >::z().

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

- src/phasicFlow/types/quadruple/quadruple.hpp
- src/phasicFlow/types/quadruple/quadrupleI.hpp