MPQC 3.0.0-alpha
Loading...
Searching...
No Matches
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
32namespace 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:
46 void run();
47 };
48
49}
50
51#endif
52
53// Local Variables:
54// mode: c++
55// c-file-style: "CLJ"
56// End:
Classes which need runtime information about themselves and their relationship to other classes can v...
Definition class.h:233
A template class that maintains references counts.
Definition ref.h:361
The Runnable class is a DescribedClass with a pure virtual run member.
Definition runnable.h:36
virtual void run()=0
Executes an action as specified in the derived class.
Definition runnable.h:42
void run()
Executes an action as specified in the derived class.
Contains all MPQC code up to version 3.
Definition mpqcin.h:14

Generated at Wed Sep 25 2024 02:45:31 for MPQC 3.0.0-alpha using the documentation package Doxygen 1.12.0.