Jolt Physics
A multi core friendly Game Physics Engine
|
#include <StridedPtr.h>
Public Types | |
using | value_type = T |
Public Member Functions | |
StridedPtr ()=default | |
Constructors. More... | |
StridedPtr (const StridedPtr &inRHS)=default | |
StridedPtr (T *inPtr, int inStride=sizeof(T)) | |
StridedPtr & | operator= (const StridedPtr &inRHS)=default |
Assignment. More... | |
StridedPtr & | operator++ () |
Incrementing / decrementing. More... | |
StridedPtr & | operator-- () |
StridedPtr | operator++ (int) |
StridedPtr | operator-- (int) |
StridedPtr | operator+ (int inOffset) const |
StridedPtr | operator- (int inOffset) const |
void | operator+= (int inOffset) |
void | operator-= (int inOffset) |
int | operator- (const StridedPtr &inRHS) const |
Distance between two pointers in elements. More... | |
bool | operator== (const StridedPtr &inRHS) const |
Comparison operators. More... | |
bool | operator!= (const StridedPtr &inRHS) const |
bool | operator<= (const StridedPtr &inRHS) const |
bool | operator>= (const StridedPtr &inRHS) const |
bool | operator< (const StridedPtr &inRHS) const |
bool | operator> (const StridedPtr &inRHS) const |
T & | operator* () const |
Access value. More... | |
T * | operator-> () const |
T & | operator[] (int inOffset) const |
T * | GetPtr () const |
Explicit conversion. More... | |
int | GetStride () const |
Get stride in bytes. More... | |
A strided pointer behaves exactly like a normal pointer except that the elements that the pointer points to can be part of a larger structure. The stride gives the number of bytes from one element to the next.
using StridedPtr< T >::value_type = T |
|
default |
Constructors.
|
default |
|
inline |
|
inline |
Explicit conversion.
|
inline |
Get stride in bytes.
|
inline |
|
inline |
Access value.
|
inline |
|
inline |
Incrementing / decrementing.
|
inline |
|
inline |
|
inline |
Distance between two pointers in elements.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinedefault |
Assignment.
|
inline |
Comparison operators.
|
inline |
|
inline |
|
inline |