Skip to content
Snippets Groups Projects
Commit 9e2f837d authored by Joseph Mirabel's avatar Joseph Mirabel Committed by Joseph Mirabel
Browse files

Use std::size_t instead of size_t. Remove src/bin.cc in CMakeLists.txt

parent 293949e9
No related branches found
No related tags found
No related merge requests found
...@@ -36,21 +36,21 @@ namespace hpp { ...@@ -36,21 +36,21 @@ namespace hpp {
{ {
public: public:
/// Return the number of element in the bin. /// Return the number of element in the bin.
size_t freq () const const std::size_t& freq () const
{ {
return freq_; return freq_;
} }
/// Add an occurence /// Add an occurence
/// \return The frequency after increment; /// \return The frequency after increment;
size_t operator ++() std::size_t operator ++()
{ {
return ++freq_; return ++freq_;
} }
/// Add an occurence /// Add an occurence
/// \return The frequency before increment; /// \return The frequency before increment;
size_t operator ++(int) std::size_t operator ++(int)
{ {
return freq_++; return freq_++;
} }
...@@ -70,7 +70,7 @@ namespace hpp { ...@@ -70,7 +70,7 @@ namespace hpp {
private: private:
/// The number of occurence. /// The number of occurence.
size_t freq_; std::size_t freq_;
}; };
inline std::ostream& operator<< (std::ostream& os, const hpp::statistics::Bin& b) inline std::ostream& operator<< (std::ostream& os, const hpp::statistics::Bin& b)
...@@ -93,7 +93,7 @@ namespace hpp { ...@@ -93,7 +93,7 @@ namespace hpp {
/// \param bin a Bin for which only the value is useful. /// \param bin a Bin for which only the value is useful.
/// \note It searches for the equivalent Bin is the set and /// \note It searches for the equivalent Bin is the set and
/// returns the frequency of the result. /// returns the frequency of the result.
virtual size_t freq (const T& bin) const; virtual std::size_t freq (const T& bin) const;
/// Return the relative frequency of a Bin. /// Return the relative frequency of a Bin.
/// \param bin a Bin for which only the value is useful. /// \param bin a Bin for which only the value is useful.
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
SET(LIBRARY_NAME ${PROJECT_NAME}) SET(LIBRARY_NAME ${PROJECT_NAME})
ADD_LIBRARY(${LIBRARY_NAME} SHARED ADD_LIBRARY(${LIBRARY_NAME} SHARED
bin.cc
success-bin.cc success-bin.cc
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment