MeshLib C++ Docs
Loading...
Searching...
No Matches
MRSignal.h
Go to the documentation of this file.
1
#pragma once
2
3
#if (defined(__APPLE__) && defined(__clang__))
4
#pragma clang diagnostic push
5
#pragma clang diagnostic ignored "-Wunused-parameter"
6
#endif
7
8
#pragma warning(push)
9
#pragma warning(disable: 4619)
10
#include <boost/signals2/signal.hpp>
11
#pragma warning(pop)
12
13
#if (defined(__APPLE__) && defined(__clang__))
14
#pragma clang diagnostic pop
15
#endif
16
17
namespace
MR
18
{
21
22
25
template
<
typename
T>
26
struct
Signal
: boost::signals2::signal<T>
27
{
28
Signal
() noexcept = default;
29
Signal
( const
Signal
& ) noexcept : boost::signals2::signal<T>() {}
30
Signal
(
Signal
&& ) noexcept = default;
31
Signal
& operator =( const
Signal
& ) noexcept {
return
*
this
; }
32
Signal
&
operator =
(
Signal
&& ) noexcept = default;
33
Signal
& operator =( boost::signals2::signal<T>&& b ) noexcept { *
static_cast<
boost::signals2::signal<T>*
>
(
this
) = std::move( b );
return
*
this
; }
34
};
35
36
}
MR::Signal::Signal
Signal() noexcept=default
MR::Signal::operator=
Signal & operator=(const Signal &) noexcept
Definition
MRSignal.h:31
MR::Signal::Signal
Signal(Signal &&) noexcept=default
MR
only for bindings generation
Definition
MRCameraOrientationPlugin.h:8
MR::Signal
Definition
MRSignal.h:27
MeshLib
source
MRMesh
MRSignal.h
Generated by
1.11.0