SPH
|
Helper object for storing three (possibly four) int or bool values. More...
#include <Indices.h>
Public Member Functions | |
INLINE | Indices ()=default |
INLINE | Indices (__m128i i) |
INLINE | Indices (const int value) |
Constructs indices from single value by copying it to all components. More... | |
INLINE | Indices (const int i, const int j, const int k, const int l=0) |
Constructs indices from values. Fourth component is optional. More... | |
INLINE | Indices (const BasicVector< float > &v) |
Constructs indices by casting components of vectors to ints. More... | |
INLINE | Indices (const BasicVector< double > &v) |
INLINE | Indices (const Indices &other) |
INLINE Indices & | operator= (const Indices &other) |
INLINE | operator BasicVector< float > () const |
INLINE | operator BasicVector< double > () const |
INLINE int & | operator[] (const int idx) |
INLINE int | operator[] (const int idx) const |
INLINE Indices | operator== (const Indices &other) const |
INLINE Indices | operator!= (const Indices &other) |
INLINE Indices | operator> (const Indices &other) const |
INLINE Indices | operator< (const Indices &other) const |
INLINE Indices | operator+ (const Indices &other) const |
INLINE Indices | operator- (const Indices &other) const |
INLINE Indices | max (const Indices &other) const |
INLINE Indices | min (const Indices &other) const |
Static Public Member Functions | |
static INLINE void | init () |
Must be called once before Indices are used. More... | |
Friends | |
std::ostream & | operator<< (std::ostream &stream, const Indices &idxs) |
Helper object for storing three (possibly four) int or bool values.
|
default |
|
inlineexplicit |
|
inline |
|
inlineexplicit |
|
inlineexplicit |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
friend |