ocarina/core/database.cpp
Anna Schumaker 48b25945cc DatabaseEntry: Rename id to _index (and make it private)
This variable should only be set by the Database when a DatabaseItem is
first created.  This means I should hide _index from the rest of the
world to prevent accidental modifications.  I also add an accessor
function for other code that needs to read _index.

Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
2014-11-02 10:25:41 -05:00

19 lines
244 B
C++

/**
* @file
* Copyright 2013 (c) Anna Schumaker.
*/
#include <core/database.h>
DatabaseEntry :: DatabaseEntry()
: _index(0)
{
}
DatabaseEntry :: ~DatabaseEntry() {}
const unsigned int DatabaseEntry :: index()
{
return _index;
}