Public Member Functions | Public Attributes | List of all members
mf::service::ELdestination::StatsCount Struct Reference

#include <ELdestination.h>

Public Member Functions

 ~StatsCount ()
 
 StatsCount ()
 
void add (std::string const &context, bool reactedTo)
 

Public Attributes

int n_ {}
 
int aggregateN_ {}
 
bool ignoredFlag_ {false}
 
std::string context1_ {}
 
std::string context2_ {}
 
std::string contextLast_ {}
 

Detailed Description

Definition at line 82 of file ELdestination.h.

Constructor & Destructor Documentation

mf::service::ELdestination::StatsCount::~StatsCount ( )
default
mf::service::ELdestination::StatsCount::StatsCount ( )

Member Function Documentation

void mf::service::ELdestination::StatsCount::add ( std::string const &  context,
bool  reactedTo 
)

Definition at line 203 of file ELdestination.cc.

204  {
205  if (reactedTo) {
206  ++n_;
207  }
208  ++aggregateN_;
209  ((n_ == 1) ? context1_ : (n_ == 2) ? context2_ : contextLast_) =
210  string(context, 0, 16);
211  if (!reactedTo) {
212  ignoredFlag_ = true;
213  }
214  }

Member Data Documentation

int mf::service::ELdestination::StatsCount::aggregateN_ {}

Definition at line 88 of file ELdestination.h.

std::string mf::service::ELdestination::StatsCount::context1_ {}

Definition at line 90 of file ELdestination.h.

std::string mf::service::ELdestination::StatsCount::context2_ {}

Definition at line 91 of file ELdestination.h.

std::string mf::service::ELdestination::StatsCount::contextLast_ {}

Definition at line 92 of file ELdestination.h.

bool mf::service::ELdestination::StatsCount::ignoredFlag_ {false}

Definition at line 89 of file ELdestination.h.

int mf::service::ELdestination::StatsCount::n_ {}

Definition at line 87 of file ELdestination.h.


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