Awkward Array: include/awkward/python/types.h Source File

Loading...
Searching...
No Matches
types.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_TYPES_H_
4#define AWKWARDPY_TYPES_H_
5
6#include <pybind11/pybind11.h>
7
8#include "awkward/type/Type.h"
9#include "awkward/type/ArrayType.h"
10#include "awkward/type/ListType.h"
11#include "awkward/type/OptionType.h"
12#include "awkward/type/PrimitiveType.h"
13#include "awkward/type/RecordType.h"
14#include "awkward/type/RegularType.h"
15#include "awkward/type/UnionType.h"
16#include "awkward/type/UnknownType.h"
17#include "awkward/python/util.h"
18
19namespace py = pybind11;
20namespace ak = awkward;
21
22py::class_<ak::Type, std::shared_ptr<ak::Type>>
23make_Type(const py::handle& m, const std::string& name);
24
25py::class_<ak::ArrayType, std::shared_ptr<ak::ArrayType>, ak::Type>
26make_ArrayType(const py::handle& m, const std::string& name);
27
28py::class_<ak::ListType, std::shared_ptr<ak::ListType>, ak::Type>
29make_ListType(const py::handle& m, const std::string& name);
30
31py::class_<ak::OptionType, std::shared_ptr<ak::OptionType>, ak::Type>
32make_OptionType(const py::handle& m, const std::string& name);
33
34py::class_<ak::PrimitiveType, std::shared_ptr<ak::PrimitiveType>, ak::Type>
35make_PrimitiveType(const py::handle& m, const std::string& name);
36
37py::class_<ak::RecordType, std::shared_ptr<ak::RecordType>, ak::Type>
38make_RecordType(const py::handle& m, const std::string& name);
39
40py::class_<ak::RegularType, std::shared_ptr<ak::RegularType>, ak::Type>
41make_RegularType(const py::handle& m, const std::string& name);
42
43py::class_<ak::UnionType, std::shared_ptr<ak::UnionType>, ak::Type>
44make_UnionType(const py::handle& m, const std::string& name);
45
46py::class_<ak::UnknownType, std::shared_ptr<ak::UnknownType>, ak::Type>
47make_UnknownType(const py::handle& m, const std::string& name);
48
49#endif // AWKWARDPY_TYPES_H_
ArrayType.h
ListType.h
OptionType.h
PrimitiveType.h
RecordType.h
RegularType.h
Type.h
UnionType.h
UnknownType.h
awkward::Type
Abstract superclass of all high level types (flat hierarchy).
Definition: Type.h:23
awkward
Definition: BitMaskedArray.h:15
util.h
make_OptionType
py::class_< ak::OptionType, std::shared_ptr< ak::OptionType >, ak::Type > make_OptionType(const py::handle &m, const std::string &name)
make_UnknownType
py::class_< ak::UnknownType, std::shared_ptr< ak::UnknownType >, ak::Type > make_UnknownType(const py::handle &m, const std::string &name)
make_PrimitiveType
py::class_< ak::PrimitiveType, std::shared_ptr< ak::PrimitiveType >, ak::Type > make_PrimitiveType(const py::handle &m, const std::string &name)
make_ArrayType
py::class_< ak::ArrayType, std::shared_ptr< ak::ArrayType >, ak::Type > make_ArrayType(const py::handle &m, const std::string &name)
make_ListType
py::class_< ak::ListType, std::shared_ptr< ak::ListType >, ak::Type > make_ListType(const py::handle &m, const std::string &name)
make_Type
py::class_< ak::Type, std::shared_ptr< ak::Type > > make_Type(const py::handle &m, const std::string &name)
make_RecordType
py::class_< ak::RecordType, std::shared_ptr< ak::RecordType >, ak::Type > make_RecordType(const py::handle &m, const std::string &name)
make_UnionType
py::class_< ak::UnionType, std::shared_ptr< ak::UnionType >, ak::Type > make_UnionType(const py::handle &m, const std::string &name)
make_RegularType
py::class_< ak::RegularType, std::shared_ptr< ak::RegularType >, ak::Type > make_RegularType(const py::handle &m, const std::string &name)