MADARA
3.1.8
Main Page
Namespaces
Classes
Files
File List
File Members
CounterFilter.h
Go to the documentation of this file.
1
2
3
#ifndef _MADARA_FILTERS_COUNTER_FILTER_H_
4
#define _MADARA_FILTERS_COUNTER_FILTER_H_
5
13
#include <string>
14
#include <vector>
15
#include <map>
16
#include <list>
17
18
#include "ace/High_Res_Timer.h"
19
20
#include "
madara/knowledge/KnowledgeRecord.h
"
21
#include "
madara/knowledge/Functions.h
"
22
#include "
madara/utility/stdint.h
"
23
#include "madara/MADARA_export.h"
24
#include "
madara/transport/TransportContext.h
"
25
#include "
madara/knowledge/ExternFunctionVariables.h
"
26
#include "
madara/knowledge/containers/Integer.h
"
27
28
#include "
AggregateFilter.h
"
29
30
namespace
madara
31
{
32
namespace
filters
33
{
37
class
MADARA_Export
CounterFilter
:
public
AggregateFilter
38
{
39
public
:
43
CounterFilter
();
44
48
virtual
~
CounterFilter
();
49
56
virtual
void
filter (
knowledge::KnowledgeMap
& records,
57
const
transport::TransportContext
& transport_context,
58
knowledge::Variables
& vars);
59
64
inline
knowledge::KnowledgeRecord::Integer
get_count ();
65
71
inline
knowledge::KnowledgeRecord::Integer
get_elapsed ();
72
77
inline
double
get_throughput ();
78
79
protected
:
80
84
bool
initialized_
;
85
89
knowledge::KnowledgeRecord::Integer
packets_
;
90
94
knowledge::KnowledgeRecord::Integer
first_message_
;
95
99
knowledge::KnowledgeRecord::Integer
last_message_
;
100
};
101
}
102
}
103
104
#include "
CounterFilter.inl
"
105
106
#endif // _MADARA_FILTERS_COUNTER_FILTER_H_
Functions.h
AggregateFilter.h
KnowledgeRecord.h
madara::filters::AggregateFilter
Abstract base class for implementing aggregate record filters via a functor interface.
Definition:
AggregateFilter.h:34
madara::knowledge::KnowledgeRecord::Integer
int64_t Integer
Definition:
KnowledgeRecord.h:103
CounterFilter.inl
TransportContext.h
madara::filters::CounterFilter::last_message_
knowledge::KnowledgeRecord::Integer last_message_
The time of the last clear of the peer_list.
Definition:
CounterFilter.h:99
madara::filters::CounterFilter::first_message_
knowledge::KnowledgeRecord::Integer first_message_
The time to keep record of a peer.
Definition:
CounterFilter.h:94
madara::transport::TransportContext
Provides context about the transport.
Definition:
TransportContext.h:19
ExternFunctionVariables.h
madara::filters::CounterFilter
Filter for discovering neighboring peers.
Definition:
CounterFilter.h:37
madara::filters::CounterFilter::initialized_
bool initialized_
Tracks if the first timer has been initialized.
Definition:
CounterFilter.h:84
madara::knowledge::KnowledgeMap
::std::map< std::string, KnowledgeRecord > KnowledgeMap
Definition:
KnowledgeRecord.h:1457
Integer.h
madara::filters::CounterFilter::packets_
knowledge::KnowledgeRecord::Integer packets_
A map of discovered peers.
Definition:
CounterFilter.h:89
stdint.h
madara
Copyright (c) 2015 Carnegie Mellon University.
Definition:
AggregateFilter.h:30
madara::knowledge::Variables
Provides an interface for external functions into the MADARA KaRL variable settings.
Definition:
ExternFunctionVariables.h:51
include
madara
filters
CounterFilter.h
Generated on Wed May 9 2018 18:17:14 for MADARA by
1.8.11