1 // This is a generated file, do not edit.  Generated from /home/kjell/checkout/gnome/glibmm-2.4/glib/src/value_basictypes.h.m4
2 
3 #ifndef DOXYGEN_SHOULD_SKIP_THIS
4 #ifndef _GLIBMM_VALUE_H_INCLUDE_VALUE_BASICTYPES_H
5 #error "glibmm/value_basictypes.h cannot be included directly"
6 #endif
7 #endif
8 
9 /* Suppress warnings about `long long' when GCC is in -pedantic mode.
10  */
11 #if (__GNUC__ >= 3 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96))
12 #pragma GCC system_header
13 #endif
14 
15 namespace Glib
16 {
17 
18 /**
19  * @ingroup glibmmValue
20  */
21 template <>
22 class GLIBMM_API Value<bool> : public ValueBase
23 {
24 public:
25   using CppType = bool;
26   using CType = gboolean;
27 
28   static GType value_type() G_GNUC_CONST;
29 
30   void set(bool data);
31   bool get() const;
32 
33 #ifndef DOXYGEN_SHOULD_SKIP_THIS
34   GParamSpec* create_param_spec(const Glib::ustring& name) const;
35   GParamSpec* create_param_spec(const Glib::ustring& name, const Glib::ustring& nick,
36                                 const Glib::ustring& blurb, Glib::ParamFlags flags) const;
37 #endif
38 };
39 
40 #ifndef GLIBMM_DISABLE_DEPRECATED
41 /// @deprecated Use Value<signed char> instead.
42 
43 /**
44  * @ingroup glibmmValue
45  */
46 template <>
47 class GLIBMM_API Value<char> : public ValueBase
48 {
49 public:
50   using CppType = char;
51   using CType = gchar;
52 
53   static GType value_type() G_GNUC_CONST;
54 
55   void set(char data);
56   char get() const;
57 
58 #ifndef DOXYGEN_SHOULD_SKIP_THIS
59   GParamSpec* create_param_spec(const Glib::ustring& name) const;
60   GParamSpec* create_param_spec(const Glib::ustring& name, const Glib::ustring& nick,
61                                 const Glib::ustring& blurb, Glib::ParamFlags flags) const;
62 #endif
63 };
64 
65 #endif // GLIBMM_DISABLE_DEPRECATED
66 /// @newin{2,44}
67 
68 /**
69  * @ingroup glibmmValue
70  */
71 template <>
72 class GLIBMM_API Value<signed char> : public ValueBase
73 {
74 public:
75   using CppType = signed char;
76   using CType = gint8;
77 
78   static GType value_type() G_GNUC_CONST;
79 
80   void set(signed char data);
81   signed char get() const;
82 
83 #ifndef DOXYGEN_SHOULD_SKIP_THIS
84   GParamSpec* create_param_spec(const Glib::ustring& name) const;
85   GParamSpec* create_param_spec(const Glib::ustring& name, const Glib::ustring& nick,
86                                 const Glib::ustring& blurb, Glib::ParamFlags flags) const;
87 #endif
88 };
89 
90 
91 /**
92  * @ingroup glibmmValue
93  */
94 template <>
95 class GLIBMM_API Value<unsigned char> : public ValueBase
96 {
97 public:
98   using CppType = unsigned char;
99   using CType = guchar;
100 
101   static GType value_type() G_GNUC_CONST;
102 
103   void set(unsigned char data);
104   unsigned char get() const;
105 
106 #ifndef DOXYGEN_SHOULD_SKIP_THIS
107   GParamSpec* create_param_spec(const Glib::ustring& name) const;
108   GParamSpec* create_param_spec(const Glib::ustring& name, const Glib::ustring& nick,
109                                 const Glib::ustring& blurb, Glib::ParamFlags flags) const;
110 #endif
111 };
112 
113 
114 /**
115  * @ingroup glibmmValue
116  */
117 template <>
118 class GLIBMM_API Value<int> : public ValueBase
119 {
120 public:
121   using CppType = int;
122   using CType = gint;
123 
124   static GType value_type() G_GNUC_CONST;
125 
126   void set(int data);
127   int get() const;
128 
129 #ifndef DOXYGEN_SHOULD_SKIP_THIS
130   GParamSpec* create_param_spec(const Glib::ustring& name) const;
131   GParamSpec* create_param_spec(const Glib::ustring& name, const Glib::ustring& nick,
132                                 const Glib::ustring& blurb, Glib::ParamFlags flags) const;
133 #endif
134 };
135 
136 
137 /**
138  * @ingroup glibmmValue
139  */
140 template <>
141 class GLIBMM_API Value<unsigned int> : public ValueBase
142 {
143 public:
144   using CppType = unsigned int;
145   using CType = guint;
146 
147   static GType value_type() G_GNUC_CONST;
148 
149   void set(unsigned int data);
150   unsigned int get() const;
151 
152 #ifndef DOXYGEN_SHOULD_SKIP_THIS
153   GParamSpec* create_param_spec(const Glib::ustring& name) const;
154   GParamSpec* create_param_spec(const Glib::ustring& name, const Glib::ustring& nick,
155                                 const Glib::ustring& blurb, Glib::ParamFlags flags) const;
156 #endif
157 };
158 
159 
160 /**
161  * @ingroup glibmmValue
162  */
163 template <>
164 class GLIBMM_API Value<long> : public ValueBase
165 {
166 public:
167   using CppType = long;
168   using CType = glong;
169 
170   static GType value_type() G_GNUC_CONST;
171 
172   void set(long data);
173   long get() const;
174 
175 #ifndef DOXYGEN_SHOULD_SKIP_THIS
176   GParamSpec* create_param_spec(const Glib::ustring& name) const;
177   GParamSpec* create_param_spec(const Glib::ustring& name, const Glib::ustring& nick,
178                                 const Glib::ustring& blurb, Glib::ParamFlags flags) const;
179 #endif
180 };
181 
182 
183 /**
184  * @ingroup glibmmValue
185  */
186 template <>
187 class GLIBMM_API Value<unsigned long> : public ValueBase
188 {
189 public:
190   using CppType = unsigned long;
191   using CType = gulong;
192 
193   static GType value_type() G_GNUC_CONST;
194 
195   void set(unsigned long data);
196   unsigned long get() const;
197 
198 #ifndef DOXYGEN_SHOULD_SKIP_THIS
199   GParamSpec* create_param_spec(const Glib::ustring& name) const;
200   GParamSpec* create_param_spec(const Glib::ustring& name, const Glib::ustring& nick,
201                                 const Glib::ustring& blurb, Glib::ParamFlags flags) const;
202 #endif
203 };
204 
205 
206 /**
207  * @ingroup glibmmValue
208  */
209 template <>
210 class GLIBMM_API Value<long long> : public ValueBase
211 {
212 public:
213   using CppType = long long;
214   using CType = gint64;
215 
216   static GType value_type() G_GNUC_CONST;
217 
218   void set(long long data);
219   long long get() const;
220 
221 #ifndef DOXYGEN_SHOULD_SKIP_THIS
222   GParamSpec* create_param_spec(const Glib::ustring& name) const;
223   GParamSpec* create_param_spec(const Glib::ustring& name, const Glib::ustring& nick,
224                                 const Glib::ustring& blurb, Glib::ParamFlags flags) const;
225 #endif
226 };
227 
228 
229 /**
230  * @ingroup glibmmValue
231  */
232 template <>
233 class GLIBMM_API Value<unsigned long long> : public ValueBase
234 {
235 public:
236   using CppType = unsigned long long;
237   using CType = guint64;
238 
239   static GType value_type() G_GNUC_CONST;
240 
241   void set(unsigned long long data);
242   unsigned long long get() const;
243 
244 #ifndef DOXYGEN_SHOULD_SKIP_THIS
245   GParamSpec* create_param_spec(const Glib::ustring& name) const;
246   GParamSpec* create_param_spec(const Glib::ustring& name, const Glib::ustring& nick,
247                                 const Glib::ustring& blurb, Glib::ParamFlags flags) const;
248 #endif
249 };
250 
251 
252 /**
253  * @ingroup glibmmValue
254  */
255 template <>
256 class GLIBMM_API Value<float> : public ValueBase
257 {
258 public:
259   using CppType = float;
260   using CType = gfloat;
261 
262   static GType value_type() G_GNUC_CONST;
263 
264   void set(float data);
265   float get() const;
266 
267 #ifndef DOXYGEN_SHOULD_SKIP_THIS
268   GParamSpec* create_param_spec(const Glib::ustring& name) const;
269   GParamSpec* create_param_spec(const Glib::ustring& name, const Glib::ustring& nick,
270                                 const Glib::ustring& blurb, Glib::ParamFlags flags) const;
271 #endif
272 };
273 
274 
275 /**
276  * @ingroup glibmmValue
277  */
278 template <>
279 class GLIBMM_API Value<double> : public ValueBase
280 {
281 public:
282   using CppType = double;
283   using CType = gdouble;
284 
285   static GType value_type() G_GNUC_CONST;
286 
287   void set(double data);
288   double get() const;
289 
290 #ifndef DOXYGEN_SHOULD_SKIP_THIS
291   GParamSpec* create_param_spec(const Glib::ustring& name) const;
292   GParamSpec* create_param_spec(const Glib::ustring& name, const Glib::ustring& nick,
293                                 const Glib::ustring& blurb, Glib::ParamFlags flags) const;
294 #endif
295 };
296 
297 
298 /**
299  * @ingroup glibmmValue
300  */
301 template <>
302 class GLIBMM_API Value<void*> : public ValueBase
303 {
304 public:
305   using CppType = void*;
306   using CType = gpointer;
307 
308   static GType value_type() G_GNUC_CONST;
309 
310   void set(void* data);
311   void* get() const;
312 
313 #ifndef DOXYGEN_SHOULD_SKIP_THIS
314   GParamSpec* create_param_spec(const Glib::ustring& name) const;
315   GParamSpec* create_param_spec(const Glib::ustring& name, const Glib::ustring& nick,
316                                 const Glib::ustring& blurb, Glib::ParamFlags flags) const;
317 #endif
318 };
319 
320 } // namespace Glib
321