mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2026-02-04 09:09:09 +00:00
feat(db): add getter for num records
This commit is contained in:
parent
9d83df95f9
commit
eed060e512
4 changed files with 10 additions and 4 deletions
|
|
@ -18,8 +18,14 @@ class WowClientDB : public WowClientDB_Common<T>, IDatabase<T> {
|
|||
|
||||
// Member functions
|
||||
T* GetRecordByIndex(int32_t index) const;
|
||||
int32_t GetNumRecords();
|
||||
};
|
||||
|
||||
template <class T>
|
||||
int32_t WowClientDB<T>::GetNumRecords() {
|
||||
return this->m_numRecords;
|
||||
}
|
||||
|
||||
template <class T>
|
||||
T* WowClientDB<T>::GetRecordByIndex(int32_t index) const {
|
||||
STORM_ASSERT(this->m_numRecords >= 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue