CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
26 namespace catapult {
namespace timesync {
namespace filters {
Immutable wrapper for basic types, to provide some type-safety.
Definition: BaseValue.h:100
constexpr double Alpha
Value that indicates the percentage of the samples is discarded.
Definition: filter_constants.h:40
std::vector< SynchronizationFilter > m_filters
Definition: AggregateSynchronizationFilter.h:43
Aggregate synchronization filter.
Definition: AggregateSynchronizationFilter.h:29
std::set< TimeSynchronizationSample > TimeSynchronizationSamples
A set of time synchronization samples.
Definition: TimeSynchronizationSample.h:83
void map_erase_if(TMap &map, TPredicate predicate)
Removes all entries from map that fulfill the given predicate.
Definition: ContainerHelpers.h:27
AggregateSynchronizationFilter(const std::vector< SynchronizationFilter > &filters)
Creates an aggregate synchronization filter around filters.
Definition: AggregateSynchronizationFilter.cpp:27
size_t size() const
Gets the number of filters.
Definition: AggregateSynchronizationFilter.cpp:31
Definition: AddressExtractionExtension.cpp:28
void operator()(TimeSynchronizationSamples &samples, NodeAge nodeAge)
Filters samples according to nodeAge.
Definition: AggregateSynchronizationFilter.cpp:35