Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
wire-cell-build
util
test
test_bss.cxx
Go to the documentation of this file.
1
#include <boost/signals2.hpp>
2
#include <iostream>
3
4
struct
CountOutLoud
5
{
6
int
count
;
7
CountOutLoud
(
int
c
=0) : count(
c
) {}
8
9
void
operator()
() {
10
std::cout <<
"count: "
<< count <<
std::endl
;
11
++
count
;
12
}
13
};
14
15
int
main
()
16
{
17
// Signal with no arguments and a void return value
18
boost::signals2::signal<void ()> sig;
19
20
CountOutLoud
col;
21
sig.connect(col);
22
23
sig();
24
sig();
25
sig();
26
}
CountOutLoud
Definition:
test_bss.cxx:4
CountOutLoud::CountOutLoud
CountOutLoud(int c=0)
Definition:
test_bss.cxx:7
CountOutLoud::operator()
void operator()()
Definition:
test_bss.cxx:9
ValidateOpDetSimulation.c
dictionary c
Definition:
ValidateOpDetSimulation.py:53
CountOutLoud::count
int count
Definition:
test_bss.cxx:6
main
int main()
Definition:
test_bss.cxx:15
endl
QTextStream & endl(QTextStream &s)
Definition:
qtextstream.cpp:2030
Generated by
1.8.11