PDI 0.6.1

Data exchange made easy

pdi_fwd.h
1 /*******************************************************************************
2  * Copyright (C) 2015-2019 Commissariat a l'energie atomique et aux energies alternatives (CEA)
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions are met:
7  * * Redistributions of source code must retain the above copyright
8  * notice, this list of conditions and the following disclaimer.
9  * * Redistributions in binary form must reproduce the above copyright
10  * notice, this list of conditions and the following disclaimer in the
11  * documentation and/or other materials provided with the distribution.
12  * * Neither the name of CEA nor the names of its contributors may be used to
13  * endorse or promote products derived from this software without specific
14  * prior written permission.
15  *
16  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22  * THE SOFTWARE.
23  ******************************************************************************/
24 
29 #ifndef PDI_PDI_FWD_H_
30 #define PDI_PDI_FWD_H_
31 
32 #include <memory>
33 
34 #include <pdi.h>
35 
36 
37 namespace spdlog {
38 class logger;
39 }
40 
41 namespace PDI {
42 
46 class Context;
47 
52 class Datatype;
53 
59 
60 typedef std::unique_ptr<Datatype_template> Datatype_template_uptr;
61 
62 typedef std::unique_ptr<Datatype> Datatype_uptr;
63 
68 
71 typedef std::shared_ptr<spdlog::logger> Logger_sptr;
72 
75 class Plugin;
76 
77 template<bool, bool> class Ref_any;
78 
80 
82 
84 
86 
89 enum class Scalar_kind : uint8_t {
90  UNKNOWN,
91  SIGNED,
92  UNSIGNED,
93  FLOAT,
94  ADDRESS
95 };
96 
101 class Expression;
102 
103 }
104 
105 #endif // PDI_PDI_FWD_H_
Definition: expression.h:36
The class PDI plugins should implement.
Definition: plugin.h:42
std::shared_ptr< spdlog::logger > Logger_sptr
A shared pointer to a logger instance.
Definition: pdi_fwd.h:67
A dynamically typed reference to data with automatic memory management and read/write locking semanti...
Definition: pdi_fwd.h:77
Definition: pdi_fwd.h:37
std::unique_ptr< Datatype_template > Datatype_template_uptr
Definition: pdi_fwd.h:58
std::unique_ptr< Datatype > Datatype_uptr
Definition: pdi_fwd.h:62
Scalar_kind
Different possible interpretations for a scalar.
Definition: pdi_fwd.h:89
Definition: data_descriptor.h:39
Definition: datatype_template.h:34
Definition: array_datatype.h:33