@@ -241,21 +241,6 @@ auto ConfigureLoadStore::load()
241241 });
242242}
243243
244- template <typename T>
245- auto ConfigureLoadStore::loadRaw (EnqueuePolicy ep) -> std::shared_ptr<T>
246- {
247- auto res = m_rc.loadChunkAllocate_impl <T>(storeChunkConfig ());
248- switch (ep)
249- {
250- case EnqueuePolicy::Defer:
251- break ;
252- case EnqueuePolicy::Immediate:
253- m_rc.seriesFlush ();
254- break ;
255- }
256- return res;
257- }
258-
259244struct VisitorEnqueueLoadVariantWithFlush
260245{
261246 template <typename T, typename F>
@@ -313,21 +298,6 @@ struct VisitorLoadVariant
313298 }
314299};
315300
316- auto ConfigureLoadStore::loadVariantRaw (EnqueuePolicy ep)
317- -> auxiliary::detail::shared_ptr_dataset_types
318- {
319- auto res = m_rc.visit <VisitorLoadVariant>(this ->storeChunkConfig ());
320- switch (ep)
321- {
322- case EnqueuePolicy::Defer:
323- break ;
324- case EnqueuePolicy::Immediate:
325- m_rc.seriesFlush ();
326- break ;
327- }
328- return res;
329- }
330-
331301ConfigureStoreChunkFromBuffer::ConfigureStoreChunkFromBuffer (
332302 auxiliary::WriteBuffer buffer, Datatype dt, ConfigureLoadStore &&core)
333303 : ConfigureLoadStore(std::move(core))
@@ -356,20 +326,6 @@ auto ConfigureStoreChunkFromBuffer::store()
356326 [dflush = deferFlush (m_rc)]() mutable -> void { dflush (); });
357327}
358328
359- auto ConfigureStoreChunkFromBuffer::storeRaw (EnqueuePolicy ep) -> void
360- {
361- this ->m_rc .storeChunk_impl (
362- std::move (m_buffer), m_datatype, storeChunkConfig ());
363- switch (ep)
364- {
365- case EnqueuePolicy::Defer:
366- break ;
367- case EnqueuePolicy::Immediate:
368- m_rc.seriesFlush ();
369- break ;
370- }
371- }
372-
373329auto ConfigureLoadStoreFromBuffer::load ()
374330 -> auxiliary::DeferredComputation<void>
375331{
@@ -394,29 +350,6 @@ auto ConfigureLoadStoreFromBuffer::load()
394350 });
395351}
396352
397- auto ConfigureLoadStoreFromBuffer::loadRaw (EnqueuePolicy ep) -> void
398- {
399- auto *shared_ptr = std::get_if<auxiliary::WriteBuffer::ReadSharedPtr>(
400- &this ->m_buffer .as_variant <auxiliary::WriteBufferTypes>());
401- if (!shared_ptr)
402- {
403- throw std::runtime_error (
404- " ConfigureLoadStoreFromBuffer must be instantiated with a "
405- " non-const shared_ptr type." );
406- }
407- this ->m_rc .loadChunk_impl (
408- *shared_ptr, m_datatype, this ->storeChunkConfig ());
409- switch (ep)
410- {
411-
412- case EnqueuePolicy::Defer:
413- break ;
414- case EnqueuePolicy::Immediate:
415- this ->m_rc .seriesFlush ();
416- break ;
417- }
418- }
419-
420353void ConfigureLoadStore::extent_impl (Extent extent)
421354{
422355 m_extent = std::make_optional<Extent>(std::move (extent));
@@ -446,9 +379,7 @@ void ConfigureStoreChunkFromBuffer::memorySelection_impl(MemorySelection sel)
446379#define INSTANTIATE_METHOD_TEMPLATES (dtype ) \
447380 template auto ConfigureLoadStore::load () \
448381 -> auxiliary::DeferredComputation<OPENPMD_APPLY_TEMPLATE( \
449- std::shared_ptr, dtype)>; \
450- template auto ConfigureLoadStore::loadRaw (EnqueuePolicy) \
451- ->std::shared_ptr<dtype>;
382+ std::shared_ptr, dtype)>;
452383#define INSTANTIATE_METHOD_TEMPLATES_WITH_AND_WITHOUT_EXTENT (type ) \
453384 INSTANTIATE_METHOD_TEMPLATES (type) \
454385 INSTANTIATE_METHOD_TEMPLATES (OPENPMD_ARRAY(type)) \
0 commit comments