PDI 1.3.0-alpha.2021-06-18.f8a290a

the PDI data interface

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 
56 class Array_datatype;
57 
60 class Pointer_datatype;
61 
64 class Record_datatype;
65 
68 class Scalar_datatype;
69 
75 
76 typedef std::unique_ptr<Datatype_template> Datatype_template_uptr;
77 
78 typedef std::unique_ptr<Datatype> Datatype_uptr;
79 
84 
87 typedef std::shared_ptr<spdlog::logger> Logger_sptr;
88 
91 class Plugin;
92 
93 template<bool, bool> class Ref_any;
94 
96 
98 
100 
102 
105 enum class Scalar_kind : uint8_t {
106  UNKNOWN,
107  SIGNED,
108  UNSIGNED,
109  FLOAT
110 };
111 
116 class Expression;
117 
118 }
119 
120 #endif // PDI_PDI_FWD_H_
Definition: expression.h:41
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:83
A dynamically typed reference to data with automatic memory management and read/write locking semanti...
Definition: pdi_fwd.h:93
Definition: pdi_fwd.h:37
std::unique_ptr< Datatype_template > Datatype_template_uptr
Definition: pdi_fwd.h:74
std::unique_ptr< Datatype > Datatype_uptr
Definition: pdi_fwd.h:78
Scalar_kind
Different possible interpretations for a scalar.
Definition: pdi_fwd.h:105
Definition: data_descriptor.h:39
Definition: datatype_template.h:34
Definition: array_datatype.h:37