Turi Create  4.0
unity_global_singleton.hpp
1 /* Copyright © 2017 Apple Inc. All rights reserved.
2  *
3  * Use of this source code is governed by a BSD-3-clause license that can
4  * be found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause
5  */
6 #ifndef TURI_UNITY_GLOBAL_SINGLETON_HPP
7 #define TURI_UNITY_GLOBAL_SINGLETON_HPP
8 
9 #include <memory>
10 #include <model_server/lib/variant.hpp>
11 
12 namespace turi {
13 class toolkit_function_registry;
14 class toolkit_class_registry;
15 class unity_global;
16 
17 
18 /**
19  * Creates the unity_global singleton, passing in the arguments into the
20  * unity_global constructor
21  */
22 void create_unity_global_singleton(toolkit_function_registry* _toolkit_functions,
23  toolkit_class_registry* _classes);
24 
25 /**
26  * Gets a pointer to the unity global singleton
27  */
28 std::shared_ptr<unity_global> get_unity_global_singleton();
29 
30 
31 }
32 #endif // TURI_UNITY_GLOBAL_SINGLETON_HPP
std::shared_ptr< unity_global > get_unity_global_singleton()
void create_unity_global_singleton(toolkit_function_registry *_toolkit_functions, toolkit_class_registry *_classes)