Nektar++
Classes | Namespaces | Functions
Python/BasicUtils/NekFactory.hpp File Reference
#include <LibUtilities/BasicUtils/NekFactory.hpp>
#include <LibUtilities/Python/NekPyConfig.hpp>
#include <functional>
#include <type_traits>
#include <utility>

Go to the source code of this file.

Classes

struct  placeholder_template< size_t >
 
struct  std::is_placeholder< placeholder_template< N > >
 
class  NekFactoryRegisterHelper< T >
 Helper class to be used in NekFactory_Register. Stores the Python function used to call the creator function. More...
 
class  NekFactory_Register< tFac< tKey, tBase, tParam... > >
 Lightweight wrapper for the factory RegisterCreatorFunction, to support the ability for Python subclasses of. More...
 

Namespaces

namespace  std
 STL namespace.
 

Functions

template<class T >
void NekFactoryCapsuleDestructor (PyObject *ptr)
 C-style callback to destroy the NekFactoryRegisterHelper class to avoid memory leaks. More...
 

Function Documentation

◆ NekFactoryCapsuleDestructor()

template<class T >
void NekFactoryCapsuleDestructor ( PyObject *  ptr)

C-style callback to destroy the NekFactoryRegisterHelper class to avoid memory leaks.

Definition at line 116 of file Python/BasicUtils/NekFactory.hpp.

117{
119 (NekFactoryRegisterHelper<T> *)PyCapsule_GetPointer(ptr, nullptr);
120 delete tmp;
121}
Helper class to be used in NekFactory_Register. Stores the Python function used to call the creator f...