MeshLib Documentation
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)
//#pragma warning: there is no warning number
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
{
19
22
template
<
typename
T>
23
struct
Signal
: boost::signals2::signal<T>
24
{
25
Signal
() noexcept = default;
26
Signal
( const
Signal
& ) noexcept : boost::signals2::signal<T>() {}
27
Signal
(
Signal
&& ) noexcept = default;
28
Signal
& operator =( const
Signal
& ) noexcept {
return
*
this
; }
29
Signal
&
operator =
(
Signal
&& ) noexcept = default;
30
Signal
& operator =( boost::signals2::signal<T>&& b ) noexcept { *
static_cast<
boost::signals2::signal<T>*
>
(
this
) = std::move( b );
return
*
this
; }
31
};
32
33
}
//namespace MR
MR
Definition
MRCameraOrientationPlugin.h:8
MR::Signal
Definition
MRSignal.h:24
MR::Signal::Signal
Signal() noexcept=default
MR::Signal::operator=
Signal & operator=(const Signal &) noexcept
Definition
MRSignal.h:28
MR::Signal::Signal
Signal(Signal &&) noexcept=default
MeshLib
source
MRMesh
MRSignal.h
Generated by
1.11.0