21 #ifndef GNEReferenceCounter_h 22 #define GNEReferenceCounter_h 61 void decRef(
const std::string& debugMsg =
"") {
63 #ifdef _DEBUG_REFERENCECOUNTER 70 WRITE_ERROR(
"Attempt to decrement references below zero for instance of GNEReferenceCounter");
76 void incRef(
const std::string& debugMsg =
"") {
78 #ifdef _DEBUG_REFERENCECOUNTER 92 virtual const std::string
getID()
const = 0;
#define UNUSED_PARAMETER(x)
int myCount
reference counter
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
void incRef(const std::string &debugMsg="")
Increarse reference.
void decRef(const std::string &debugMsg="")
Decrease reference.
virtual const std::string getID() const =0
return ID of object
bool unreferenced()
check if object ins't referenced