 |
helics
3.0.1
|
Go to the documentation of this file.
9 #include "SmallBuffer.hpp"
10 #include "helics/helics-config.h"
48 std::swap(
time, m2.time);
49 std::swap(
flags, m2.flags);
92 virtual std::unique_ptr<Message>
process(std::unique_ptr<Message> message) = 0;
94 virtual std::vector<std::unique_ptr<Message>>
processVector(std::unique_ptr<Message> message)
96 std::vector<std::unique_ptr<Message>> ret;
97 auto res =
process(std::move(message));
99 ret.push_back(std::move(res));
105 std::unique_ptr<Message>
operator()(std::unique_ptr<Message> message)
107 return process(std::move(message));
120 virtual std::unique_ptr<Message>
process(std::unique_ptr<Message> message)
override
131 template<
class sizeType,
class SizedDataType>
134 return ((testSize >= sizeType(0)) && (testSize <
static_cast<sizeType
>(vec.size())));
constexpr Time timeZero
Definition: helicsTime.hpp:31
bool isValid() const noexcept
Definition: core-data.hpp:59
Definition: SmallBuffer.hpp:24
std::int32_t messageID
the messageID for a message
Definition: core-data.hpp:34
void * backReference
back referencing pointer not used by helics
Definition: core-data.hpp:41
std::unique_ptr< Message > operator()(std::unique_ptr< Message > message)
Definition: core-data.hpp:105
virtual ~FilterOperator()=default
TimeRepresentation< count_time< 9 > > Time
Definition: helicsTime.hpp:27
std::string source
the most recent source of the message
Definition: core-data.hpp:37
virtual bool isMessageGenerating() const
Definition: core-data.hpp:111
virtual std::unique_ptr< Message > process(std::unique_ptr< Message > message) override
Definition: core-data.hpp:120
std::string_view to_string() const
Definition: SmallBuffer.hpp:222
std::int32_t counter
indexing counter not used directly by helics
Definition: core-data.hpp:40
std::string original_dest
the original destination of a message
Definition: core-data.hpp:39
std::uint16_t messageValidation
extra field for user object usage, not used by HELICS
Definition: core-data.hpp:33
Time time
the event time the message is sent
Definition: core-data.hpp:31
void clear()
Definition: core-data.hpp:66
void swap(SmallBuffer &sb2) noexcept
Definition: SmallBuffer.hpp:315
std::string original_source
the original source of the message
Definition: core-data.hpp:38
bool empty() const
Definition: SmallBuffer.hpp:306
Definition: core-data.hpp:85
std::uint16_t flags
message flags
Definition: core-data.hpp:32
std::string_view to_string() const
Definition: core-data.hpp:64
the main namespace for the helics co-simulation library User functions will be in the helics namespac...
Definition: AsyncFedCallInfo.hpp:14
void swap(Message &m2) noexcept
Definition: core-data.hpp:46
virtual std::unique_ptr< Message > process(std::unique_ptr< Message > message)=0
virtual std::vector< std::unique_ptr< Message > > processVector(std::unique_ptr< Message > message)
Definition: core-data.hpp:94
NullFilterOperator()=default
Definition: core-data.hpp:116
SmallBuffer data
the data packet for the message
Definition: core-data.hpp:35
std::string dest
the destination of the message
Definition: core-data.hpp:36
Definition: core-data.hpp:29
bool isValidIndex(sizeType testSize, const SizedDataType &vec)
Definition: core-data.hpp:132