|
PhysicsBasedAnimationToolkit 0.0.10
Cross-platform C++20 library of algorithms and data structures commonly used in computer graphics research on physically-based simulation.
|
Wrapper around integer types that throws when integer overflow is detected. More...
#include <IntegerArithmeticChecks.h>
Public Types | |
| using | SelfType = OverflowChecked<Integer> |
| Instance type. | |
Public Member Functions | |
| Integer & | operator* () |
| Dereference operator. | |
| Integer const & | operator* () const |
| Const dereference operator. | |
| SelfType | operator- () const |
| Negation operator. | |
| SelfType | operator+ (SelfType rhs) const |
| Addition operator. | |
| SelfType | operator* (SelfType rhs) const |
| Multiplication operator. | |
| SelfType | operator- (SelfType rhs) const |
| Subtraction operator. | |
| SelfType | operator/ (SelfType rhs) const |
| Division operator. | |
| template<std::integral OtherInteger> | |
| SelfType | operator/ (OtherInteger rhs) const |
| Division operator. | |
| operator Integer () const | |
| Cast operator to underlying type. | |
Public Attributes | |
| Integer | value |
| Underlying integer value. | |
Wrapper around integer types that throws when integer overflow is detected.
| Integer | The type of the integer to wrap |
|
inline |
Dereference operator.
|
inline |
Const dereference operator.
|
inline |
Multiplication operator.
| rhs | Right-hand side operand |
|
inline |
Addition operator.
| rhs | Right-hand side operand |
|
inline |
Negation operator.
|
inline |
Subtraction operator.
| rhs | Right-hand side operand |
|
inline |
Division operator.
| rhs | Right-hand side operand |
|
inline |
Division operator.
| rhs | Right-hand side operand |