42 UberIndex(
unsigned char _x,
unsigned char _y=0,
unsigned char _z=0,
unsigned char _s=0) : x(_x), y(_y), z(_z), s(_s){}
61 inline bool operator==(
const UberIndex &obj)
const {
62 return(x==obj.x && y==obj.y && z==obj.z && s==obj.s);}
63 inline bool operator<(
const UberIndex &obj)
const {
64 return(x<obj.x && y<=obj.y && z<=obj.z && s <=obj.s);}
71 unsigned char proxyOffset;
75 UberCollection(
unsigned char PO,
unsigned char _x,
unsigned char _y=0,
unsigned char _z=0,
unsigned char _s=0) : proxyOffset(PO), idxU(_x,_y,_z,_s) {
77 UberCollection(
unsigned char _proxyOffset) :proxyOffset(_proxyOffset)
79 idxU.x = proxyOffset % config.UberImax;
80 idxU.y = (proxyOffset % (config.UberImax * config.UberJmax)) / config.UberImax;
81 idxU.z = (proxyOffset % (config.UberImax * config.UberJmax * config.UberKmax))/(config.UberImax*config.UberJmax);
82 idxU.s = proxyOffset / (config.UberImax * config.UberJmax * config.UberKmax);
94 proxyOffset=obj.proxyOffset;
98 return(idxU==obj.idxU);}
100 return(idxU<obj.idxU); }
102 inline unsigned char calcPO()
103 {
return (idxU.x + (idxU.y + (idxU.z + idxU.s*config.UberKmax) * config.UberJmax) * config.UberImax);}
104 inline unsigned char getPO()
const {
return proxyOffset; }
105 inline unsigned char setPO(){ proxyOffset=calcPO();
return proxyOffset;}
106 inline unsigned char setPO(
int inPO){ proxyOffset=inPO;
return proxyOffset;}
holds the UberIndex and the offset for proxies
Config config
addtogroup Uber