src
Main Page
Namespaces
Classes
Files
File List
File Members
util
local_increment.h
Go to the documentation of this file.
1
#ifndef _RE2C_UTIL_LOCAL_INCREMENT_
2
#define _RE2C_UTIL_LOCAL_INCREMENT_
3
4
namespace
re2c
5
{
6
7
template
<
typename
counter_t>
8
struct
local_increment_t
9
{
10
counter_t
&
counter
;
11
inline
explicit
local_increment_t
(
counter_t
& c)
12
: counter (++c)
13
{}
14
inline
~local_increment_t
()
15
{
16
--
counter
;
17
}
18
};
19
20
}
// namespace re2c
21
22
#endif // _RE2C_UTIL_LOCAL_INCREMENT_
re2c::counter_t
Definition:
label.h:10
re2c::local_increment_t::counter
counter_t & counter
Definition:
local_increment.h:10
re2c::local_increment_t
Definition:
local_increment.h:8
re2c::local_increment_t::~local_increment_t
~local_increment_t()
Definition:
local_increment.h:14
re2c
Definition:
bitmap.cc:10
re2c::local_increment_t::local_increment_t
local_increment_t(counter_t &c)
Definition:
local_increment.h:11
Generated by
1.8.10