Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 15, 2024
1 parent e51e635 commit 92e8527
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
18 changes: 9 additions & 9 deletions include/openPMD/LoadStoreChunk.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ namespace core
template <typename T>
auto withUniquePtr(UniquePtrWithLambda<T>) -> unique_ptr_return_type<T>;
template <typename T, typename Del>
auto
withUniquePtr(std::unique_ptr<T, Del>) -> unique_ptr_return_type<T>;
auto withUniquePtr(std::unique_ptr<T, Del>)
-> unique_ptr_return_type<T>;
template <typename T>
auto withRawPtr(T *data) -> shared_ptr_return_type<T>;
template <typename T_ContiguousContainer>
Expand All @@ -138,19 +138,19 @@ namespace core
// definition for this one is in RecordComponent.tpp since it needs the
// definition of class RecordComponent.
template <typename T, typename F>
[[nodiscard]] auto
enqueueStore(F &&createBuffer) -> DynamicMemoryView<T>;
[[nodiscard]] auto enqueueStore(F &&createBuffer)
-> DynamicMemoryView<T>;

template <typename T>
[[nodiscard]] auto
enqueueLoad() -> auxiliary::DeferredComputation<std::shared_ptr<T>>;
[[nodiscard]] auto enqueueLoad()
-> auxiliary::DeferredComputation<std::shared_ptr<T>>;

template <typename T>
[[nodiscard]] auto load(EnqueuePolicy) -> std::shared_ptr<T>;

[[nodiscard]] auto
enqueueLoadVariant() -> auxiliary::DeferredComputation<
auxiliary::detail::shared_ptr_dataset_types>;
[[nodiscard]] auto enqueueLoadVariant()
-> auxiliary::DeferredComputation<
auxiliary::detail::shared_ptr_dataset_types>;

[[nodiscard]] auto loadVariant(EnqueuePolicy)
-> auxiliary::detail::shared_ptr_dataset_types;
Expand Down
10 changes: 5 additions & 5 deletions src/LoadStoreChunk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ namespace
* non-const unique pointers.
*/
template <typename T>
auto
asWriteBuffer(UniquePtrWithLambda<T const> &&ptr) -> auxiliary::WriteBuffer
auto asWriteBuffer(UniquePtrWithLambda<T const> &&ptr)
-> auxiliary::WriteBuffer
{
auto raw_ptr = ptr.release();
return asWriteBuffer(std::shared_ptr<T const>{
Expand Down Expand Up @@ -151,7 +151,7 @@ namespace core
auxiliary::detail::shared_ptr_dataset_types>(

[res_lambda = std::move(res), rc_lambda = rc]() mutable
-> auxiliary::detail::shared_ptr_dataset_types {
-> auxiliary::detail::shared_ptr_dataset_types {
std::cout << "Flushing Series from Future" << std::endl;
rc_lambda.seriesFlush();
std::cout << "Flushed Series from Future" << std::endl;
Expand Down Expand Up @@ -219,8 +219,8 @@ namespace core
}

template <typename Ptr_Type>
auto
ConfigureStoreChunkFromBuffer<Ptr_Type>::store(EnqueuePolicy ep) -> void
auto ConfigureStoreChunkFromBuffer<Ptr_Type>::store(EnqueuePolicy ep)
-> void
{
this->m_rc.storeChunk_impl(
asWriteBuffer(std::move(m_buffer)),
Expand Down

0 comments on commit 92e8527

Please sign in to comment.