SeComLib
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Macros Pages
math.h
Go to the documentation of this file.
1 /*
2 SeComLib
3 Copyright 2012-2013 TU Delft, Information Security & Privacy Lab (http://isplab.tudelft.nl/)
4 
5 Contributors:
6 Inald Lagendijk (R.L.Lagendijk@TUDelft.nl)
7 Mihai Todor (todormihai@gmail.com)
8 Thijs Veugen (P.J.M.Veugen@tudelft.nl)
9 Zekeriya Erkin (z.erkin@tudelft.nl)
10 
11 Licensed under the Apache License, Version 2.0 (the "License");
12 you may not use this file except in compliance with the License.
13 You may obtain a copy of the License at
14 
15 http://www.apache.org/licenses/LICENSE-2.0
16 
17 Unless required by applicable law or agreed to in writing, software
18 distributed under the License is distributed on an "AS IS" BASIS,
19 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20 See the License for the specific language governing permissions and
21 limitations under the License.
22 */
29 #ifndef MATH_HEADER_GUARD
30 #define MATH_HEADER_GUARD
31 
32 //include C++ headers
33 #include <cmath>
34 #include <vector>
35 
36 namespace SeComLib {
37 namespace Utils {
41  class Math {
42  public:
44  template <typename T_Input, typename T_Output>
45  static T_Output Round (const T_Input input);
46 
47  private:
49  Math ();
50 
52  ~Math ();
53 
55  Math (Math const &);
56 
58  Math operator= (Math const &);
59  };
60 
61 }//namespace Utils
62 }//namespace SeComLib
63 
64 //Separate the implementation from the declaration of template methods
65 #include "math.hpp"
66 
67 #endif//MATH_HEADER_GUARD
~Math()
Destructor - not implemented.
static T_Output Round(const T_Input input)
Rounds input to the nearest integer.
Definition: math.hpp:44
Implementation of template members from class Math.
Math()
Default constructor - not implemented.
Utilitary class providing custom math functions.
Definition: math.h:41
Math operator=(Math const &)
Copy assignment operator - not implemented.