 |
helics
3.0.1
|
9 #include "basic_CoreTypes.hpp"
25 std::shared_ptr<const SmallBuffer>
data;
28 dataRecord(
Time recordTime, std::shared_ptr<const SmallBuffer> recordData):
29 time(recordTime),
data(std::move(recordData))
33 unsigned int recordIteration,
34 std::shared_ptr<const SmallBuffer> recordData):
47 const std::string& type_,
48 const std::string& units_):
50 type(type_), units(units_)
56 const std::string& key_,
57 const std::string& type_,
58 const std::string& units_):
60 key(key_), type(type_),
units(units_)
65 const std::string
key;
66 const std::string type;
80 std::vector<std::pair<helics::Time, unsigned int>>
82 std::vector<std::shared_ptr<const SmallBuffer>>
89 std::vector<std::vector<dataRecord>> data_queues;
93 const std::vector<std::shared_ptr<const SmallBuffer>>&
getAllData()
const;
95 const std::shared_ptr<const SmallBuffer>&
getData(
int index)
const;
97 const std::shared_ptr<const SmallBuffer>&
getData(uint32_t* inputIndex)
const;
101 unsigned int iteration,
102 std::shared_ptr<const SmallBuffer> data);
126 const std::string& sourceName,
127 const std::string& stype,
128 const std::string& sunits);
136 const std::string& getInjectionType()
const;
137 const std::string& getInjectionUnits()
const;
140 const std::string& getTargets()
const;
143 bool updateData(
dataRecord&& update,
int index);
144 mutable std::string inputUnits;
145 mutable std::string inputType;
146 mutable std::string sourceTargets;
149 bool checkTypeMatch(
const std::string& type1,
const std::string& type2,
bool strict_match);
151 bool checkUnitMatch(
const std::string& unit1,
const std::string& unit2,
bool strict_match);
TimeRepresentation< count_time< 9 > > Time
Definition: helicsTime.hpp:27
the main namespace for the helics co-simulation library User functions will be in the helics namespac...
Definition: AsyncFedCallInfo.hpp:14
Definition: GlobalFederateId.hpp:128
bool isValidIndex(sizeType testSize, const SizedDataType &vec)
Definition: core-data.hpp:132