KrisLibrary
1.0.0
|
A lightweight integer 3-tuple class. More...
#include <IntTriple.h>
Public Member Functions | |
IntTriple (int _a, int _b, int _c) | |
IntTriple (const IntTriple &t) | |
bool | operator== (const IntTriple &t) const |
bool | operator!= (const IntTriple &t) const |
bool | operator< (const IntTriple &t) const |
void | set (int _a, int _b, int _c) |
int | operator[] (int i) const |
int & | operator[] (int i) |
int | getIndex (int x) const |
bool | contains (int x) const |
bool | contains (int x, int &index) const |
int | count (int x) const |
void | getCompliment (int i, int &v1, int &v2) const |
int | getCompliment (int i1, int i2) const |
void | operator+= (int ofs) |
void | operator-= (int ofs) |
Public Attributes | |
union { | |
int data [3] | |
struct { | |
int a | |
int b | |
int c | |
} | |
}; | |
A lightweight integer 3-tuple class.