19 #ifndef GNEReferenceCounter_h 20 #define GNEReferenceCounter_h 53 void decRef(
const std::string& debugMsg =
"") {
55 #ifdef _DEBUG_REFERENCECOUNTER 62 WRITE_ERROR(
"Attempt to decrement references below zero for instance of GNEReferenceCounter");
68 void incRef(
const std::string& debugMsg =
"") {
70 #ifdef _DEBUG_REFERENCECOUNTER 84 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