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

struct UT_FixedVectorFixed< T, D >
 
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 auto dot (const UT_FixedVector &a, const UT_FixedVector &b) noexcept
 
constexpr auto length2 (const UT_FixedVector &a) noexcept
 
constexpr auto 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 36 of file UT_FixedVector.h.

Member Typedef Documentation

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

Definition at line 39 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 44 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 51 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 71 of file UT_FixedVector.h.

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

Definition at line 76 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 93 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 81 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 99 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 87 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 57 of file UT_FixedVector.h.

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

Definition at line 64 of file UT_FixedVector.h.

Friends And Related Function Documentation

template<typename T, exint D>
constexpr auto distance2 ( 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 auto dot ( 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 bool isZero ( const UT_FixedVector< T, D > &  a)
friend

Definition at line 131 of file UT_FixedVector.h.

template<typename T, exint D>
constexpr auto length2 ( const UT_FixedVector< T, D > &  a)
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

Definition at line 156 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 115 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 123 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.

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

Definition at line 151 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 173 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 178 of file UT_FixedVector.h.

template<typename T, exint D>
friend struct UT_FixedVectorFixed< T, D >
friend

Definition at line 184 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 40 of file UT_FixedVector.h.


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