omni::graph::core::InstanceIndex

Defined in omni/graph/core/iComputeGraph.h

struct InstanceIndex

Temp value representing an instance during a compute or a loop.

Public Functions

inline bool const operator==(InstanceIndex const &other) const

Returns true if this InstanceIndex is equal to the other.

inline bool const operator!=(InstanceIndex const &other) const

Returns true if this InstanceIndex is not equal to the other.

inline bool const operator<(InstanceIndex const &other) const

Returns true if this InstanceIndex is less than the other.

inline bool const operator<=(InstanceIndex const &other) const

Returns true if this InstanceIndex is less than or equal to the other.

inline bool const operator>(InstanceIndex const &other) const

Returns true if this InstanceIndex is greater than the other.

inline bool const operator>=(InstanceIndex const &other) const

Returns true if this InstanceIndex is greater than or equal to the other.

inline InstanceIndex operator+(InstanceIndex other) const

Returns the sum of this instance index and that of the other.

inline InstanceIndex operator+(size_t idx) const

Returns the sum of this instance index and idx.

inline InstanceIndex &operator+=(InstanceIndex other)

Increments the instance index by the index amount contained in other.

inline InstanceIndex &operator++()

Increments the index value.

Public Members

size_t index = {0}

Index value for the instance.