jubatus_core
0.1.2
Jubatus: Online machine learning framework for distributed environment
Main Page
Namespaces
Classes
Files
File List
File Members
jubatus
core
common
version.cpp
Go to the documentation of this file.
1
// Jubatus: Online machine learning framework for distributed environment
2
// Copyright (C) 2013 Preferred Networks and Nippon Telegraph and Telephone Corporation.
3
//
4
// This library is free software; you can redistribute it and/or
5
// modify it under the terms of the GNU Lesser General Public
6
// License version 2.1 as published by the Free Software Foundation.
7
//
8
// This library is distributed in the hope that it will be useful,
9
// but WITHOUT ANY WARRANTY; without even the implied warranty of
10
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
// Lesser General Public License for more details.
12
//
13
// You should have received a copy of the GNU Lesser General Public
14
// License along with this library; if not, write to the Free Software
15
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
17
#include "
version.hpp
"
18
#include <ostream>
19
20
namespace
jubatus
{
21
namespace
core {
22
namespace
storage {
23
24
std::ostream&
operator<<
(std::ostream& os,
const
version
&
v
) {
25
os << v.
version_number_
;
26
// cardinal number output
27
if
((v.
version_number_
% 10) == 1
28
&& ((v.
version_number_
% 100) != 11)) {
29
os <<
"st"
;
30
}
else
if
((v.
version_number_
% 10) == 2
31
&& ((v.
version_number_
% 100) != 12)) {
32
os <<
"nd"
;
33
}
else
if
((v.
version_number_
% 10) == 3
34
&& ((v.
version_number_
% 100) != 13)) {
35
os <<
"rd"
;
36
}
else
{
37
os <<
"th"
;
38
}
39
return
os;
40
}
41
42
}
// namespace storage
43
}
// namespace core
44
}
// namespace jubatus
jubatus
Definition:
anomaly_base.cpp:29
jubatus::core::storage::version
Definition:
version.hpp:28
jubatus::core::common::jsonconfig::v
std::vector< T > v(size)
jubatus::core::storage::operator<<
std::ostream & operator<<(std::ostream &os, const version &v)
Definition:
version.cpp:24
jubatus::core::storage::version::version_number_
uint64_t version_number_
Definition:
version.hpp:82
version.hpp
Generated on Tue Apr 28 2015 13:23:02 for jubatus_core by
1.8.9.1