Debian Codegraph @

gstreamer/gstreamermm/allocator.cc

raw symbols SCIP
1 // Generated by gmmproc 2.50.1 -- DO NOT MODIFY!cxx . . $ `<file>/gstreamer/gstreamermm/allocator.cc`/
2
3
4 #include <glibmm.h>
5
6 #include <gstreamermm/allocator.h>cxx . . $ `<file>/gstreamer/gstreamermm/allocator.h`/
7 #include <gstreamermm/private/allocator_p.h>cxx . . $ `<file>/gstreamer/gstreamermm/private/allocator_p.h`/
8
9
10 /* gstreamermm - a C++ wrapper for gstreamer
11 *
12 * Copyright 2014-2015 The gstreamermm Development Team
13 *
14 * This library is free software; you can redistribute it and/or
15 * modify it under the terms of the GNU Lesser General Public
16 * License as published by the Free Software Foundation; either
17 * version 2.1 of the License, or (at your option) any later version.
18 *
19 * This library is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22 * Lesser General Public License for more details.
23 *
24 * You should have received a copy of the GNU Lesser General Public
25 * License along with this library; if not, write to the Free
26 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
27 */
28
29 #include <gstreamermm/memory.h>cxx . . $ `<file>/gstreamer/gstreamermm/memory.h`/
30
31
32 namespace Gstcxx . . $ Gst/
33 {
34 AllocationParamscxx . . $ Gst/AllocationParams#::AllocationParamscxx . . $ Gst/AllocationParams#AllocationParams(49f6e7a06ebc5aa8).()
35 {
36 GstAllocationParams params;
37 gst_allocation_params_init(&params);
38 gobject_cxx . . $ Gst/AllocationParams#gobject_. = gst_allocation_params_copy(&params);
39 }
40
41 Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Allocatorcxx . . $ Gst/Allocator#> Allocatorcxx . . $ Gst/Allocator#::get_default_allocatorcxx . . $ Gst/Allocator#get_default_allocator(e013e171d5b5f839).()
42 {
43 return Glibcxx . . $ Glib/::wrapcxx . . $ Glib/wrap(c608c0ab6ce247e5).(gst_allocator_find(nullptr), false);
44 }
45
46 void Allocatorcxx . . $ Gst/Allocator#::set_defaultcxx . . $ Gst/Allocator#set_default(49f6e7a06ebc5aa8).()
47 {
48 referencecxx . . $ Glib/ObjectBase#reference(83f5f38750778ac8).();
49 gst_allocator_set_default(gobjcxx . . $ Gst/Allocator#gobj(421823dfa46164ec).());
50 }
51
52 void Allocator_Classcxx . . $ Gst/Allocator_Class#::free_vfunc_callbackcxx . . $ Gst/Allocator_Class#free_vfunc_callback(6b046b62c5ca92a0).(GstAllocatorcxx . . $ GstAllocator#* self, GstMemory* memory)
53 {
54 Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase# *const obj_base = static_cast<Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#*>(
55 Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#::_get_current_wrappercxx . . $ Glib/ObjectBase#_get_current_wrapper(893eec6d4349e251).((GObjectcxx . . $ GObject#*)self));
56
57 // Non-gtkmmproc-generated custom classes implicitly call the default
58 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
59 // generated classes can use this optimisation, which avoids the unnecessary
60 // parameter conversions if there is no possibility of the virtual function
61 // being overridden:
62 if(obj_base && obj_base->is_derived_cxx . . $ Glib/ObjectBase#is_derived_(50ce9a9e25b4a850).())
63 {
64 CppObjectTypecxx . . $ Gst/Allocator_Class#CppObjectType# *const obj = dynamic_cast<CppObjectTypecxx . . $ Gst/Allocator_Class#CppObjectType#* const>(obj_base);
65 if(obj) // This can be NULL during destruction.
66 {
67 #ifdef GLIBMM_EXCEPTIONS_ENABLEDcxx . . $ `<external>/2871488740682878224/glibmmconfig.h:29:9`!
68 try // Trap C++ exceptions which would normally be lost because this is a C callback.
69 {
70 #endif //GLIBMM_EXCEPTIONS_ENABLED
71 // Call the virtual member method, which derived classes might override.
72 Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Memorycxx . . $ Gst/Memory#> mem = Glibcxx . . $ Glib/::wrapcxx . . $ Glib/wrap(61e990c27e905542).(memory);
73 obj->free_vfunccxx . . $ Gst/Allocator#free_vfunc(63736205f3a07344).(stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(mem));
74 return;
75 #ifdef GLIBMM_EXCEPTIONS_ENABLEDcxx . . $ `<external>/2871488740682878224/glibmmconfig.h:29:9`!
76 }
77 catch(...)
78 {
79 Glibcxx . . $ Glib/::exception_handlers_invokecxx . . $ Glib/exception_handlers_invoke(ced63f7c635d850d).();
80 }
81 #endif //GLIBMM_EXCEPTIONS_ENABLED
82 }
83 }
84
85 BaseClassTypecxx . . $ Gst/Allocator_Class#BaseClassType# *const base = static_cast<BaseClassTypecxx . . $ Gst/Allocator_Class#BaseClassType#*>(
86 g_type_class_peek_parent(G_OBJECT_GET_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:89:9`!(self)) // Get the parent class of the object class (The original underlying C class).
87 );
88
89 // Call the original underlying C function:
90 if(base && base->freecxx . . $ _GstAllocatorClass#free.)
91 {
92 (*base->freecxx . . $ _GstAllocatorClass#free.)(self, memory);
93 }
94
95 }
96
97 void Gstcxx . . $ Gst/::Allocatorcxx . . $ Gst/Allocator#::free_vfunccxx . . $ Gst/Allocator#free_vfunc(63736205f3a07344).(Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Memorycxx . . $ Gst/Memory#>&& memory)
98 {
99 BaseClassTypecxx . . $ Gst/Allocator#BaseClassType# *const base = static_cast<BaseClassTypecxx . . $ Gst/Allocator#BaseClassType#*>(
100 g_type_class_peek_parent(G_OBJECT_GET_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:89:9`!(gobject_))
101 );
102
103 if(base && base->freecxx . . $ _GstAllocatorClass#free.)
104 {
105 GstMemory* mem_gobj = memory.releasecxx . . $ Glib/RefPtr#release(258ee1c9e0a18a5c).()->gobjcxx . . $ Gst/Memory#gobj(f4325ef78aa51f39).();
106 (*base->freecxx . . $ _GstAllocatorClass#free.)(gobjcxx . . $ Gst/Allocator#gobj(421823dfa46164ec).(), mem_gobj);
107 }
108 }
109
110 }
111
112 namespacecxx . . $ `$anonymous_namespace_gstreamer/gstreamermm/allocator.cc`/
113 {
114 } // anonymous namespace
115
116
117 namespace Glibcxx . . $ Glib/
118 {
119
120 Gstcxx . . $ Gst/::AllocationParamscxx . . $ Gst/AllocationParams# wrapcxx . . $ Glib/wrap(fefc17215cafd38c).(GstAllocationParams* object, bool take_copy)
121 {
122 return Gstcxx . . $ Gst/AllocationParams#AllocationParams(91bc6c6596cf7bca).::AllocationParamscxx . . $ Gst/AllocationParams#(object, take_copy);
123 }
124
125 } // namespace Glib
126
127
128 namespace Gstcxx . . $ Gst/
129 {
130
131
132 // static
133 GType AllocationParamscxx . . $ Gst/AllocationParams#::get_typecxx . . $ Gst/AllocationParams#get_type(f708dce9a8856c70).()
134 {
135 return gst_allocation_params_get_type();
136 }
137
138
139 AllocationParamscxx . . $ Gst/AllocationParams#::AllocationParamscxx . . $ Gst/AllocationParams#AllocationParams(d0c4619345d45aff).(const AllocationParamscxx . . $ Gst/AllocationParams#& other)
140 :
141 gobject_cxx . . $ Gst/AllocationParams#gobject_. ((other.gobject_cxx . . $ Gst/AllocationParams#gobject_.) ? gst_allocation_params_copy(other.gobject_cxx . . $ Gst/AllocationParams#gobject_.) : nullptr)
142 {}
143
144 AllocationParamscxx . . $ Gst/AllocationParams#::AllocationParamscxx . . $ Gst/AllocationParams#AllocationParams(a3334af8cbed8909).(AllocationParamscxx . . $ Gst/AllocationParams#&& other) noexcept
145 :
146 gobject_cxx . . $ Gst/AllocationParams#gobject_.(other.gobject_cxx . . $ Gst/AllocationParams#gobject_.)
147 {
148 other.gobject_cxx . . $ Gst/AllocationParams#gobject_. = nullptr;
149 }
150
151 AllocationParamscxx . . $ Gst/AllocationParams#& AllocationParamscxx . . $ Gst/AllocationParams#::operatorcxx . . $ Gst/AllocationParams#`operator=`(809f4fbbac6eebd).=(AllocationParamscxx . . $ Gst/AllocationParams#&& other) noexcept
152 {
153 AllocationParamscxx . . $ Gst/AllocationParams# tempcxx . . $ Gst/AllocationParams#AllocationParams(d0c4619345d45aff). (other);
154 swapcxx . . $ Gst/AllocationParams#swap(ba45fb3d12edc6fb).(temp);
155 return *this;
156 }
157
158 AllocationParamscxx . . $ Gst/AllocationParams#::AllocationParamscxx . . $ Gst/AllocationParams#AllocationParams(91bc6c6596cf7bca).(GstAllocationParams* gobject, bool make_a_copy)
159 :
160 // For BoxedType wrappers, make_a_copy is true by default. The static
161 // BoxedType wrappers must always take a copy, thus make_a_copy = true
162 // ensures identical behaviour if the default argument is used.
163 gobject_cxx . . $ Gst/AllocationParams#gobject_. ((make_a_copy && gobject) ? gst_allocation_params_copy(gobject) : gobject)
164 {}
165
166 AllocationParamscxx . . $ Gst/AllocationParams#& AllocationParamscxx . . $ Gst/AllocationParams#::operatorcxx . . $ Gst/AllocationParams#`operator=`(12bb80bc6f51799c).=(const AllocationParamscxx . . $ Gst/AllocationParams#& other)
167 {
168 AllocationParamscxx . . $ Gst/AllocationParams# tempcxx . . $ Gst/AllocationParams#AllocationParams(d0c4619345d45aff). (other);
169 swapcxx . . $ Gst/AllocationParams#swap(ba45fb3d12edc6fb).(temp);
170 return *this;
171 }
172
173 AllocationParamscxx . . $ Gst/AllocationParams#::~cxx . . $ Gst/AllocationParams#`~AllocationParams`(ced63f7c635d850d).AllocationParamscxx . . $ Gst/AllocationParams#() noexcept
174 {
175 if(gobject_cxx . . $ Gst/AllocationParams#gobject_.)
176 gst_allocation_params_free(gobject_cxx . . $ Gst/AllocationParams#gobject_.);
177 }
178
179 void AllocationParamscxx . . $ Gst/AllocationParams#::swapcxx . . $ Gst/AllocationParams#swap(ba45fb3d12edc6fb).(AllocationParamscxx . . $ Gst/AllocationParams#& other) noexcept
180 {
181 stdcxx . . $ std/::swapcxx . . $ std/swap(c75b8fd57d7c2e06).(gobject_cxx . . $ Gst/AllocationParams#gobject_., other.gobject_cxx . . $ Gst/AllocationParams#gobject_.);
182 }
183
184 GstAllocationParams* AllocationParamscxx . . $ Gst/AllocationParams#::gobj_copycxx . . $ Gst/AllocationParams#gobj_copy(5cb897513063532a).() const
185 {
186 return gst_allocation_params_copy(gobject_cxx . . $ Gst/AllocationParams#gobject_.);
187 }
188
189
190 void AllocationParamscxx . . $ Gst/AllocationParams#::initcxx . . $ Gst/AllocationParams#init(49f6e7a06ebc5aa8).()
191 {
192 gst_allocation_params_init(gobjcxx . . $ Gst/AllocationParams#gobj(52bfd5f39dfd).());
193 }
194
195 MemoryFlagscxx . . $ Gst/MemoryFlags# AllocationParamscxx . . $ Gst/AllocationParams#::get_flagscxx . . $ Gst/AllocationParams#get_flags(d5402c8fc0282601).() const
196 {
197 return ((MemoryFlagscxx . . $ Gst/MemoryFlags#)(gobjcxx . . $ Gst/AllocationParams#gobj(c99b4985c5b51ade).()->flagscxx . . $ _GstAllocationParams#flags.));
198 }
199
200 void AllocationParamscxx . . $ Gst/AllocationParams#::set_flagscxx . . $ Gst/AllocationParams#set_flags(7915e56576f217af).(const MemoryFlagscxx . . $ Gst/MemoryFlags#& value)
201 {
202 gobjcxx . . $ Gst/AllocationParams#gobj(52bfd5f39dfd).()->flagscxx . . $ _GstAllocationParams#flags. = ((GstMemoryFlags)(value));
203 }
204
205 gsize AllocationParamscxx . . $ Gst/AllocationParams#::get_aligncxx . . $ Gst/AllocationParams#get_align(fe4d2d262d4164a8).() const
206 {
207 return gobjcxx . . $ Gst/AllocationParams#gobj(c99b4985c5b51ade).()->aligncxx . . $ _GstAllocationParams#align.;
208 }
209
210 void AllocationParamscxx . . $ Gst/AllocationParams#::set_aligncxx . . $ Gst/AllocationParams#set_align(ae19885fdae2095).(const gsize& value)
211 {
212 gobjcxx . . $ Gst/AllocationParams#gobj(52bfd5f39dfd).()->aligncxx . . $ _GstAllocationParams#align. = value;
213 }
214
215 gsize AllocationParamscxx . . $ Gst/AllocationParams#::get_prefixcxx . . $ Gst/AllocationParams#get_prefix(fe4d2d262d4164a8).() const
216 {
217 return gobjcxx . . $ Gst/AllocationParams#gobj(c99b4985c5b51ade).()->prefixcxx . . $ _GstAllocationParams#prefix.;
218 }
219
220 void AllocationParamscxx . . $ Gst/AllocationParams#::set_prefixcxx . . $ Gst/AllocationParams#set_prefix(ae19885fdae2095).(const gsize& value)
221 {
222 gobjcxx . . $ Gst/AllocationParams#gobj(52bfd5f39dfd).()->prefixcxx . . $ _GstAllocationParams#prefix. = value;
223 }
224
225 gsize AllocationParamscxx . . $ Gst/AllocationParams#::get_paddingcxx . . $ Gst/AllocationParams#get_padding(fe4d2d262d4164a8).() const
226 {
227 return gobjcxx . . $ Gst/AllocationParams#gobj(c99b4985c5b51ade).()->paddingcxx . . $ _GstAllocationParams#padding.;
228 }
229
230 void AllocationParamscxx . . $ Gst/AllocationParams#::set_paddingcxx . . $ Gst/AllocationParams#set_padding(ae19885fdae2095).(const gsize& value)
231 {
232 gobjcxx . . $ Gst/AllocationParams#gobj(52bfd5f39dfd).()->paddingcxx . . $ _GstAllocationParams#padding. = value;
233 }
234
235
236 } // namespace Gst
237
238
239 namespace Glibcxx . . $ Glib/
240 {
241
242 Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Allocatorcxx . . $ Gst/Allocator#> wrapcxx . . $ Glib/wrap(c608c0ab6ce247e5).(GstAllocatorcxx . . $ GstAllocator#* object, bool take_copy)
243 {
244 return Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Allocatorcxx . . $ Gst/Allocator#>( dynamic_cast<Gstcxx . . $ Gst/::Allocatorcxx . . $ Gst/Allocator#*> (Glibcxx . . $ Glib/::wrap_autocxx . . $ Glib/wrap_auto(fd1af59aa43b0601). ((GObjectcxx . . $ GObject#*)(object), take_copy)) );
245 //We use dynamic_cast<> in case of multiple inheritance.
246 }
247
248 } /* namespace Glib */
249
250
251 namespace Gstcxx . . $ Gst/
252 {
253
254
255 /* The *_Class implementation: */
256
257 const Glibcxx . . $ Glib/::Classcxx . . $ Glib/Class#& Allocator_Classcxx . . $ Gst/Allocator_Class#::initcxx . . $ Gst/Allocator_Class#init(bf348c0cd369184d).()
258 {
259 if(!gtype_cxx . . $ Glib/Class#gtype_.) // create the GType if necessary
260 {
261 // Glib::Class has to know the class init function to clone custom types.
262 class_init_func_cxx . . $ Glib/Class#class_init_func_. = &Allocator_Classcxx . . $ Gst/Allocator_Class#::class_init_functioncxx . . $ Gst/Allocator_Class#class_init_function(6c58c5e2437d25a2).;
263
264 // This is actually just optimized away, apparently with no harm.
265 // Make sure that the parent type has been created.
266 //CppClassParent::CppObjectType::get_type();
267
268 // Create the wrapper type, with the same class/instance size as the base type.
269 register_derived_typecxx . . $ Glib/Class#register_derived_type(2c44cd906ae4e829).(gst_allocator_get_type());
270
271 // Add derived versions of interfaces, if the C type implements any interfaces:
272
273 }
274
275 return *this;
276 }
277
278
279 void Allocator_Classcxx . . $ Gst/Allocator_Class#::class_init_functioncxx . . $ Gst/Allocator_Class#class_init_function(6c58c5e2437d25a2).(void* g_class, void* class_data)
280 {
281 const auto klass = static_cast<BaseClassTypecxx . . $ Gst/Allocator_Class#BaseClassType#*>(g_class);
282 CppClassParentcxx . . $ Gst/Allocator_Class#CppClassParent#::class_init_functioncxx . . $ Gst/Object_Class#class_init_function(6c58c5e2437d25a2).(klass, class_data);
283
284 klass->alloccxx . . $ _GstAllocatorClass#alloc. = &alloc_vfunc_callbackcxx . . $ Gst/Allocator_Class#alloc_vfunc_callback(55c13b97433628e7).;
285 klass->freecxx . . $ _GstAllocatorClass#free. = &free_vfunc_callbackcxx . . $ Gst/Allocator_Class#free_vfunc_callback(6b046b62c5ca92a0).;
286
287 }
288
289 GstMemory* Allocator_Classcxx . . $ Gst/Allocator_Class#::alloc_vfunc_callbackcxx . . $ Gst/Allocator_Class#alloc_vfunc_callback(55c13b97433628e7).(GstAllocatorcxx . . $ GstAllocator#* self, gsize size, GstAllocationParams* params)
290 {
291 const auto obj_base = static_cast<Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#*>(
292 Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#::_get_current_wrappercxx . . $ Glib/ObjectBase#_get_current_wrapper(893eec6d4349e251).((GObjectcxx . . $ GObject#*)self));
293
294 // Non-gtkmmproc-generated custom classes implicitly call the default
295 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
296 // generated classes can use this optimisation, which avoids the unnecessary
297 // parameter conversions if there is no possibility of the virtual function
298 // being overridden:
299 if(obj_base && obj_base->is_derived_cxx . . $ Glib/ObjectBase#is_derived_(50ce9a9e25b4a850).())
300 {
301 const auto obj = dynamic_cast<CppObjectTypecxx . . $ Gst/Allocator_Class#CppObjectType#* const>(obj_base);
302 if(obj) // This can be NULL during destruction.
303 {
304 try // Trap C++ exceptions which would normally be lost because this is a C callback.
305 {
306 // Call the virtual member method, which derived classes might override.
307 return Glibcxx . . $ Glib/::unwrap_copycxx . . $ Glib/unwrap_copy(d8611424b789c87e).(obj->alloc_vfunccxx . . $ Gst/Allocator#alloc_vfunc(2e6e626aee1aec17).(size, Gstcxx . . $ Gst/AllocationParams#AllocationParams(91bc6c6596cf7bca).::AllocationParamscxx . . $ Gst/AllocationParams#(params, true)
308 ));
309 }
310 catch(...)
311 {
312 Glibcxx . . $ Glib/::exception_handlers_invokecxx . . $ Glib/exception_handlers_invoke(ced63f7c635d850d).();
313 }
314 }
315 }
316
317 BaseClassTypecxx . . $ Gst/Allocator_Class#BaseClassType# *const base = static_cast<BaseClassTypecxx . . $ Gst/Allocator_Class#BaseClassType#*>(
318 g_type_class_peek_parent(G_OBJECT_GET_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:89:9`!(self)) // Get the parent class of the object class (The original underlying C class).
319 );
320
321 // Call the original underlying C function:
322 if(base && base->alloccxx . . $ _GstAllocatorClass#alloc.)
323 return (*base->alloccxx . . $ _GstAllocatorClass#alloc.)(self, size, params);
324
325 using RTypecxx . . $ Gst/Allocator_Class#alloc_vfunc_callback(55c13b97433628e7).RType# = GstMemory*;
326 return RTypecxx . . $ Gst/Allocator_Class#alloc_vfunc_callback(55c13b97433628e7).RType#();
327 }
328
329
330 Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#* Allocator_Classcxx . . $ Gst/Allocator_Class#::wrap_newcxx . . $ Gst/Allocator_Class#wrap_new(893eec6d4349e251).(GObjectcxx . . $ GObject#* object)
331 {
332 return new Allocatorcxx . . $ Gst/Allocator#Allocator(420e5e12b81d3a05).((GstAllocatorcxx . . $ GstAllocator#*)object);
333 }
334
335
336 /* The implementation: */
337
338 GstAllocatorcxx . . $ GstAllocator#* Allocatorcxx . . $ Gst/Allocator#::gobj_copycxx . . $ Gst/Allocator#gobj_copy(421823dfa46164ec).()
339 {
340 referencecxx . . $ Glib/ObjectBase#reference(83f5f38750778ac8).();
341 return gobjcxx . . $ Gst/Allocator#gobj(421823dfa46164ec).();
342 }
343
344 Allocatorcxx . . $ Gst/Allocator#::Allocatorcxx . . $ Gst/Allocator#Allocator(237165b4a42a691a).(const Glibcxx . . $ Glib/::ConstructParamscxx . . $ Glib/ConstructParams#& construct_params)
345 :
346 Gstcxx . . $ Gst/::Objectcxx . . $ Gst/Object#(construct_params)
347 {
348
349 }
350
351 Allocatorcxx . . $ Gst/Allocator#::Allocatorcxx . . $ Gst/Allocator#Allocator(420e5e12b81d3a05).(GstAllocatorcxx . . $ GstAllocator#* castitem)
352 :
353 Gstcxx . . $ Gst/::Objectcxx . . $ Gst/Object#((GstObjectcxx . . $ GstObject#*)(castitem))
354 {}
355
356
357 Allocatorcxx . . $ Gst/Allocator#::Allocatorcxx . . $ Gst/Allocator#Allocator(b4f346d9acc916a6).(Allocatorcxx . . $ Gst/Allocator#&& src) noexcept
358 : Gstcxx . . $ Gst/::Objectcxx . . $ Gst/Object#(stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(src))
359 {}
360
361 Allocatorcxx . . $ Gst/Allocator#& Allocatorcxx . . $ Gst/Allocator#::operatorcxx . . $ Gst/Allocator#`operator=`(f3c7dbb55dad40da).=(Allocatorcxx . . $ Gst/Allocator#&& src) noexcept
362 {
363 Gstcxx . . $ Gst/::Objectcxx . . $ Gst/Object#::operator=(stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(src));
364 return *this;
365 }
366
367
368 Allocatorcxx . . $ Gst/Allocator#::~cxx . . $ Gst/Allocator#`~Allocator`(ced63f7c635d850d).Allocatorcxx . . $ Gst/Allocator#() noexcept
369 {}
370
371
372 Allocatorcxx . . $ Gst/Allocator#::CppClassTypecxx . . $ Gst/Allocator#CppClassType# Allocatorcxx . . $ Gst/Allocator#::allocator_class_cxx . . $ Gst/Allocator#allocator_class_.; // initialize static member
373
374 GType Allocatorcxx . . $ Gst/Allocator#::get_typecxx . . $ Gst/Allocator#get_type(f708dce9a8856c70).()
375 {
376 return allocator_class_cxx . . $ Gst/Allocator#allocator_class_..initcxx . . $ Gst/Allocator_Class#init(bf348c0cd369184d).().get_typecxx . . $ Glib/Class#get_type(fe4d2d262d4164a8).();
377 }
378
379
380 GType Allocatorcxx . . $ Gst/Allocator#::get_base_typecxx . . $ Gst/Allocator#get_base_type(f708dce9a8856c70).()
381 {
382 return gst_allocator_get_type();
383 }
384
385 Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Allocatorcxx . . $ Gst/Allocator#> Allocatorcxx . . $ Gst/Allocator#::findcxx . . $ Gst/Allocator#find(71cff9fe3e876b10).(const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& name)
386 {
387 return Glibcxx . . $ Glib/::wrapcxx . . $ Glib/wrap(c608c0ab6ce247e5).(gst_allocator_find(name.c_strcxx . . $ Glib/ustring#c_str(a9f41ea0e82d88cf).()));
388 }
389
390 void Allocatorcxx . . $ Gst/Allocator#::register_allocatorcxx . . $ Gst/Allocator#register_allocator(17780408c76efa66).(const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& name, Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Allocatorcxx . . $ Gst/Allocator#>&& allocator)
391 {
392 gst_allocator_register(name.c_strcxx . . $ Glib/ustring#c_str(a9f41ea0e82d88cf).(), (allocator) ? allocator.releasecxx . . $ Glib/RefPtr#release(258ee1c9e0a18a5c).()->gobjcxx . . $ Gst/Allocator#gobj(421823dfa46164ec).() : nullptr);
393 }
394
395 void Allocatorcxx . . $ Gst/Allocator#::freecxx . . $ Gst/Allocator#free(63736205f3a07344).(Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Memorycxx . . $ Gst/Memory#>&& memory)
396 {
397 gst_allocator_free(gobjcxx . . $ Gst/Allocator#gobj(421823dfa46164ec).(), (memory) ? memory.releasecxx . . $ Glib/RefPtr#release(258ee1c9e0a18a5c).()->gobjcxx . . $ Gst/Memory#gobj(f4325ef78aa51f39).() : nullptr);
398 }
399
400 Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Memorycxx . . $ Gst/Memory#> Allocatorcxx . . $ Gst/Allocator#::alloccxx . . $ Gst/Allocator#alloc(2e6e626aee1aec17).(gsize size, const Gstcxx . . $ Gst/::AllocationParamscxx . . $ Gst/AllocationParams#& params)
401 {
402 return Glibcxx . . $ Glib/::wrapcxx . . $ Glib/wrap(61e990c27e905542).(gst_allocator_alloc(gobjcxx . . $ Gst/Allocator#gobj(421823dfa46164ec).(), size, const_cast<GstAllocationParams*>(params.gobjcxx . . $ Gst/AllocationParams#gobj(c99b4985c5b51ade).())));
403 }
404
405 Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Memorycxx . . $ Gst/Memory#> Allocatorcxx . . $ Gst/Allocator#::alloccxx . . $ Gst/Allocator#alloc(aaf7905c33884766).(gsize size)
406 {
407 return Glibcxx . . $ Glib/::wrapcxx . . $ Glib/wrap(61e990c27e905542).(gst_allocator_alloc(gobjcxx . . $ Gst/Allocator#gobj(421823dfa46164ec).(), size, nullptr));
408 }
409
410
411 Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Memorycxx . . $ Gst/Memory#> Gstcxx . . $ Gst/::Allocatorcxx . . $ Gst/Allocator#::alloc_vfunccxx . . $ Gst/Allocator#alloc_vfunc(2e6e626aee1aec17).(gsize size, const Gstcxx . . $ Gst/::AllocationParamscxx . . $ Gst/AllocationParams#& params)
412 {
413 const auto base = static_cast<BaseClassTypecxx . . $ Gst/Allocator#BaseClassType#*>(
414 g_type_class_peek_parent(G_OBJECT_GET_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:89:9`!(gobject_)) // Get the parent class of the object class (The original underlying C class).
415 );
416
417 if(base && base->alloccxx . . $ _GstAllocatorClass#alloc.)
418 {
419 Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Memorycxx . . $ Gst/Memory#> retval(Glibcxx . . $ Glib/::wrapcxx . . $ Glib/wrap(61e990c27e905542).((*base->alloccxx . . $ _GstAllocatorClass#alloc.)(gobjcxx . . $ Gst/Allocator#gobj(421823dfa46164ec).(),size,const_cast<GstAllocationParams*>(params.gobjcxx . . $ Gst/AllocationParams#gobj(c99b4985c5b51ade).()))));
420 return retvalcxx . . $ Glib/RefPtr#RefPtr(560c7fdd049cdfe1).;
421 }
422
423 using RTypecxx . . $ Gst/Allocator#alloc_vfunc(2e6e626aee1aec17).RType# = Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Memorycxx . . $ Gst/Memory#>;
424 return RTypecxx . . $ Glib/RefPtr#RefPtr(ced63f7c635d850d).();
425 }
426
427
428 } // namespace Gst
429
430