![]() |
helics
2.8.1
|
#include <EndpointInfo.hpp>
Public Member Functions | |
| EndpointInfo (global_handle handle, const std::string &key_, const std::string &type_) | |
| std::unique_ptr< Message > | getMessage (Time maxTime) |
| int32_t | availableMessages () const |
| int32_t | queueSize (Time maxTime) const |
| int32_t | queueSizeUpTo (Time maxTime) const |
| void | addMessage (std::unique_ptr< Message > message) |
| bool | updateTimeUpTo (Time newTime) |
| bool | updateTimeInclusive (Time newTime) |
| bool | updateTimeNextIteration (Time newTime) |
| Time | firstMessageTime () const |
| void | clearQueue () |
Public Attributes | |
| const global_handle | id |
| identifier for the handle | |
| const std::string | key |
| name of the endpoint | |
| const std::string | type |
| type of the endpoint | |
| bool | hasFilter {false} |
| indicator that the message has a filter | |
| bool | required {false} |
data class containing the information about an endpoint
|
inline |
constructor from all data
| void helics::EndpointInfo::addMessage | ( | std::unique_ptr< Message > | message | ) |
add a message to the queue
| int32_t helics::EndpointInfo::availableMessages | ( | ) | const |
get the number of messages in the queue up to the specified time
Referenced by helics::FederateState::getQueueSize().
| void helics::EndpointInfo::clearQueue | ( | ) |
clear all the message queues
| Time helics::EndpointInfo::firstMessageTime | ( | ) | const |
get the timestamp of the first message in the queue
get the next message up to the specified time
Referenced by helics::FederateState::receive(), and helics::FederateState::receiveAny().
| int32_t helics::EndpointInfo::queueSize | ( | Time | maxTime | ) | const |
get the number of messages available up to a specific time inclusive
| int32_t helics::EndpointInfo::queueSizeUpTo | ( | Time | maxTime | ) | const |
get the number of messages available prior to a specific time
| bool helics::EndpointInfo::updateTimeInclusive | ( | Time | newTime | ) |
update current data to all new data at newTime
| newTime | the time to move the subscription to |
| bool helics::EndpointInfo::updateTimeNextIteration | ( | Time | newTime | ) |
update current data to get all data through the first iteration at newTime
| newTime | the time to move the subscription to |
| bool helics::EndpointInfo::updateTimeUpTo | ( | Time | newTime | ) |
update current data not including data at the specified time
| newTime | the time to move the subscription to |
1.8.17