TrinityCore
|
#include <DB2Store.h>
Public Types | |
typedef DBStorageIterator< T > | iterator |
typedef bool(* | SortFunc )(T const *left, T const *right) |
Public Member Functions | |
DB2Storage (char const *fileName, char const *format, HotfixDatabaseStatements preparedStmtIndex) | |
~DB2Storage () | |
bool | HasRecord (uint32 id) const override |
void | WriteRecord (uint32 id, uint32 locale, ByteBuffer &buffer) const override |
void | EraseRecord (uint32 id) override |
T const * | LookupEntry (uint32 id) const |
T const * | AssertEntry (uint32 id) const |
std::string const & | GetFileName () const |
uint32 | GetNumRows () const |
char const * | GetFormat () const |
uint32 | GetFieldCount () const |
bool | Load (std::string const &path, uint32 locale) |
bool | LoadStringsFrom (std::string const &path, uint32 locale) |
void | LoadFromDB () |
void | LoadStringsFromDB (uint32 locale) |
void | Sort (SortFunc pred) |
iterator | begin () |
iterator | end () |
Public Member Functions inherited from DB2StorageBase | |
virtual | ~DB2StorageBase () |
uint32 | GetHash () const |
Private Types | |
typedef std::list< char * > | StringPoolList |
Private Attributes | |
std::string | _fileName |
uint32 | _indexTableSize |
uint32 | _fieldCount |
char const * | _format |
union { | |
T ** AsT | |
char ** AsChar | |
} | _indexTable |
T * | _dataTable |
T * | _dataTableEx |
StringPoolList | _stringPoolList |
HotfixDatabaseStatements | _hotfixStatement |
Additional Inherited Members | |
Protected Attributes inherited from DB2StorageBase | |
uint32 | _tableHash |
typedef DBStorageIterator<T> DB2Storage< T >::iterator |
typedef bool(* DB2Storage< T >::SortFunc)(T const *left, T const *right) |
|
private |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineoverridevirtual |
Implements DB2StorageBase.
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineoverridevirtual |
Implements DB2StorageBase.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineoverridevirtual |
Implements DB2StorageBase.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
union { ... } DB2Storage< T >::_indexTable |
|
private |
|
private |
char** DB2Storage< T >::AsChar |
T** DB2Storage< T >::AsT |