1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-20 12:53:52 +00:00
openmw/apps/opencs/model/world/nestedtablewrapper.hpp
2022-09-22 21:35:26 +03:00

33 lines
708 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