~centralelyon2010/inkscape/imagelinks2

« back to all changes in this revision

Viewing changes to src/2geom/int-interval.h

  • Committer: JazzyNico
  • Date: 2011-08-29 20:25:30 UTC
  • Revision ID: nicoduf@yahoo.fr-20110829202530-6deuoz11q90usldv
Code refactoring and merging with trunk (revision 10599).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**
 
2
 *  \file
 
3
 *  \brief Closed interval of integer values
 
4
 *//*
 
5
 * Copyright 2011 Krzysztof Kosiński <tweenk.pl@gmail.com>
 
6
 *
 
7
 * This library is free software; you can redistribute it and/or
 
8
 * modify it either under the terms of the GNU Lesser General Public
 
9
 * License version 2.1 as published by the Free Software Foundation
 
10
 * (the "LGPL") or, at your option, under the terms of the Mozilla
 
11
 * Public License Version 1.1 (the "MPL"). If you do not alter this
 
12
 * notice, a recipient may use your version of this file under either
 
13
 * the MPL or the LGPL.
 
14
 *
 
15
 * You should have received a copy of the LGPL along with this library
 
16
 * in the file COPYING-LGPL-2.1; if not, write to the Free Software
 
17
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 
18
 * You should have received a copy of the MPL along with this library
 
19
 * in the file COPYING-MPL-1.1
 
20
 *
 
21
 * The contents of this file are subject to the Mozilla Public License
 
22
 * Version 1.1 (the "License"); you may not use this file except in
 
23
 * compliance with the License. You may obtain a copy of the License at
 
24
 * http://www.mozilla.org/MPL/
 
25
 *
 
26
 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY
 
27
 * OF ANY KIND, either express or implied. See the LGPL or the MPL for
 
28
 * the specific language governing rights and limitations.
 
29
 */
 
30
 
 
31
#ifndef LIB2GEOM_SEEN_INT_INTERVAL_H
 
32
#define LIB2GEOM_SEEN_INT_INTERVAL_H
 
33
 
 
34
#include <2geom/coord.h>
 
35
#include <2geom/generic-interval.h>
 
36
 
 
37
namespace Geom {
 
38
 
 
39
/**
 
40
 * @brief Range of integers that is never empty.
 
41
 * @ingroup Primitives
 
42
 */
 
43
typedef GenericInterval<IntCoord> IntInterval;
 
44
 
 
45
/**
 
46
 * @brief Range of integers that can be empty.
 
47
 * @ingroup Primitives
 
48
 */
 
49
typedef GenericOptInterval<IntCoord> OptIntInterval;
 
50
 
 
51
} // namespace Geom
 
52
#endif // !LIB2GEOM_SEEN_INT_INTERVAL_H
 
53
 
 
54
/*
 
55
  Local Variables:
 
56
  mode:c++
 
57
  c-file-style:"stroustrup"
 
58
  c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
 
59
  indent-tabs-mode:nil
 
60
  fill-column:99
 
61
  End:
 
62
*/
 
63
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :