g4tools
5.4.0
g4tools
tools
sg
visible_action
Go to the documentation of this file.
1
// Copyright (C) 2010, Guy Barrand. All rights reserved.
2
// See the file tools.license for terms.
3
4
#ifndef tools_sg_visible_action
5
#define tools_sg_visible_action
6
7
#include "
matrix_action
"
8
9
namespace
tools
{
10
namespace
sg {
11
12
class
visible_action
:
public
matrix_action
{
13
TOOLS_ACTION
(
visible_action
,
tools::sg::visible_action
,
matrix_action
)
14
public
:
15
visible_action
(std::ostream& a_out,
unsigned
int
a_ww,
unsigned
int
a_wh)
16
:parent(a_out,a_ww,a_wh)
17
,
m_count
(0)
18
{}
19
virtual
~visible_action
(){}
20
public
:
21
visible_action
(
const
visible_action
& a_from)
22
:parent(a_from)
23
,
m_count
(0)
24
{}
25
visible_action
&
operator=
(
const
visible_action
& a_from){
26
parent::operator=(a_from);
27
m_count
= 0;
28
return
*
this
;
29
}
30
public
:
31
void
reset
() {
m_count
= 0;}
32
33
void
increment
() {
m_count
++;}
34
unsigned
int
count
()
const
{
return
m_count
;}
35
protected
:
36
unsigned
int
m_count
;
37
};
38
39
}}
40
41
#endif
tools::sg::visible_action::reset
void reset()
Definition:
visible_action:31
tools::sg::matrix_action
Definition:
matrix_action:15
tools::sg::visible_action::visible_action
visible_action(std::ostream &a_out, unsigned int a_ww, unsigned int a_wh)
Definition:
visible_action:15
matrix_action
TOOLS_ACTION
#define TOOLS_ACTION(a__class, a__sclass, a__parent)
Definition:
action:60
tools::sg::visible_action::visible_action
visible_action(const visible_action &a_from)
Definition:
visible_action:21
tools
inlined C code : ///////////////////////////////////
Definition:
aida_ntuple:26
tools::sg::visible_action::count
unsigned int count() const
Definition:
visible_action:34
tools::sg::visible_action::~visible_action
virtual ~visible_action()
Definition:
visible_action:19
tools::sg::visible_action::m_count
unsigned int m_count
Definition:
visible_action:36
tools::sg::visible_action::increment
void increment()
Definition:
visible_action:33
tools::sg::visible_action
Definition:
visible_action:12
tools::sg::visible_action::operator=
visible_action & operator=(const visible_action &a_from)
Definition:
visible_action:25
Generated by
1.8.20