Go to the documentation of this file.
5 #ifndef UAVCAN_TRANSPORT_OUTGOING_TRANSFER_REGISTRY_HPP_INCLUDED
6 #define UAVCAN_TRANSPORT_OUTGOING_TRANSFER_REGISTRY_HPP_INCLUDED
27 : transfer_type_(0xFF)
31 : data_type_id_(data_type_id)
32 , transfer_type_(transfer_type)
33 , destination_node_id_(destination_node_id)
85 const bool expired = value.
deadline <= ts_;
88 UAVCAN_TRACE(
"OutgoingTransferRegistry",
"Expired %s tid=%i",
89 key.toString().c_str(),
int(value.
tid.
get()));
130 #endif // UAVCAN_TRANSPORT_OUTGOING_TRANSFER_REGISTRY_HPP_INCLUDED
ROSCPP_DECL bool exists(const std::string &service_name, bool print_failure_reason)
DataTypeID getDataTypeID() const
ExistenceCheckingPredicate(DataTypeID dtid, TransferType tt)
DeadlineExpiredPredicate(MonotonicTime ts)
@ TransferTypeServiceResponse
bool operator()(const OutgoingTransferRegistryKey &key, const Value &) const
OutgoingTransferRegistry(IPoolAllocator &allocator)
#define UAVCAN_TRACE(...)
NodeID destination_node_id_
Not applicable for message broadcasting.
OutgoingTransferRegistryKey(DataTypeID data_type_id, TransferType transfer_type, NodeID destination_node_id)
@ TransferTypeMessageBroadcast
OutgoingTransferRegistryKey()
static std::string toString(long x)
bool operator==(const OutgoingTransferRegistryKey &rhs) const
TransferType getTransferType() const
bool operator()(const OutgoingTransferRegistryKey &key, const Value &value) const
Map< OutgoingTransferRegistryKey, Value > map_
static const MonotonicDuration MinEntryLifetime