helics 3.7.0
Loading...
Searching...
No Matches
api-data.h
Go to the documentation of this file.
1/*
2Copyright (c) 2017-2026,
3Battelle Memorial Institute; Lawrence Livermore National Security, LLC; Alliance for Energy Innovation LLC. See the top-level NOTICE for
4additional details. All rights reserved.
5SPDX-License-Identifier: BSD-3-Clause
6*/
7
8#ifndef HELICS_API_DATA_H_
9#define HELICS_API_DATA_H_
10
16#include "../helics_enums.h"
17
18#include <stdint.h>
19#ifdef __cplusplus
20extern "C" {
21#endif
22
26typedef void* HelicsInput;
27// typedef void* helics_input;
31typedef void* HelicsPublication;
32// typedef void* helics_publication;
36// typedef void* helics_endpoint;
37typedef void* HelicsEndpoint;
38
42// typedef void* helics_filter;
43typedef void* HelicsFilter;
44
48typedef void* HelicsTranslator;
49
53// typedef void* helics_core;
54typedef void* HelicsCore;
55
59// typedef void* helics_broker;
60typedef void* HelicsBroker;
64// typedef void* helics_federate;
65typedef void* HelicsFederate;
66
70// typedef void* helics_federate;
71typedef void* HelicsApp;
72
76// typedef void* helics_federate_info;
77typedef void* HelicsFederateInfo;
78
82// typedef void* helics_query;
83typedef void* HelicsQuery;
84
88typedef void* HelicsDataBuffer;
89
93// typedef void* helics_query_buffer;
94typedef void* HelicsQueryBuffer;
95
99// typedef void* helics_message;
100typedef void* HelicsMessage;
101
105// typedef double helics_time;
106typedef double HelicsTime;
107
111const HelicsTime HELICS_TIME_BIGTIME = HELICS_BIG_NUMBER;
112const HelicsTime HELICS_TIME_MAXTIME = HELICS_MAX_TIME_VALUE;
114 HELICS_TERMINATION_TIME_VALUE;
119// typedef int helics_bool;
120typedef int HelicsBool;
121
135
145
164
168typedef struct HelicsComplex {
169 double real;
170 double imag;
172
179typedef struct HelicsError {
180 int32_t error_code;
181 const char* message;
183
184// typedef helics_error HelicsError;
185
186#ifdef __cplusplus
187} /* end of extern "C" { */
188#endif
189
190#endif
void * HelicsDataBuffer
Definition api-data.h:88
void * HelicsFederateInfo
Definition api-data.h:77
void * HelicsInput
Definition api-data.h:26
void * HelicsCore
Definition api-data.h:54
const HelicsTime HELICS_TIME_EPSILON
Definition api-data.h:109
void * HelicsPublication
Definition api-data.h:31
const HelicsTime HELICS_TIME_BIGTIME
Definition api-data.h:111
void * HelicsEndpoint
Definition api-data.h:37
void * HelicsFilter
Definition api-data.h:43
double HelicsTime
Definition api-data.h:106
void * HelicsApp
Definition api-data.h:71
HelicsIterationResult
Definition api-data.h:139
@ HELICS_ITERATION_RESULT_ITERATING
Definition api-data.h:143
@ HELICS_ITERATION_RESULT_HALTED
Definition api-data.h:142
@ HELICS_ITERATION_RESULT_NEXT_STEP
Definition api-data.h:140
@ HELICS_ITERATION_RESULT_ERROR
Definition api-data.h:141
void * HelicsTranslator
Definition api-data.h:48
const HelicsTime HELICS_TIME_TERMINATION
Definition api-data.h:113
void * HelicsMessage
Definition api-data.h:100
int HelicsBool
Definition api-data.h:120
void * HelicsQuery
Definition api-data.h:83
HelicsFederateState
Definition api-data.h:149
@ HELICS_STATE_PENDING_INIT
Definition api-data.h:157
@ HELICS_STATE_PENDING_ITERATIVE_TIME
Definition api-data.h:160
@ HELICS_STATE_EXECUTION
Definition api-data.h:153
@ HELICS_STATE_INITIALIZATION
Definition api-data.h:152
@ HELICS_STATE_FINALIZE
Definition api-data.h:154
@ HELICS_STATE_ERROR
Definition api-data.h:155
@ HELICS_STATE_PENDING_FINALIZE
Definition api-data.h:161
@ HELICS_STATE_PENDING_TIME
Definition api-data.h:159
@ HELICS_STATE_STARTUP
Definition api-data.h:151
@ HELICS_STATE_PENDING_EXEC
Definition api-data.h:158
@ HELICS_STATE_FINISHED
Definition api-data.h:162
HelicsIterationRequest
Definition api-data.h:128
@ HELICS_ITERATION_REQUEST_FORCE_ITERATION
Definition api-data.h:130
@ HELICS_ITERATION_REQUEST_ERROR
Definition api-data.h:133
@ HELICS_ITERATION_REQUEST_HALT_OPERATIONS
Definition api-data.h:132
@ HELICS_ITERATION_REQUEST_ITERATE_IF_NEEDED
Definition api-data.h:131
@ HELICS_ITERATION_REQUEST_NO_ITERATION
Definition api-data.h:129
void * HelicsFederate
Definition api-data.h:65
const HelicsBool HELICS_FALSE
Definition api-data.h:123
const HelicsTime HELICS_TIME_MAXTIME
Definition api-data.h:112
void * HelicsQueryBuffer
Definition api-data.h:94
const HelicsTime HELICS_TIME_INVALID
Definition api-data.h:110
const HelicsBool HELICS_TRUE
Definition api-data.h:122
const HelicsTime HELICS_TIME_ZERO
Definition api-data.h:108
void * HelicsBroker
Definition api-data.h:60
Definition api-data.h:168
Definition api-data.h:179
const char * message
Definition api-data.h:181
int32_t error_code
Definition api-data.h:180