48b25945cc
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>
19 lines
244 B
C++
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;
|
|
}
|