41 virtual const std::string
getID()
const = 0;
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
#define UNUSED_PARAMETER(x)
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
void decRef(const std::string &debugMsg="")
Decrease reference.
void incRef(const std::string &debugMsg="")
Increase reference.
bool unreferenced()
check if object ins't referenced
virtual const std::string getID() const =0
return ID of object
int myCount
reference counter
virtual ~GNEReferenceCounter()