kim-api-v2  2.0.0+912e79a.GNU
An Application Programming Interface (API) for the Knowledgebase of Interatomic Models (KIM).
KIM_FunctionTypes.hpp
Go to the documentation of this file.
1 //
2 // CDDL HEADER START
3 //
4 // The contents of this file are subject to the terms of the Common Development
5 // and Distribution License Version 1.0 (the "License").
6 //
7 // You can obtain a copy of the license at
8 // http://www.opensource.org/licenses/CDDL-1.0. See the License for the
9 // specific language governing permissions and limitations under the License.
10 //
11 // When distributing Covered Code, include this CDDL HEADER in each file and
12 // include the License file in a prominent location with the name LICENSE.CDDL.
13 // If applicable, add the following below this CDDL HEADER, with the fields
14 // enclosed by brackets "[]" replaced with your own identifying information:
15 //
16 // Portions Copyright (c) [yyyy] [name of copyright owner]. All rights reserved.
17 //
18 // CDDL HEADER END
19 //
20 
21 //
22 // Copyright (c) 2016--2019, Regents of the University of Minnesota.
23 // All rights reserved.
24 //
25 // Contributors:
26 // Ryan S. Elliott
27 //
28 
29 //
30 // Release: This file is part of the kim-api-v2-2.0.0 package.
31 //
32 
33 
34 #ifndef KIM_FUNCTION_TYPES_HPP_
35 #define KIM_FUNCTION_TYPES_HPP_
36 
37 namespace KIM
38 {
39 // Forward declarations
40 class LengthUnit;
41 class EnergyUnit;
42 class ChargeUnit;
43 class TemperatureUnit;
44 class TimeUnit;
45 class ModelCreate;
46 class ModelDriverCreate;
47 class ModelCompute;
48 class ModelExtension;
49 class ModelComputeArgumentsCreate;
50 class ModelComputeArguments;
51 class ModelRefresh;
52 class ModelWriteParameterizedModel;
53 class ModelComputeArgumentsDestroy;
54 class ModelDestroy;
55 
61 typedef void(Function)(void); // Generic function pointer
62 
69 typedef int ModelCreateFunction(ModelCreate * const modelCreate,
70  LengthUnit const requestedLengthUnit,
71  EnergyUnit const requestedEnergyUnit,
72  ChargeUnit const requestedChargeUnit,
73  TemperatureUnit const requestedTemperatureUnit,
74  TimeUnit const requestedTimeUnit);
75 
82 typedef int
83 ModelDriverCreateFunction(ModelDriverCreate * const modelDriverCreate,
84  LengthUnit const requestedLengthUnit,
85  EnergyUnit const requestedEnergyUnit,
86  ChargeUnit const requestedChargeUnit,
87  TemperatureUnit const requestedTemperatureUnit,
88  TimeUnit const requestedTimeUnit);
89 
97  ModelCompute const * const modelCompute,
98  ModelComputeArgumentsCreate * const modelComputeArgumentsCreate);
99 
106  ModelCompute const * const modelCompute,
107  ModelComputeArguments const * const modelComputeArgumentsCreate);
108 
114 typedef int GetNeighborListFunction(void * const dataObject,
115  int const numberOfNeighborLists,
116  double const * const cutoffs,
117  int const neighborListIndex,
118  int const particleNumber,
119  int * const numberOfNeighbors,
120  int const ** const neighborsOfParticle);
121 
128 typedef int ProcessDEDrTermFunction(void * const dataObject,
129  double const de,
130  double const r,
131  double const * const dx,
132  int const i,
133  int const j);
134 
141 typedef int ProcessD2EDr2TermFunction(void * const dataObject,
142  double const de,
143  double const * const r,
144  double const * const dx,
145  int const * const i,
146  int const * const j);
147 
153 typedef int ModelExtensionFunction(ModelExtension * const modelExtension,
154  void * const extensionStructure);
155 
161 typedef int ModelRefreshFunction(ModelRefresh * const modelRefresh);
162 
169  ModelWriteParameterizedModel const * const modelWriteParameterizedModel);
170 
178  ModelCompute const * const modelCompute,
179  ModelComputeArgumentsDestroy * const modelComputeArgumentsDestroy);
180 
186 typedef int ModelDestroyFunction(ModelDestroy * const modelDestroy);
187 } // namespace KIM
188 
189 #endif // KIM_FUNCTION_TYPES_HPP_
void() Function(void)
Generic function type.
int ModelWriteParameterizedModelFunction(ModelWriteParameterizedModel const *const modelWriteParameterizedModel)
Prototype for MODEL_ROUTINE_NAME::WriteParameterizedModel routine.
An Extensible Enumeration for the ChargeUnit's supported by the KIM API.
An Extensible Enumeration for the LengthUnit's supported by the KIM API.
Provides the interface to a KIM API Model object for use by models within their MODEL_ROUTINE_NAME::E...
Provides the interface to a KIM API Model object for use by models within their MODEL_ROUTINE_NAME::C...
Provides the interface to a KIM API ComputeArguments object for use by models within their MODEL_ROUT...
Provides the interface to a KIM API ComputeArguments object for use by models within their MODEL_ROUT...
An Extensible Enumeration for the EnergyUnit's supported by the KIM API.
int ModelDriverCreateFunction(ModelDriverCreate *const modelDriverCreate, LengthUnit const requestedLengthUnit, EnergyUnit const requestedEnergyUnit, ChargeUnit const requestedChargeUnit, TemperatureUnit const requestedTemperatureUnit, TimeUnit const requestedTimeUnit)
Prototype for MODEL_ROUTINE_NAME::Create routine.
Provides the interface to a KIM API Model object for use by models within their MODEL_ROUTINE_NAME::C...
int ModelCreateFunction(ModelCreate *const modelCreate, LengthUnit const requestedLengthUnit, EnergyUnit const requestedEnergyUnit, ChargeUnit const requestedChargeUnit, TemperatureUnit const requestedTemperatureUnit, TimeUnit const requestedTimeUnit)
Prototype for MODEL_ROUTINE_NAME::Create routine.
int ModelComputeArgumentsCreateFunction(ModelCompute const *const modelCompute, ModelComputeArgumentsCreate *const modelComputeArgumentsCreate)
Prototype for MODEL_ROUTINE_NAME::ComputeArgumentsCreate routine.
int ModelExtensionFunction(ModelExtension *const modelExtension, void *const extensionStructure)
Prototype for MODEL_ROUTINE_NAME::Extension routine.
Provides the interface to a KIM API Model object for use by models within their MODEL_ROUTINE_NAME::W...
An Extensible Enumeration for the TimeUnit's supported by the KIM API.
int ProcessD2EDr2TermFunction(void *const dataObject, double const de, double const *const r, double const *const dx, int const *const i, int const *const j)
Prototype for COMPUTE_CALLBACK_NAME::ProcessD2EDr2Term routine.
Provides the interface to a KIM API ComputeArguments object for use by models within their MODEL_ROUT...
Provides the interface to a KIM API Model object for use by models within their MODEL_ROUTINE_NAME::C...
int ModelDestroyFunction(ModelDestroy *const modelDestroy)
Prototype for MODEL_ROUTINE_NAME::Destroy routine.
Provides the interface to a KIM API Model object for use by models within their MODEL_ROUTINE_NAME::D...
Provides the interface to a KIM API Model object for use by models within their MODEL_ROUTINE_NAME::R...
int ProcessDEDrTermFunction(void *const dataObject, double const de, double const r, double const *const dx, int const i, int const j)
Prototype for COMPUTE_CALLBACK_NAME::ProcessDEDrTerm routine.
An Extensible Enumeration for the TemperatureUnit's supported by the KIM API.
int GetNeighborListFunction(void *const dataObject, int const numberOfNeighborLists, double const *const cutoffs, int const neighborListIndex, int const particleNumber, int *const numberOfNeighbors, int const **const neighborsOfParticle)
Prototype for COMPUTE_CALLBACK_NAME::GetNeighborList routine.
int ModelComputeArgumentsDestroyFunction(ModelCompute const *const modelCompute, ModelComputeArgumentsDestroy *const modelComputeArgumentsDestroy)
Prototype for MODEL_ROUTINE_NAME::ComputeArgumentsDestroy routine.
int ModelRefreshFunction(ModelRefresh *const modelRefresh)
Prototype for MODEL_ROUTINE_NAME::Refresh routine.
int ModelComputeFunction(ModelCompute const *const modelCompute, ModelComputeArguments const *const modelComputeArgumentsCreate)
Prototype for MODEL_ROUTINE_NAME::Compute routine.