identities.h
Go to the documentation of this file.
1 // BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE
2 
3 #ifndef AWKWARDPY_IDENTITIES_H_
4 #define AWKWARDPY_IDENTITIES_H_
5 
6 #include <pybind11/pybind11.h>
7 #include "awkward/Identities.h"
8 
9 namespace py = pybind11;
10 namespace ak = awkward;
11 
13 template <typename T>
14 py::tuple
15  identity(const T& self);
16 
19 template <typename T>
20 py::class_<ak::IdentitiesOf<T>>
21  make_IdentitiesOf(const py::handle& m, const std::string& name);
22 
23 #endif // AWKWARDPY_IDENTITIES_H_
Definition: BitMaskedArray.h:15
std::string name(Mapping a, V value)
Definition: datetime_util.h:39
py::tuple identity(const T &self)
Creates a single identity as a Python tuple of integers and strings.
py::class_< ak::IdentitiesOf< T > > make_IdentitiesOf(const py::handle &m, const std::string &name)
Makes Identities32 and Identities64 classes in Python that mirror IdentitiesOf in C++...