From Mike Wittman, added protected function support

This commit is contained in:
Robert Osfield
2007-03-01 11:54:30 +00:00
parent e622959393
commit 6c56383ba9
9 changed files with 3065 additions and 13 deletions

View File

@@ -343,6 +343,111 @@ namespace osgIntrospection
};
template<typename T>
struct ProtectedConstructorInstanceCreator
{
template<typename P0, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7, typename P8, typename P9, typename P10, typename P11, typename P12, typename P13, typename P14, typename P15>
static Value create(Value& , Value& , Value& , Value& , Value& , Value& , Value& , Value& , Value& , Value& , Value& , Value& , Value& , Value& , Value& , Value& )
{
throw ProtectedConstructorInvocationException();
}
template<typename P0, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7, typename P8, typename P9, typename P10, typename P11, typename P12, typename P13, typename P14>
static Value create(Value& , Value& , Value& , Value& , Value& , Value& , Value& , Value& , Value& , Value& , Value& , Value& , Value& , Value& , Value& )
{
throw ProtectedConstructorInvocationException();
}
template<typename P0, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7, typename P8, typename P9, typename P10, typename P11, typename P12, typename P13>
static Value create(Value& , Value& , Value& , Value& , Value& , Value& , Value& , Value& , Value& , Value& , Value& , Value& , Value& , Value& )
{
throw ProtectedConstructorInvocationException();
}
template<typename P0, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7, typename P8, typename P9, typename P10, typename P11, typename P12>
static Value create(Value& , Value& , Value& , Value& , Value& , Value& , Value& , Value& , Value& , Value& , Value& , Value& , Value& )
{
throw ProtectedConstructorInvocationException();
}
template<typename P0, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7, typename P8, typename P9, typename P10, typename P11>
static Value create(Value& , Value& , Value& , Value& , Value& , Value& , Value& , Value& , Value& , Value& , Value& , Value& )
{
throw ProtectedConstructorInvocationException();
}
template<typename P0, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7, typename P8, typename P9, typename P10>
static Value create(Value& , Value& , Value& , Value& , Value& , Value& , Value& , Value& , Value& , Value& , Value& )
{
throw ProtectedConstructorInvocationException();
}
template<typename P0, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7, typename P8, typename P9>
static Value create(Value& , Value& , Value& , Value& , Value& , Value& , Value& , Value& , Value& , Value& )
{
throw ProtectedConstructorInvocationException();
}
template<typename P0, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7, typename P8>
static Value create(Value& , Value& , Value& , Value& , Value& , Value& , Value& , Value& , Value& )
{
throw ProtectedConstructorInvocationException();
}
template<typename P0, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7>
static Value create(Value& , Value& , Value& , Value& , Value& , Value& , Value& , Value& )
{
throw ProtectedConstructorInvocationException();
}
template<typename P0, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6>
static Value create(Value& , Value& , Value& , Value& , Value& , Value& , Value& )
{
throw ProtectedConstructorInvocationException();
}
template<typename P0, typename P1, typename P2, typename P3, typename P4, typename P5>
static Value create(Value& , Value& , Value& , Value& , Value& , Value& )
{
throw ProtectedConstructorInvocationException();
}
template<typename P0, typename P1, typename P2, typename P3, typename P4>
static Value create(Value& , Value& , Value& , Value& , Value& )
{
throw ProtectedConstructorInvocationException();
}
template<typename P0, typename P1, typename P2, typename P3>
static Value create(Value& , Value& , Value& , Value& )
{
throw ProtectedConstructorInvocationException();
}
template<typename P0, typename P1, typename P2>
static Value create(Value& , Value& , Value& )
{
throw ProtectedConstructorInvocationException();
}
template<typename P0, typename P1>
static Value create(Value& , Value& )
{
throw ProtectedConstructorInvocationException();
}
template<typename P0>
static Value create(Value& )
{
throw ProtectedConstructorInvocationException();
}
static Value create()
{
throw ProtectedConstructorInvocationException();
}
};
}