mirror of
https://github.com/OpenMW/openmw.git
synced 2025-10-17 02:46:34 +00:00
Remove .cpp files with small amount of code which don't have additional includes compared to corresponding .hpp files. This reduces the total size of preprocessed code of the project and should reduce compilation time.
33 lines
750 B
C++
33 lines
750 B
C++
#ifndef CSM_WOLRD_NESTEDTABLEWRAPPER_H
|
|
#define CSM_WOLRD_NESTEDTABLEWRAPPER_H
|
|
|
|
namespace CSMWorld
|
|
{
|
|
struct NestedTableWrapperBase
|
|
{
|
|
virtual ~NestedTableWrapperBase() = default;
|
|
|
|
virtual int size() const { return -5; }
|
|
|
|
NestedTableWrapperBase() = default;
|
|
};
|
|
|
|
template <typename NestedTable>
|
|
struct NestedTableWrapper : public NestedTableWrapperBase
|
|
{
|
|
NestedTable mNestedTable;
|
|
|
|
NestedTableWrapper(const NestedTable& nestedTable)
|
|
: mNestedTable(nestedTable)
|
|
{
|
|
}
|
|
|
|
~NestedTableWrapper() override = default;
|
|
|
|
int size() const override
|
|
{
|
|
return mNestedTable.size(); // i hope that this will be enough
|
|
}
|
|
};
|
|
}
|
|
#endif
|