|
OpenVDB
4.0.2
|
#include <Tuple.h>
Public Types | |
| typedef T | value_type |
| typedef T | ValueType |
Public Member Functions | |
| Tuple () | |
| Default ctor. Does nothing. More... | |
| Tuple (Tuple const &src) | |
| Copy constructor. Used when the class signature matches exactly. More... | |
| Tuple & | operator= (Tuple const &src) |
| Assignment operator. More... | |
| template<int src_size, typename src_valtype > | |
| Tuple (Tuple< src_size, src_valtype > const &src) | |
| Conversion constructor. More... | |
| T | operator[] (int i) const |
| T & | operator[] (int i) |
| std::string | str () const |
| void | write (std::ostream &os) const |
| void | read (std::istream &is) |
| bool | isNan () const |
| True if a Nan is present in this tuple. More... | |
| bool | isInfinite () const |
| True if an Inf is present in this tuple. More... | |
| bool | isFinite () const |
| True if no Nan or Inf values are present. More... | |
| bool | isZero () const |
| True if all elements are exactly zero. More... | |
Compatibility | |
These are mostly for backwards compability with functions that take old-style Vs (which are just arrays). | |
| template<typename S > | |
| void | toV (S *v) const |
| Copies this tuple into an array of a compatible type. More... | |
| value_type * | asV () |
| Exposes the internal array. Be careful when using this function. More... | |
| value_type const * | asV () const |
| Exposes the internal array. Be careful when using this function. More... | |
Static Public Attributes | |
| static const int | size = SIZE |
Protected Attributes | |
| T | mm [SIZE] |
A base class for homogenous tuple types
| typedef T value_type |
| typedef T ValueType |
|
inline |
Default ctor. Does nothing.
This is required because declaring a copy (or other) constructor prevents the compiler from synthesizing a default constructor.
Copy constructor. Used when the class signature matches exactly.
Conversion constructor.
Tuples with different value types and different sizes can be interconverted using this member. Converting from a larger tuple results in truncation; converting from a smaller tuple results in the extra data members being zeroed out. This function assumes that the integer 0 is convertible to the tuple's value type.
|
inline |
Exposes the internal array. Be careful when using this function.
|
inline |
Exposes the internal array. Be careful when using this function.
|
inline |
True if no Nan or Inf values are present.
|
inline |
True if an Inf is present in this tuple.
|
inline |
True if a Nan is present in this tuple.
|
inline |
True if all elements are exactly zero.
Assignment operator.
This is required because declaring a copy (or other) constructor prevents the compiler from synthesizing a default assignment operator.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Copies this tuple into an array of a compatible type.
|
inline |
|
protected |
|
static |
1.8.13