-
Notifications
You must be signed in to change notification settings - Fork 139
/
Context.h
84 lines (75 loc) · 2.14 KB
/
Context.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#pragma once
#include <memory>
#include <vector>
#include <DexStore.h>
namespace marianatrench {
class KindFactory;
class FeatureFactory;
class Statistics;
class Options;
class Heuristics;
class ArtificialMethods;
class Methods;
class Fields;
class Positions;
class ControlFlowGraphs;
class Types;
class ClassProperties;
class ClassHierarchies;
class ClassIntervals;
class FieldCache;
class Overrides;
class CallGraph;
class Rules;
class Dependencies;
class Scheduler;
class OriginFactory;
class TransformsFactory;
class UsedKinds;
class ModelGeneratorNameFactory;
class AccessPathFactory;
/**
* Mariana Trench global context.
*/
class Context final {
public:
Context();
Context(const Context&) = delete;
Context(Context&&) noexcept;
Context& operator=(const Context&) = delete;
Context& operator=(Context&&) = delete;
~Context();
const KindFactory* kind_factory;
const FeatureFactory* feature_factory;
const TransformsFactory* transforms_factory;
const ModelGeneratorNameFactory* model_generator_name_factory;
const AccessPathFactory* access_path_factory;
const OriginFactory* origin_factory;
const Heuristics* heuristics;
std::unique_ptr<Statistics> statistics;
std::unique_ptr<Options> options;
std::vector<DexStore> stores;
std::unique_ptr<ArtificialMethods> artificial_methods;
std::unique_ptr<Methods> methods;
std::unique_ptr<Fields> fields;
std::unique_ptr<Positions> positions;
std::unique_ptr<ControlFlowGraphs> control_flow_graphs;
std::unique_ptr<Types> types;
std::unique_ptr<ClassProperties> class_properties;
std::unique_ptr<ClassHierarchies> class_hierarchies;
std::unique_ptr<ClassIntervals> class_intervals;
std::unique_ptr<FieldCache> field_cache;
std::unique_ptr<Overrides> overrides;
std::unique_ptr<CallGraph> call_graph;
std::unique_ptr<Rules> rules;
std::unique_ptr<Dependencies> dependencies;
std::unique_ptr<Scheduler> scheduler;
std::unique_ptr<UsedKinds> used_kinds;
};
} // namespace marianatrench