Public Member Functions | Public Attributes | List of all members
mf::StatsCount Class Reference

#include <ELmap.h>

Public Member Functions

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 66 of file ELmap.h.

Member Function Documentation

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

Definition at line 85 of file ELmap.cc.

86  {
87  ++n;
88  ++aggregateN;
89 
90  ((1 == n) ? context1 : (2 == n) ? context2 : contextLast) =
91  std::string(context, 0, 16);
92 
93  if (!reactedTo)
94  ignoredFlag = true;
95  }
std::string context1
Definition: ELmap.h:71
std::string string
Definition: nybbler.cc:12
int aggregateN
Definition: ELmap.h:69
std::string context2
Definition: ELmap.h:72
std::string contextLast
Definition: ELmap.h:73
bool ignoredFlag
Definition: ELmap.h:70

Member Data Documentation

int mf::StatsCount::aggregateN {}

Definition at line 69 of file ELmap.h.

std::string mf::StatsCount::context1 {}

Definition at line 71 of file ELmap.h.

std::string mf::StatsCount::context2 {}

Definition at line 72 of file ELmap.h.

std::string mf::StatsCount::contextLast {}

Definition at line 73 of file ELmap.h.

bool mf::StatsCount::ignoredFlag {false}

Definition at line 70 of file ELmap.h.

int mf::StatsCount::n {}

Definition at line 68 of file ELmap.h.


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