DiSMEC++
binding.h File Reference
#include "pybind11/pybind11.h"
#include "pybind11/eigen.h"
#include "pybind11/stl.h"
#include "pybind11/stl/filesystem.h"
#include "fwd.h"
#include <memory>

Go to the source code of this file.

Classes

class  PyWrapper< T >
 Utility class used to wrap all objects we provide to python. More...
 

Typedefs

using PyDataSet = std::shared_ptr< dismec::DatasetBase >
 
using PyWeighting = std::shared_ptr< dismec::WeightingScheme >
 
using PyModel = PyWrapper< dismec::model::Model >
 

Functions

template<class T , class = typename std::enable_if<!std::is_lvalue_reference<T>::value>::type>
std::shared_ptr< T > wrap_shared (T &&source)
 

Typedef Documentation

◆ PyDataSet

using PyDataSet = std::shared_ptr<dismec::DatasetBase>

Definition at line 81 of file binding.h.

◆ PyModel

Definition at line 83 of file binding.h.

◆ PyWeighting

using PyWeighting = std::shared_ptr<dismec::WeightingScheme>

Definition at line 82 of file binding.h.

Function Documentation

◆ wrap_shared()

template<class T , class = typename std::enable_if<!std::is_lvalue_reference<T>::value>::type>
std::shared_ptr<T> wrap_shared ( T &&  source)