MPQC
3.0.0-alpha
runnable.h
1
//
2
// runnable.h
3
//
4
// Author: Curtis Janssen <cljanss@sandia.gov>
5
//
6
// This file is part of the SC Toolkit.
7
//
8
// The SC Toolkit is free software; you can redistribute it and/or modify
9
// it under the terms of the GNU Library General Public License as published by
10
// the Free Software Foundation; either version 2, or (at your option)
11
// any later version.
12
//
13
// The SC Toolkit is distributed in the hope that it will be useful,
14
// but WITHOUT ANY WARRANTY; without even the implied warranty of
15
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
// GNU Library General Public License for more details.
17
//
18
// You should have received a copy of the GNU Library General Public License
19
// along with the SC Toolkit; see the file COPYING.LIB. If not, write to
20
// the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
21
//
22
// The U.S. Government is granted a limited license as per AL 91-7.
23
//
24
25
#ifndef _util_misc_runnable_h
26
#define _util_misc_runnable_h
27
28
#include <string>
29
30
#include <util/class/class.h>
31
32
namespace
sc
{
33
36
class
Runnable
:
virtual
public
DescribedClass
{
37
public
:
39
virtual
void
run
() = 0;
40
};
41
42
class
TestRunnable
:
public
Runnable
{
43
std::string test_;
44
public
:
45
TestRunnable
(
const
Ref<KeyVal>
&);
46
void
run
();
47
};
48
49
}
50
51
#endif
52
53
// Local Variables:
54
// mode: c++
55
// c-file-style: "CLJ"
56
// End:
sc::Ref
A template class that maintains references counts.
Definition:
ref.h:361
sc::TestRunnable::run
void run()
Executes an action as specified in the derived class.
sc::Runnable
The Runnable class is a DescribedClass with a pure virtual run member.
Definition:
runnable.h:36
sc::Runnable::run
virtual void run()=0
Executes an action as specified in the derived class.
sc::DescribedClass
Classes which need runtime information about themselves and their relationship to other classes can v...
Definition:
class.h:233
sc::TestRunnable
Definition:
runnable.h:42
sc
Contains all MPQC code up to version 3.
Definition:
mpqcin.h:14
Generated at Sun Jan 26 2020 23:24:02 for
MPQC
3.0.0-alpha using the documentation package
Doxygen
1.8.16.