PLCnext API Documentation 25.0.2.69
IDelegateFunctor.hpp
1
2//
3// Copyright Phoenix Contact GmbH & Co. KG
4//
6#pragma once
7namespace Arp::Base::Core
8{
9
11
12class IDelegateFunctor
13{
14public: // construction/destruction
15 IDelegateFunctor(void) = default;
16 IDelegateFunctor(const IDelegateFunctor& arg) = default;
17 IDelegateFunctor(IDelegateFunctor&& arg)noexcept = default;
18 IDelegateFunctor& operator=(const IDelegateFunctor& arg) = default;
19 IDelegateFunctor& operator=(IDelegateFunctor&& arg)noexcept = default;
20 virtual ~IDelegateFunctor(void)noexcept = default;
21
22public: // operators
23 bool operator==(const IDelegateFunctor& other);
24
25protected: // abstract operations
26 virtual bool Equals(const IDelegateFunctor& other) = 0;
27};
28
30// inline methods of class IDelegateFunctor
31inline bool IDelegateFunctor::operator==(const IDelegateFunctor& other)
32{
33 return this->Equals(other); // call virtual euqals
34}
35
37
38} // end of namespace Arp::Base::Core
@ Equals
Start recording if TriggerVariable1 is equal to TriggerVariable2.