IceReportSkipper Class Reference

#include <ArmarXCore/core/util/IceReportSkipper.h>

Public Member Functions

bool checkFrequency (const Ice::Current &c, const std::optional< float > &frequency=std::nullopt)
 checks the frequency and returns true if the minimum required time for the frequency has passed.
 
bool checkFrequency (const std::string &operationName, const std::optional< float > &frequency=std::nullopt)
 
 IceReportSkipper (float maxFrequency)
 

Constructor & Destructor Documentation

◆ IceReportSkipper()

IceReportSkipper ( float maxFrequency)

Member Function Documentation

◆ checkFrequency() [1/2]

bool checkFrequency ( const Ice::Current & c,
const std::optional< float > & frequency = std::nullopt )

checks the frequency and returns true if the minimum required time for the frequency has passed.

Usage:

if(!skipper.checkFrequency())
{
// skip
return;
}
// do your calculations
Parameters
c
frequency
Returns

◆ checkFrequency() [2/2]

bool checkFrequency ( const std::string & operationName,
const std::optional< float > & frequency = std::nullopt )

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