mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-21 09:23:53 +00:00
945f1aad20
Detected by clang-tidy's modernize-use-override
31 lines
709 B
C++
31 lines
709 B
C++
#ifndef CSM_WOLRD_NESTEDTABLEWRAPPER_H
|
|
#define CSM_WOLRD_NESTEDTABLEWRAPPER_H
|
|
|
|
namespace CSMWorld
|
|
{
|
|
struct NestedTableWrapperBase
|
|
{
|
|
virtual ~NestedTableWrapperBase();
|
|
|
|
virtual int size() const;
|
|
|
|
NestedTableWrapperBase();
|
|
};
|
|
|
|
template<typename NestedTable>
|
|
struct NestedTableWrapper : public NestedTableWrapperBase
|
|
{
|
|
NestedTable mNestedTable;
|
|
|
|
NestedTableWrapper(const NestedTable& nestedTable)
|
|
: mNestedTable(nestedTable) {}
|
|
|
|
~NestedTableWrapper() override {}
|
|
|
|
int size() const override
|
|
{
|
|
return mNestedTable.size(); //i hope that this will be enough
|
|
}
|
|
};
|
|
}
|
|
#endif
|