#include "NestedMarshaller.h" #if defined(MARSHALSUPPORT_CPP11SUPPORTED) && !defined(MARSHALSUPPORT_NOVARIADICTEMPLATES) #include "TupleHelper.h" #endif namespace MarshalSupport { namespace Internal { //---------------------------------------------------------------------------------------------------------------------- template void CreateSTLContainerKeyMarshallers(INestedMarshallerBase* nestedMarshallerArray[], size_t nestedMarshallerArrayIndex, const std::vector* elementPointer) { CreateSTLContainerKeyMarshallers(nestedMarshallerArray, nestedMarshallerArrayIndex+1, (const ElementType*)elementPointer); } #ifdef MARSHALSUPPORT_CPP11SUPPORTED //---------------------------------------------------------------------------------------------------------------------- template void CreateSTLContainerKeyMarshallers(INestedMarshallerBase* nestedMarshallerArray[], size_t nestedMarshallerArrayIndex, const std::array* elementPointer) { CreateSTLContainerKeyMarshallers(nestedMarshallerArray, nestedMarshallerArrayIndex+1, (const ElementType*)elementPointer); } #endif //---------------------------------------------------------------------------------------------------------------------- template void CreateSTLContainerKeyMarshallers(INestedMarshallerBase* nestedMarshallerArray[], size_t nestedMarshallerArrayIndex, const std::list* elementPointer) { CreateSTLContainerKeyMarshallers(nestedMarshallerArray, nestedMarshallerArrayIndex+1, (const ElementType*)elementPointer); } #ifdef MARSHALSUPPORT_CPP11SUPPORTED //---------------------------------------------------------------------------------------------------------------------- template void CreateSTLContainerKeyMarshallers(INestedMarshallerBase* nestedMarshallerArray[], size_t nestedMarshallerArrayIndex, const std::forward_list* elementPointer) { CreateSTLContainerKeyMarshallers(nestedMarshallerArray, nestedMarshallerArrayIndex+1, (const ElementType*)elementPointer); } #endif //---------------------------------------------------------------------------------------------------------------------- template void CreateSTLContainerKeyMarshallers(INestedMarshallerBase* nestedMarshallerArray[], size_t nestedMarshallerArrayIndex, const std::deque* elementPointer) { CreateSTLContainerKeyMarshallers(nestedMarshallerArray, nestedMarshallerArrayIndex+1, (const ElementType*)elementPointer); } //---------------------------------------------------------------------------------------------------------------------- template void CreateSTLContainerKeyMarshallers(INestedMarshallerBase* nestedMarshallerArray[], size_t nestedMarshallerArrayIndex, const std::set* elementPointer) { CreateSTLContainerKeyMarshallers(nestedMarshallerArray, nestedMarshallerArrayIndex+1, (const ElementType*)elementPointer); } //---------------------------------------------------------------------------------------------------------------------- template void CreateSTLContainerKeyMarshallers(INestedMarshallerBase* nestedMarshallerArray[], size_t nestedMarshallerArrayIndex, const std::multiset* elementPointer) { CreateSTLContainerKeyMarshallers(nestedMarshallerArray, nestedMarshallerArrayIndex+1, (const ElementType*)elementPointer); } #ifdef MARSHALSUPPORT_CPP11SUPPORTED //---------------------------------------------------------------------------------------------------------------------- template void CreateSTLContainerKeyMarshallers(INestedMarshallerBase* nestedMarshallerArray[], size_t nestedMarshallerArrayIndex, const std::unordered_set* elementPointer) { CreateSTLContainerKeyMarshallers(nestedMarshallerArray, nestedMarshallerArrayIndex+1, (const ElementType*)elementPointer); } //---------------------------------------------------------------------------------------------------------------------- template void CreateSTLContainerKeyMarshallers(INestedMarshallerBase* nestedMarshallerArray[], size_t nestedMarshallerArrayIndex, const std::unordered_multiset* elementPointer) { CreateSTLContainerKeyMarshallers(nestedMarshallerArray, nestedMarshallerArrayIndex+1, (const ElementType*)elementPointer); } #endif //---------------------------------------------------------------------------------------------------------------------- template void CreateSTLContainerKeyMarshallers(INestedMarshallerBase* nestedMarshallerArray[], size_t nestedMarshallerArrayIndex, const std::map* elementPointer) { nestedMarshallerArray[nestedMarshallerArrayIndex] = new NestedMarshaller(); CreateSTLContainerKeyMarshallers(nestedMarshallerArray, nestedMarshallerArrayIndex+1, (const ElementType*)elementPointer); } //---------------------------------------------------------------------------------------------------------------------- template void CreateSTLContainerKeyMarshallers(INestedMarshallerBase* nestedMarshallerArray[], size_t nestedMarshallerArrayIndex, const std::multimap* elementPointer) { nestedMarshallerArray[nestedMarshallerArrayIndex] = new NestedMarshaller(); CreateSTLContainerKeyMarshallers(nestedMarshallerArray, nestedMarshallerArrayIndex+1, (const ElementType*)elementPointer); } #ifdef MARSHALSUPPORT_CPP11SUPPORTED //---------------------------------------------------------------------------------------------------------------------- template void CreateSTLContainerKeyMarshallers(INestedMarshallerBase* nestedMarshallerArray[], size_t nestedMarshallerArrayIndex, const std::unordered_map* elementPointer) { nestedMarshallerArray[nestedMarshallerArrayIndex] = new NestedMarshaller(); CreateSTLContainerKeyMarshallers(nestedMarshallerArray, nestedMarshallerArrayIndex+1, (const ElementType*)elementPointer); } //---------------------------------------------------------------------------------------------------------------------- template void CreateSTLContainerKeyMarshallers(INestedMarshallerBase* nestedMarshallerArray[], size_t nestedMarshallerArrayIndex, const std::unordered_multimap* elementPointer) { nestedMarshallerArray[nestedMarshallerArrayIndex] = new NestedMarshaller(); CreateSTLContainerKeyMarshallers(nestedMarshallerArray, nestedMarshallerArrayIndex+1, (const ElementType*)elementPointer); } #endif //---------------------------------------------------------------------------------------------------------------------- template void CreateSTLContainerKeyMarshallers(INestedMarshallerBase* nestedMarshallerArray[], size_t nestedMarshallerArrayIndex, const std::stack* elementPointer) { CreateSTLContainerKeyMarshallers(nestedMarshallerArray, nestedMarshallerArrayIndex+1, (const ElementType*)elementPointer); } //---------------------------------------------------------------------------------------------------------------------- template void CreateSTLContainerKeyMarshallers(INestedMarshallerBase* nestedMarshallerArray[], size_t nestedMarshallerArrayIndex, const std::queue* elementPointer) { CreateSTLContainerKeyMarshallers(nestedMarshallerArray, nestedMarshallerArrayIndex+1, (const ElementType*)elementPointer); } //---------------------------------------------------------------------------------------------------------------------- template void CreateSTLContainerKeyMarshallers(INestedMarshallerBase* nestedMarshallerArray[], size_t nestedMarshallerArrayIndex, const std::priority_queue* elementPointer) { CreateSTLContainerKeyMarshallers(nestedMarshallerArray, nestedMarshallerArrayIndex+1, (const ElementType*)elementPointer); } //---------------------------------------------------------------------------------------------------------------------- template void CreateSTLContainerKeyMarshallers(INestedMarshallerBase* nestedMarshallerArray[], size_t nestedMarshallerArrayIndex, const std::basic_string* elementPointer) { CreateSTLContainerKeyMarshallers(nestedMarshallerArray, nestedMarshallerArrayIndex+1, (const ElementType*)elementPointer); } //---------------------------------------------------------------------------------------------------------------------- template void CreateSTLContainerKeyMarshallers(INestedMarshallerBase* nestedMarshallerArray[], size_t nestedMarshallerArrayIndex, const std::pair* elementPointer) { nestedMarshallerArray[nestedMarshallerArrayIndex] = new NestedMarshaller(); nestedMarshallerArray[nestedMarshallerArrayIndex+1] = new NestedMarshaller(); } #if defined(MARSHALSUPPORT_CPP11SUPPORTED) && !defined(MARSHALSUPPORT_NOVARIADICTEMPLATES) //---------------------------------------------------------------------------------------------------------------------- void CreateSTLContainerKeyMarshallers(INestedMarshallerBase* nestedMarshallerArray[], size_t nestedMarshallerArrayIndex, const std::tuple<>* elementPointer) { } //---------------------------------------------------------------------------------------------------------------------- template void CreateSTLContainerKeyMarshallers(INestedMarshallerBase* nestedMarshallerArray[], size_t nestedMarshallerArrayIndex, const std::tuple* elementPointer) { TupleHelper>::value-1, Args...>::CreateSTLContainerKeyMarshallers(nestedMarshallerArray, nestedMarshallerArrayIndex, elementPointer); } //---------------------------------------------------------------------------------------------------------------------- template void TupleHelper::CreateSTLContainerKeyMarshallers(INestedMarshallerBase* nestedMarshallerArray[], size_t nestedMarshallerArrayIndex, const std::tuple* elementPointer) { nestedMarshallerArray[nestedMarshallerArrayIndex] = new NestedMarshaller>::type>(); TupleHelper::CreateSTLContainerKeyMarshallers(nestedMarshallerArray, nestedMarshallerArrayIndex+1, elementPointer); } //---------------------------------------------------------------------------------------------------------------------- template void TupleHelper<0, Args...>::CreateSTLContainerKeyMarshallers(INestedMarshallerBase* nestedMarshallerArray[], size_t nestedMarshallerArrayIndex, const std::tuple* elementPointer) { nestedMarshallerArray[nestedMarshallerArrayIndex] = new NestedMarshaller>::type>(); } #endif //---------------------------------------------------------------------------------------------------------------------- template void CreateSTLContainerKeyMarshallers(INestedMarshallerBase* nestedMarshallerArray[], size_t nestedMarshallerArrayIndex, const ElementType* elementPointer) { } } // Close namespace Internal } // Close namespace MarshalSupport