src
Public Member Functions | List of all members
re2c::counter_t< num_t > Class Template Reference

#include <label.h>

Public Member Functions

 counter_t ()
 
num_t next ()
 
void reset ()
 

Detailed Description

template<typename num_t>
class re2c::counter_t< num_t >

Definition at line 10 of file label.h.

Constructor & Destructor Documentation

template<typename num_t>
re2c::counter_t< num_t >::counter_t ( )
inline

Definition at line 12 of file counter.h.

13  : num ()
14  {}

Member Function Documentation

template<typename num_t>
num_t re2c::counter_t< num_t >::next ( )
inline

Definition at line 15 of file counter.h.

16  {
17  num_t n = num;
18  num.inc ();
19  return n;
20  }
template<typename num_t>
void re2c::counter_t< num_t >::reset ( )
inline

Definition at line 21 of file counter.h.

22  {
23  num = num_t ();
24  }

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