28#ifndef __REFERENCE_H__
29#define __REFERENCE_H__
98inline bool operator != (
const Creference &r1,
const Creference &r2){
99 return (r1.ref[0]!=r2.ref[0]) || (r1.ref[1]!=r2.ref[1]) || (r1.ref[2]!=r2.ref[2]);
104inline bool operator < (
const Creference &r1,
const Creference &r2){
105 return (r1.ref[0]<r2.ref[0]) || ((r1.ref[0]==r2.ref[0]) &&
106 ((r1.ref[1]<r2.ref[1]) || ((r1.ref[1]==r2.ref[1]) && (r1.ref[2]<r2.ref[2]))
references used for checksums.
Creference operator+(const Creference &r)
addition of reference
bool is_empty()
test emptyness
Creference & operator=(const Creference &r)
assignment of reference
unsigned int operator[](int i)
accessing the reference
Creference()
default constructor
void randomize()
create a random reference
Creference & operator+=(const Creference &r)
incrementation of reference
bool not_empty()
test non-emptyness
Creference & operator-=(const Creference &r)
decrementation of reference
unsigned int ref[3]
actual data for the reference