TPIE

2362a60
progress_indicator_null.h
Go to the documentation of this file.
1 // -*- mode: c++; tab-width: 4; indent-tabs-mode: t; c-file-style: "stroustrup"; -*-
2 // vi:set ts=4 sts=4 sw=4 noet :
3 // Copyright 2008, The TPIE development team
4 //
5 // This file is part of TPIE.
6 //
7 // TPIE is free software: you can redistribute it and/or modify it under
8 // the terms of the GNU Lesser General Public License as published by the
9 // Free Software Foundation, either version 3 of the License, or (at your
10 // option) any later version.
11 //
12 // TPIE is distributed in the hope that it will be useful, but WITHOUT ANY
13 // WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 // FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
15 // License for more details.
16 //
17 // You should have received a copy of the GNU Lesser General Public License
18 // along with TPIE. If not, see <http://www.gnu.org/licenses/>
19 
23 
24 #ifndef _TPIE_PROGRESS_INDICATOR_NULL_H
25 #define _TPIE_PROGRESS_INDICATOR_NULL_H
26 
27 #include <tpie/portability.h>
29 #include <tpie/util.h>
30 
31 namespace tpie {
32 
40 
41 public:
42  progress_indicator_null (stream_size_type range=0) :progress_indicator_base(range) {}
43 
44  virtual ~progress_indicator_null() { /*Do nothing*/ }
45 
46  virtual void init(stream_size_type range) { unused(range); }
47  virtual void done() {}
48  virtual void set_range(stream_size_type range) { unused(range); }
49  virtual void refresh() {}
50 
51 };
52 
53 } //tpie namespace
54 
55 #endif //_TPIE_PROGRESS_INDICATOR_NULL_H
progress_indicator_base()=delete
Deleted default constructor.
The base class for indicating the progress of some task.
void unused(const T &x)
Declare that a variable is unused on purpose.
Definition: util.h:42
virtual void init(stream_size_type range)
Initialize progress indicator.
This file contains a few deprecated definitions for legacy code.
virtual void refresh()
Display the indicator.
a dummy progress indicator that produces no output
virtual void set_range(stream_size_type range)
Set the upper bound of the counting range.
Progress indicator base.
Miscellaneous utility functions.
virtual void done()
Advance the indicator to the end.