mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-11 09:36:37 +00:00
32 lines
707 B
C++
32 lines
707 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) {}
|
|
|
|
virtual ~NestedTableWrapper() {}
|
|
|
|
virtual int size() const
|
|
{
|
|
return mNestedTable.size(); //i hope that this will be enough
|
|
}
|
|
};
|
|
}
|
|
#endif
|