|
Talvos
0.1
SPIR-V interpreter and dynamic analysis framework
|
Class representing a 3-dimensional size or ID. More...
#include <talvos/Dim3.h>
Public Member Functions | |
| Dim3 () | |
| Construct a Dim3 with values (1,1,1). More... | |
| Dim3 (uint32_t X, uint32_t Y, uint32_t Z) | |
| Construct a Dim3 from specific values. More... | |
| Dim3 (const uint32_t Data[3]) | |
| Construct a Dim3 from an array. More... | |
| Dim3 | operator+ (const Dim3 &D) const |
Returns the component-wise addition of this Dim3 with D. More... | |
| Dim3 | operator* (const Dim3 &D) const |
Returns the component-wise multiplication of this Dim3 with D. More... | |
| Dim3 | operator% (const Dim3 &D) const |
Returns the component-wise modulus of this Dim3 with D. More... | |
| bool | operator== (const Dim3 &D) const |
Returns true if this Dim3 is equal to D. More... | |
| uint32_t & | operator[] (unsigned i) |
| Returns a mutable reference to the component at index i (i must be < 3). More... | |
| const uint32_t & | operator[] (unsigned i) const |
| Returns a const reference to the component at index i (i must be < 3). More... | |
Public Attributes | |
| union { | |
| struct { | |
| uint32_t X | |
| uint32_t Y | |
| uint32_t Z | |
| } | |
| uint32_t Data [3] | |
| }; | |
| Data members. More... | |
Friends | |
| std::ostream & | operator<< (std::ostream &Stream, const Dim3 &D) |
| Allow a Dim3 to be inserted into an output stream. More... | |
Class representing a 3-dimensional size or ID.
Instances of this class provide element access via .{X, Y, Z} notation or via the uint32_t Data[3] member.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
| union { ... } |
Data members.
1.8.6