CLOGS
C++ library for sorting and searching in OpenCL applications
tune.h
Go to the documentation of this file.
1 /* Copyright (c) 2015, Bruce Merry
2  *
3  * Permission is hereby granted, free of charge, to any person obtaining a copy
4  * of this software and associated documentation files (the "Software"), to deal
5  * in the Software without restriction, including without limitation the rights
6  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7  * copies of the Software, and to permit persons to whom the Software is
8  * furnished to do so, subject to the following conditions:
9  *
10  * The above copyright notice and this permission notice shall be included in
11  * all copies or substantial portions of the Software.
12  *
13  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19  * SOFTWARE.
20  */
21 
28 #ifndef CLOGS_TUNE_H
29 #define CLOGS_TUNE_H
30 
31 #include <clogs/visibility_push.h>
32 #include <ostream>
33 #include <clogs/visibility_pop.h>
34 
35 namespace clogs
36 {
37 
38 class TunePolicy;
39 
40 namespace detail
41 {
42  class TunePolicy;
43 
44  CLOGS_LOCAL const TunePolicy &getDetail(const clogs::TunePolicy &);
45 } // namespace detail
46 
47 enum TuneVerbosity
48 {
49  TUNE_VERBOSITY_SILENT = 0,
50  TUNE_VERBOSITY_TERSE = 1,
51  TUNE_VERBOSITY_NORMAL = 2,
52  TUNE_VERBOSITY_DEBUG = 3
53 };
54 
55 class CLOGS_API TunePolicy
56 {
57 private:
58  friend const detail::TunePolicy &detail::getDetail(const clogs::TunePolicy &);
59  detail::TunePolicy *detail_;
60 
61 public:
62  TunePolicy();
63  ~TunePolicy();
64  TunePolicy(const TunePolicy &);
65  TunePolicy &operator=(const TunePolicy &);
66 
73  void setEnabled(bool enabled);
74 
78  void setVerbosity(TuneVerbosity verbosity);
79 
84  void setOutput(std::ostream &out);
85 };
86 
87 } // namespace clogs
88 
89 #endif /* !CLOGS_TUNE_H */
Pops default visibility if appropriate.
Pushes default visibility if appropriate.
Definition: tune.h:55
OpenCL primitives.
Definition: clogs.h:56