Connect++ 0.1
A fast, readable connection prover for first-order logic.
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Interval Class Reference

Simple class to help you count intervals. More...

#include <Interval.hpp>

Public Member Functions

 Interval (size_t l)
 
bool tick ()
 

Detailed Description

Simple class to help you count intervals.

There is a count and a limit. Each tick increases the count, and returns true plus resets the count when you reach the limit. (Otherwise returns false.)

Constructor & Destructor Documentation

◆ Interval()

Interval::Interval ( size_t  l)
inline

Parameter sets the limit.

Member Function Documentation

◆ tick()

bool Interval::tick ( )
inline

Advance the count by one and indicate/reset when you reach the limit.


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