Realm
A distributed, event-based tasking library
Loading...
Searching...
No Matches
python_source.h
Go to the documentation of this file.
1/*
2 * Copyright 2025 Stanford University, NVIDIA Corporation
3 * SPDX-License-Identifier: Apache-2.0
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17
18#ifndef REALM_PYTHON_SOURCE_H
19#define REALM_PYTHON_SOURCE_H
20
21#include "realm/codedesc.h"
22
23namespace Realm {
24
26 public:
27 PythonSourceImplementation(const std::string &_module_name,
28 const std::vector<std::string> &_function_name);
29 PythonSourceImplementation(const std::string &_module_name,
30 const std::string &_function_name);
31
33
34 virtual CodeImplementation *clone(void) const;
35
36 virtual bool is_portable(void) const;
37
38 template <typename S>
39 bool serialize(S &serializer) const;
40
41 template <typename S>
42 static CodeImplementation *deserialize_new(S &deserializer);
43
44 protected:
46
50
51 virtual void print(std::ostream &os) const;
52
53 public:
54 std::string module_name;
55 std::vector<std::string> function_name;
56 };
57
58}; // namespace Realm
59
60#include "realm/python/python_source.inl"
61
62#endif
Definition codedesc.h:317
Definition python_source.h:25
static Serialization::PolymorphicSerdezSubclass< CodeImplementation, PythonSourceImplementation > serdez_subclass
Definition python_source.h:49
bool serialize(S &serializer) const
std::vector< std::string > function_name
Definition python_source.h:55
PythonSourceImplementation(const std::string &_module_name, const std::string &_function_name)
virtual CodeImplementation * clone(void) const
static CodeImplementation * deserialize_new(S &deserializer)
PythonSourceImplementation(const std::string &_module_name, const std::vector< std::string > &_function_name)
std::string module_name
Definition python_source.h:54
virtual void print(std::ostream &os) const
virtual bool is_portable(void) const
#define REALM_PUBLIC_API
Definition compiler_support.h:217
Definition activemsg.h:38