Debian Codegraph @

src/lib/EPUBCounter.cpp

raw
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /*
3 * This file is part of the libepubgen project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
9
10 #include "EPUBCounter.h"
11
12 namespace libepubgen
13 {
14
15 EPUBCounter::EPUBCounter()
16 : m_current(0)
17 {
18 }
19
20 unsigned EPUBCounter::current() const
21 {
22 return m_current;
23 }
24
25 unsigned EPUBCounter::next()
26 {
27 return ++m_current;
28 }
29
30 }
31
32 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */