src
Public Member Functions | Public Attributes | List of all members
re2c::local_increment_t< counter_t > Struct Template Reference

#include <local_increment.h>

Collaboration diagram for re2c::local_increment_t< counter_t >:
Collaboration graph
[legend]

Public Member Functions

 local_increment_t (counter_t &c)
 
 ~local_increment_t ()
 

Public Attributes

counter_tcounter
 

Detailed Description

template<typename counter_t>
struct re2c::local_increment_t< counter_t >

Definition at line 8 of file local_increment.h.

Constructor & Destructor Documentation

template<typename counter_t >
re2c::local_increment_t< counter_t >::local_increment_t ( counter_t c)
inlineexplicit

Definition at line 11 of file local_increment.h.

12  : counter (++c)
13  {}
template<typename counter_t >
re2c::local_increment_t< counter_t >::~local_increment_t ( )
inline

Definition at line 14 of file local_increment.h.

15  {
16  --counter;
17  }

Member Data Documentation

template<typename counter_t >
counter_t& re2c::local_increment_t< counter_t >::counter

Definition at line 10 of file local_increment.h.


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