Macros | Functions
pybackend.cpp File Reference
#include <pybind11/pybind11.h>
#include <pybind11/operators.h>
#include <pybind11/stl.h>
#include <pybind11/stl_bind.h>
#include <pybind11/functional.h>
#include "core/options.h"
#include "core/info.h"
#include "../src/backend.h"
#include "pybackend_extras.h"
#include "../../third-party/stb_image_write.h"
#include <sstream>
#include <vector>
Include dependency graph for pybackend.cpp:

Go to the source code of this file.

Macros

#define BIND_RAW_RO_ARRAY(class, name, type, size)   #name, [](const class &c) -> const std::array<type, size>& { return reinterpret_cast<const std::array<type, size>&>(c.name); }
 
#define BIND_RAW_RW_ARRAY(class, name, type, size)   BIND_RAW_RO_ARRAY(class, name, type, size), [](class &c, const std::array<type, size> &arr) { for (int i=0; i<size; ++i) c.name[i] = arr[i]; }
 
#define NAME   pybackend2
 
#define SNAME   "pybackend2"
 

Functions

 PYBIND11_MODULE (NAME, m)
 

Macro Definition Documentation

#define BIND_RAW_RO_ARRAY (   class,
  name,
  type,
  size 
)    #name, [](const class &c) -> const std::array<type, size>& { return reinterpret_cast<const std::array<type, size>&>(c.name); }
#define BIND_RAW_RW_ARRAY (   class,
  name,
  type,
  size 
)    BIND_RAW_RO_ARRAY(class, name, type, size), [](class &c, const std::array<type, size> &arr) { for (int i=0; i<size; ++i) c.name[i] = arr[i]; }
#define NAME   pybackend2

Definition at line 26 of file pybackend.cpp.

#define SNAME   "pybackend2"

Definition at line 27 of file pybackend.cpp.

Function Documentation

PYBIND11_MODULE ( NAME  ,
m   
)

Definition at line 39 of file pybackend.cpp.



librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:28