IDS peak genericC++ v1.14.0
Loading...
Searching...
No Matches
peak_buffer_converter.hpp
Go to the documentation of this file.
1
10
11#pragma once
12
13
15
16
17namespace peak
18{
19
42
43template <class OutType>
44OutType BufferTo(const std::shared_ptr<peak::core::Buffer>& buffer)
45{
46 (void)buffer;
47 // static_assert that's always false, so we get a compiler error when using a not-implemented specialization
48 static_assert(sizeof(OutType) == 0,
49 "BufferTo<>() not implemented for this type. Implement a specialization for your own type or include one from "
50 "the 'converters' folder.");
51}
52
76
77template <class OutType>
78OutType BufferPartTo(const std::shared_ptr<peak::core::BufferPart>& bufferPart)
79{
80 (void)bufferPart;
81 // static_assert that's always false, so we get a compiler error when using a not-implemented specialization
82 static_assert(sizeof(OutType) == 0,
83 "BufferPartTo<>() not implemented for this type. Implement a specialization for your own type or include one from "
84 "the 'converters' folder.");
85}
86
87} /* namespace peak */
peak::icv::Image BufferPartTo(const std::shared_ptr< peak::core::BufferPart > &part)
Converts a core::BufferPart into a peak::ipl::Image.
Definition peak_bufferpart_converter_icv.hpp:44
OutType BufferTo(const std::shared_ptr< peak::core::Buffer > &buffer)
Converts a core::Buffer into a different type.
Definition peak_buffer_converter.hpp:44
The "peak" namespace directly contains convenience functionality like the DeviceManager as well as th...
Definition peak_dynamic_loader.h:33