HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_FixedVector< T, D > Class Template Reference

#include <UT_FixedVector.h>

Public Types

typedef T value_type
 

Public Member Functions

 UT_FixedVector ()=default
 
constexpr UT_FixedVector (const T(&a)[D]) noexcept
 
template<typename S >
constexpr UT_FixedVector (const UT_FixedVector< S, D > &a) noexcept
 
constexpr const Toperator[] (exint i) const noexcept
 
constexpr Toperator[] (exint i) noexcept
 
constexpr const Tdata () const noexcept
 
constexpr Tdata () noexcept
 
constexpr UT_FixedVectoroperator+= (const UT_FixedVector &a) noexcept
 
constexpr UT_FixedVectoroperator-= (const UT_FixedVector &a) noexcept
 
constexpr UT_FixedVectoroperator*= (const T &a) noexcept
 
constexpr UT_FixedVector< T, D > operator- () const noexcept
 

Static Public Attributes

static constexpr int tuple_size = D
 

Friends

constexpr UT_FixedVector operator* (const T &a, const UT_FixedVector &b) noexcept
 
constexpr UT_FixedVector operator/ (const UT_FixedVector &a, const T &b) noexcept
 
constexpr bool isZero (const UT_FixedVector &a) noexcept
 
constexpr T dot (const UT_FixedVector &a, const UT_FixedVector &b) noexcept
 
constexpr T length2 (const UT_FixedVector &a) noexcept
 
constexpr T distance2 (const UT_FixedVector &a, const UT_FixedVector &b) noexcept
 
constexpr bool operator== (const UT_FixedVector &a, const UT_FixedVector &b) noexcept
 
constexpr bool operator!= (const UT_FixedVector &a, const UT_FixedVector &b) noexcept
 
constexpr bool operator< (const UT_FixedVector &a, const UT_FixedVector &b) noexcept
 
constexpr bool operator<= (const UT_FixedVector &a, const UT_FixedVector &b) noexcept
 
constexpr bool operator> (const UT_FixedVector &a, const UT_FixedVector &b) noexcept
 
constexpr bool operator>= (const UT_FixedVector &a, const UT_FixedVector &b) noexcept
 

Detailed Description

template<typename T, exint D>
class UT_FixedVector< T, D >

Definition at line 32 of file UT_FixedVector.h.

Member Typedef Documentation

template<typename T, exint D>
typedef T UT_FixedVector< T, D >::value_type

Definition at line 35 of file UT_FixedVector.h.

Constructor & Destructor Documentation

template<typename T, exint D>
UT_FixedVector< T, D >::UT_FixedVector ( )
default
template<typename T, exint D>
constexpr UT_FixedVector< T, D >::UT_FixedVector ( const T(&)  a[D])
inlineexplicitnoexcept

Definition at line 40 of file UT_FixedVector.h.

template<typename T, exint D>
template<typename S >
constexpr UT_FixedVector< T, D >::UT_FixedVector ( const UT_FixedVector< S, D > &  a)
inlineexplicitnoexcept

Definition at line 47 of file UT_FixedVector.h.

Member Function Documentation

template<typename T, exint D>
constexpr const T* UT_FixedVector< T, D >::data ( ) const
inlinenoexcept

Definition at line 67 of file UT_FixedVector.h.

template<typename T, exint D>
constexpr T* UT_FixedVector< T, D >::data ( )
inlinenoexcept

Definition at line 72 of file UT_FixedVector.h.

template<typename T, exint D>
constexpr UT_FixedVector& UT_FixedVector< T, D >::operator*= ( const T a)
inlinenoexcept

Definition at line 89 of file UT_FixedVector.h.

template<typename T, exint D>
constexpr UT_FixedVector& UT_FixedVector< T, D >::operator+= ( const UT_FixedVector< T, D > &  a)
inlinenoexcept

Definition at line 77 of file UT_FixedVector.h.

template<typename T, exint D>
constexpr UT_FixedVector<T, D> UT_FixedVector< T, D >::operator- ( ) const
inlinenoexcept

Definition at line 95 of file UT_FixedVector.h.

template<typename T, exint D>
constexpr UT_FixedVector& UT_FixedVector< T, D >::operator-= ( const UT_FixedVector< T, D > &  a)
inlinenoexcept

Definition at line 83 of file UT_FixedVector.h.

template<typename T, exint D>
constexpr const T& UT_FixedVector< T, D >::operator[] ( exint  i) const
inlinenoexcept

Definition at line 53 of file UT_FixedVector.h.

template<typename T, exint D>
constexpr T& UT_FixedVector< T, D >::operator[] ( exint  i)
inlinenoexcept

Definition at line 60 of file UT_FixedVector.h.

Friends And Related Function Documentation

template<typename T, exint D>
constexpr T distance2 ( const UT_FixedVector< T, D > &  a,
const UT_FixedVector< T, D > &  b 
)
friend

Definition at line 136 of file UT_FixedVector.h.

template<typename T, exint D>
constexpr T dot ( const UT_FixedVector< T, D > &  a,
const UT_FixedVector< T, D > &  b 
)
friend

Definition at line 126 of file UT_FixedVector.h.

template<typename T, exint D>
constexpr bool isZero ( const UT_FixedVector< T, D > &  a)
friend

Definition at line 121 of file UT_FixedVector.h.

template<typename T, exint D>
constexpr T length2 ( const UT_FixedVector< T, D > &  a)
friend

Definition at line 131 of file UT_FixedVector.h.

template<typename T, exint D>
constexpr bool operator!= ( const UT_FixedVector< T, D > &  a,
const UT_FixedVector< T, D > &  b 
)
friend

Definition at line 146 of file UT_FixedVector.h.

template<typename T, exint D>
constexpr UT_FixedVector operator* ( const T a,
const UT_FixedVector< T, D > &  b 
)
friend

Definition at line 105 of file UT_FixedVector.h.

template<typename T, exint D>
constexpr UT_FixedVector operator/ ( const UT_FixedVector< T, D > &  a,
const T b 
)
friend

Definition at line 113 of file UT_FixedVector.h.

template<typename T, exint D>
constexpr bool operator< ( const UT_FixedVector< T, D > &  a,
const UT_FixedVector< T, D > &  b 
)
friend

Lexicographic order comparison operators

Definition at line 153 of file UT_FixedVector.h.

template<typename T, exint D>
constexpr bool operator<= ( const UT_FixedVector< T, D > &  a,
const UT_FixedVector< T, D > &  b 
)
friend

Lexicographic order comparison operators

Definition at line 158 of file UT_FixedVector.h.

template<typename T, exint D>
constexpr bool operator== ( const UT_FixedVector< T, D > &  a,
const UT_FixedVector< T, D > &  b 
)
friend

Definition at line 141 of file UT_FixedVector.h.

template<typename T, exint D>
constexpr bool operator> ( const UT_FixedVector< T, D > &  a,
const UT_FixedVector< T, D > &  b 
)
friend

Lexicographic order comparison operators

Definition at line 163 of file UT_FixedVector.h.

template<typename T, exint D>
constexpr bool operator>= ( const UT_FixedVector< T, D > &  a,
const UT_FixedVector< T, D > &  b 
)
friend

Lexicographic order comparison operators

Definition at line 168 of file UT_FixedVector.h.

Member Data Documentation

template<typename T, exint D>
constexpr int UT_FixedVector< T, D >::tuple_size = D
static

Definition at line 36 of file UT_FixedVector.h.


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