Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
reference.h
Go to the documentation of this file.
1
// SPDX-License-Identifier: GPL-2.0-or-later
2
/*
3
* Inkscape::Traits::Reference - traits class for dealing with reference types
4
*
5
* Authors:
6
* MenTaLguY <mental@rydia.net>
7
*
8
* Copyright (C) 2004 MenTaLguY
9
*
10
* Released under GNU GPL v2+, read the file 'COPYING' for more information.
11
*/
12
13
#ifndef SEEN_INKSCAPE_TRAITS_REFERENCE_H
14
#define SEEN_INKSCAPE_TRAITS_REFERENCE_H
15
16
namespace
Inkscape
{
17
18
namespace
Traits {
19
20
template
<
typename
T>
21
struct
Reference
{
22
typedef
T
const
&
RValue
;
23
typedef
T &
LValue
;
24
typedef
T *
Pointer
;
25
typedef
T
const
*
ConstPointer
;
26
};
27
28
template
<
typename
T>
29
struct
Reference
<T &> {
30
typedef
T &
RValue
;
31
typedef
T &
LValue
;
32
typedef
T *
Pointer
;
33
typedef
T
const
*
ConstPointer
;
34
};
35
36
}
37
38
}
39
40
#endif
41
/*
42
Local Variables:
43
mode:c++
44
c-file-style:"stroustrup"
45
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
46
indent-tabs-mode:nil
47
fill-column:99
48
End:
49
*/
50
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :
Inkscape
Helper class to stream background task notifications as a series of messages.
Definition
actions-canvas-snapping.h:27
Inkscape::Traits::Reference< T & >::Pointer
T * Pointer
Definition
reference.h:32
Inkscape::Traits::Reference< T & >::RValue
T & RValue
Definition
reference.h:30
Inkscape::Traits::Reference< T & >::ConstPointer
T const * ConstPointer
Definition
reference.h:33
Inkscape::Traits::Reference< T & >::LValue
T & LValue
Definition
reference.h:31
Inkscape::Traits::Reference
Definition
reference.h:21
Inkscape::Traits::Reference::RValue
T const & RValue
Definition
reference.h:22
Inkscape::Traits::Reference::LValue
T & LValue
Definition
reference.h:23
Inkscape::Traits::Reference::ConstPointer
T const * ConstPointer
Definition
reference.h:25
Inkscape::Traits::Reference::Pointer
T * Pointer
Definition
reference.h:24
src
util
reference.h
Generated on Sun Jul 13 2025 04:02:23 for Inkscape by
1.9.8