mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 14:25:38 +03:00
5c88803942
Error handling: Array now has sufficiently advanced error handling to remove most, if not all, disable_checks. Extention: With the metaprogramming techniques, new types can be added easily. Speed: With the new changes I've made to Judy, the Array module has far exceeded the speed of any traditional datatype
20 lines
417 B
C++
20 lines
417 B
C++
#ifndef _JUDYVEC_INCLUDED
|
|
#define _JUDYVEC_INCLUDED
|
|
|
|
#include "JudyIncludes.h"
|
|
|
|
class JudyVec
|
|
{
|
|
public:
|
|
REAL first;
|
|
REAL second;
|
|
REAL third;
|
|
|
|
JudyVec(REAL one, REAL two, REAL three) { Set(one, two, three); }
|
|
~JudyVec() {}
|
|
|
|
void Get(REAL& one, REAL& two, REAL& three) { one = first; two = second; three = third; }
|
|
void Set(REAL one, REAL two, REAL three) { first = one; second = two; third = three; }
|
|
};
|
|
|
|
#endif |