ALPSCore reference
signal.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1998-2018 ALPS Collaboration. See COPYRIGHT.TXT
3  * All rights reserved. Use is subject to license terms. See LICENSE.TXT
4  * For use in publications, see ACKNOWLEDGE.TXT
5  */
6 
7 #ifndef ALPS_SIGNAL_HPP
8 #define ALPS_SIGNAL_HPP
9 
11 
12 #include <boost/array.hpp>
13 
14 #include <vector>
15 
16 namespace alps {
17 
18  class signal{
19 
20  public:
21 
31  signal();
32 
36  bool empty() const;
37 
41  int top() const;
42 
43 
47  void pop();
48 
54  static void listen();
55 
56  static void slot(int signal);
57 
58  static void segfault(int signal);
59 
60  private:
61 
62  static std::size_t begin_;
63  static std::size_t end_;
64  static boost::array<int, 0x20> signals_;
65  };
66 }
67 
68 #endif
static void slot(int signal)
Definition: signal.cpp:69
int top() const
Definition: signal.cpp:46
static void listen()
Definition: signal.cpp:54
static void segfault(int signal)
Definition: signal.cpp:77
bool empty() const
Definition: signal.cpp:42
void pop()
Definition: signal.cpp:50