Руслан Урядинский / libuavcan

Dependents:   UAVCAN UAVCAN_Subscriber

Embed: (wiki syntax)

« Back to documentation index

TransferPerfCounter Class Reference

TransferPerfCounter Class Reference

The class is declared noncopyable for two reasons:

  • to prevent accidental pass-by-value into a mutator
  • to make the addresses of the counters fixed and exposable to the user of the library.
More...

#include <perf_counter.hpp>

Inherits uavcan::Noncopyable, and uavcan::Noncopyable.

Public Member Functions

const uint64_t & getTxTransferCount () const
 Returned references are guaranteed to be valid as long as this instance of Node exists.

Detailed Description

The class is declared noncopyable for two reasons:

  • to prevent accidental pass-by-value into a mutator
  • to make the addresses of the counters fixed and exposable to the user of the library.

Definition at line 17 of file perf_counter.hpp.


Member Function Documentation

const uint64_t& getTxTransferCount (  ) const

Returned references are guaranteed to be valid as long as this instance of Node exists.

This is enforced by virtue of the class being Noncopyable.

Definition at line 63 of file perf_counter.hpp.