1
/*************************************************************************
2
* Copyright (C) 2004 by Janek Kozicki *
5
* This program is free software; it is licensed under the terms of the *
6
* GNU General Public License v2 or later. See file LICENSE for details. *
7
*************************************************************************/
9
#include "Indexable.hpp"
12
Indexable::Indexable ()
17
Indexable::~Indexable ()
23
void Indexable::createIndex ()
25
int& index = getClassIndex();
26
if(index == -1) // assign new index
28
index = getMaxCurrentlyUsedClassIndex()+1;
29
// so that other dispatchers will not fall in conflict with this index
30
incrementMaxCurrentlyUsedClassIndex();