Myra Canyon  v0.0.1-768
network control
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Myra::FlowStats Class Referencefinal

Statistics used by Myra::Flow. More...

#include "FlowStats.hpp"

Public Member Functions

 ~FlowStats (void)
 Destructor. More...
 
 FlowStats (void)
 Constructor. More...
 
FlowStatsoperator+= (const FlowStats &rhs)
 
bool empty (void) const
 
FlowStatsclear (void)
 Clear all numeric stats. Does not modify the timestamps. More...
 
STAT total_number_of_packets (void) const
 
STAT total_number_of_bytes (void) const
 

Public Attributes

TP first_seen
 when the flow was first seen More...
 
TP last_seen
 when the flow was last seen More...
 
STAT packets [DIR_TOTAL]
 number of packets More...
 
STAT bytes [DIR_TOTAL]
 number of bytes (L3 and above) More...
 

Static Public Attributes

static constexpr size_t DIR_0 = 0
 
static constexpr size_t DIR_1 = 1
 
static constexpr size_t DIR_TOTAL = 2
 

Detailed Description

Statistics used by Myra::Flow.

Constructor & Destructor Documentation

Myra::FlowStats::~FlowStats ( void  )

Destructor.

Myra::FlowStats::FlowStats ( void  )

Constructor.

Here is the call graph for this function:

Member Function Documentation

Myra::FlowStats & Myra::FlowStats::clear ( void  )

Clear all numeric stats. Does not modify the timestamps.

Here is the caller graph for this function:

bool Myra::FlowStats::empty ( void  ) const
inline

Here is the caller graph for this function:

Myra::FlowStats & Myra::FlowStats::operator+= ( const FlowStats rhs)
STAT Myra::FlowStats::total_number_of_bytes ( void  ) const
inline

Here is the caller graph for this function:

STAT Myra::FlowStats::total_number_of_packets ( void  ) const
inline

Here is the caller graph for this function:

Member Data Documentation

STAT Myra::FlowStats::bytes[DIR_TOTAL]

number of bytes (L3 and above)

constexpr size_t Myra::FlowStats::DIR_0 = 0
static
constexpr size_t Myra::FlowStats::DIR_1 = 1
static
constexpr size_t Myra::FlowStats::DIR_TOTAL = 2
static
TP Myra::FlowStats::first_seen

when the flow was first seen

TP Myra::FlowStats::last_seen

when the flow was last seen

STAT Myra::FlowStats::packets[DIR_TOTAL]

number of packets


The documentation for this class was generated from the following files: