ANNA Suite  2020b
Multipurpose development suite for Telco applications
EqualTo.hpp
Go to the documentation of this file.
1 // ANNA - Anna is Not Nothingness Anymore //
2 // //
3 // (c) Copyright 2005-2015 Eduardo Ramos Testillano & Francisco Ruiz Rayo //
4 // //
5 // See project site at http://redmine.teslayout.com/projects/anna-suite //
6 // See accompanying file LICENSE or copy at http://www.teslayout.com/projects/public/anna.LICENSE //
7 
8 
9 #ifndef anna_core_util_EqualTo_hpp
10 #define anna_core_util_EqualTo_hpp
11 
12 namespace anna {
13 
25 template <class K, class T> class EqualTo {
26 public:
27  EqualTo(const K key) : a_key(key) {;}
28  EqualTo(const EqualTo<K, T>& other) : a_key(other.a_key) {;}
29  bool operator()(T* t) const { return *t == a_key; }
30  bool operator()(const T* t) const { return *t == a_key; }
31 
32 private:
33  const K a_key;
34 };
35 
36 }
37 
38 #endif
39 
40 
bool operator()(const T *t) const
Definition: EqualTo.hpp:30
bool operator()(T *t) const
Definition: EqualTo.hpp:29
EqualTo(const EqualTo< K, T > &other)
Definition: EqualTo.hpp:28
Definition: app.hpp:12
EqualTo(const K key)
Definition: EqualTo.hpp:27
Definition: EqualTo.hpp:25