DNDSR 0.1.0.dev1+gcd065ad
Distributed Numeric Data Structure for CFV
Loading...
Searching...
No Matches
Defines_bind.hpp File Reference

Shared pybind11 plumbing used by every *_bind.hpp in DNDS (buffer-protocol type check, ssp-based class alias, ostream redirect guard, top-level pybind11_bind_defines entry point). More...

#include "Defines.hpp"
#include <pybind11/pybind11.h>
#include <pybind11/iostream.h>
Include dependency graph for Defines_bind.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  DNDS
 the host side operators are provided as implemented
 

Macros

#define DNDS_PYBIND11_OSTREAM_GUARD
 

Typedefs

template<class T >
using DNDS::py_class_ssp = py::classh< T >
 

Functions

template<class T >
bool DNDS::py_buffer_contains_T (const py::buffer_info &info)
 
bool DNDS::py_buffer_is_contigious_c (const py::buffer_info &info)
 
bool DNDS::py_buffer_is_contigious_f (const py::buffer_info &info)
 
std::tuple< ssize_t, char > DNDS::py_buffer_get_contigious_size (const py::buffer_info &info)
 
template<typename T >
py::memoryview DNDS::py_vector_as_memory_view (std::vector< T > &vec, bool readonly)
 
void DNDS::pybind11_bind_defines (py::module_ &m)
 

Detailed Description

Shared pybind11 plumbing used by every *_bind.hpp in DNDS (buffer-protocol type check, ssp-based class alias, ostream redirect guard, top-level pybind11_bind_defines entry point).

Definition in file Defines_bind.hpp.

Macro Definition Documentation

◆ DNDS_PYBIND11_OSTREAM_GUARD

#define DNDS_PYBIND11_OSTREAM_GUARD
Value:
py::call_guard<py::scoped_ostream_redirect, \
py::scoped_estream_redirect>()

Definition at line 17 of file Defines_bind.hpp.