TrinityCore
DB2Storage< T > Class Template Reference

#include <DB2Store.h>

+ Inheritance diagram for DB2Storage< T >:

Public Types

using iterator = DBStorageIterator< T >
 

Public Member Functions

T const * LookupEntry (uint32 id) const
 
T const * AssertEntry (uint32 id) const
 
iterator begin () const
 
iterator end () const
 
 DB2StorageBase (char const *fileName, DB2LoadInfo const *loadInfo)
 
 DB2StorageBase (DB2StorageBase const &)=delete
 
 DB2StorageBase (DB2StorageBase &&)=delete
 
- Public Member Functions inherited from DB2StorageBase
 DB2StorageBase (char const *fileName, DB2LoadInfo const *loadInfo)
 
 DB2StorageBase (DB2StorageBase const &)=delete
 
 DB2StorageBase (DB2StorageBase &&)=delete
 
DB2StorageBaseoperator= (DB2StorageBase const &)=delete
 
DB2StorageBaseoperator= (DB2StorageBase &&)=delete
 
 ~DB2StorageBase ()
 
uint32 GetTableHash () const
 
uint32 GetLayoutHash () const
 
bool HasRecord (uint32 id) const
 
void WriteRecord (uint32 id, LocaleConstant locale, ByteBuffer &buffer) const
 
void EraseRecord (uint32 id)
 
std::string const & GetFileName () const
 
uint32 GetFieldCount () const
 
DB2LoadInfo const * GetLoadInfo () const
 
uint32 GetNumRows () const
 
void Load (std::string const &path, LocaleConstant locale)
 
void LoadStringsFrom (std::string const &path, LocaleConstant locale)
 
void LoadFromDB ()
 
void LoadStringsFromDB (LocaleConstant locale)
 

Additional Inherited Members

- Protected Attributes inherited from DB2StorageBase
uint32 _tableHash
 
uint32 _layoutHash
 
std::string _fileName
 
uint32 _fieldCount
 
DB2LoadInfo const * _loadInfo
 
char * _dataTable
 
char * _dataTableEx [2]
 
std::vector< char * > _stringPool
 
char ** _indexTable
 
uint32 _indexTableSize
 
uint32 _minId
 

Detailed Description

template<class T>
class DB2Storage< T >

Definition at line 74 of file DB2Store.h.

Member Typedef Documentation

◆ iterator

template<class T >
using DB2Storage< T >::iterator = DBStorageIterator<T>

Definition at line 79 of file DB2Store.h.

Member Function Documentation

◆ AssertEntry()

template<class T >
T const * DB2Storage< T >::AssertEntry ( uint32  id) const
inline

Definition at line 84 of file DB2Store.h.

+ Here is the call graph for this function:

◆ begin()

template<class T >
iterator DB2Storage< T >::begin ( ) const
inline

Definition at line 86 of file DB2Store.h.

◆ DB2StorageBase() [1/3]

template<class T >
DB2StorageBase::DB2StorageBase ( char const *  fileName,
DB2LoadInfo const *  loadInfo 
)

Definition at line 33 of file DB2Store.cpp.

◆ DB2StorageBase() [2/3]

template<class T >
DB2StorageBase::DB2StorageBase ( DB2StorageBase &&  )
delete

◆ DB2StorageBase() [3/3]

template<class T >
DB2StorageBase::DB2StorageBase ( DB2StorageBase const &  )
delete

◆ end()

template<class T >
iterator DB2Storage< T >::end ( ) const
inline

Definition at line 87 of file DB2Store.h.

◆ LookupEntry()

template<class T >
T const * DB2Storage< T >::LookupEntry ( uint32  id) const
inline

Definition at line 83 of file DB2Store.h.

+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: