mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2026-11-17 19:31:55 +03:00
feat(db): add getter for num records
This commit is contained in:
4 files changed
+10
-4
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user