YAPOG
0.0.1
Yet Another Pokemon Online Game
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
ID.cpp
Go to the documentation of this file.
1
#include "
YAPOG/Game/ID.hpp
"
2
3
namespace
yap
4
{
5
const
ID::ValueType
ID::DEFAULT_VALUE
= 0;
6
7
ID::ID
()
8
: value_ (DEFAULT_VALUE)
9
{
10
}
11
12
ID::ID
(
ValueType
value)
13
: value_ (value)
14
{
15
}
16
17
ID::ID
(
const
ID
& copy)
18
: value_ (copy.value_)
19
{
20
}
21
22
ID
&
ID::operator=
(
const
ID
& copy)
23
{
24
if
(
this
== ©)
25
return
*
this
;
26
27
value_
= copy.
value_
;
28
29
return
*
this
;
30
}
31
32
const
ID::ValueType
&
ID::GetValue
()
const
33
{
34
return
value_
;
35
}
36
37
void
ID::SetValue
(
ValueType
value)
38
{
39
value_
= value;
40
}
41
42
bool
ID::operator==
(
const
ID
& right)
const
43
{
44
return
value_
== right.
value_
;
45
}
46
47
bool
ID::operator!=
(
const
ID
& right)
const
48
{
49
return
!(*
this
== right);
50
}
51
52
bool
ID::operator>
(
const
ID
& right)
const
53
{
54
return
value_
> right.
value_
;
55
}
56
57
bool
ID::operator<
(
const
ID
& right)
const
58
{
59
return
value_
< right.
value_
;
60
}
61
62
bool
ID::operator>=
(
const
ID
& right)
const
63
{
64
return
!(*
this
< right);
65
}
66
67
bool
ID::operator<=
(
const
ID
& right)
const
68
{
69
return
!(*
this
> right);
70
}
71
72
}
// namespace yap
YAPOG
src
YAPOG
Game
ID.cpp
Generated on Mon Sep 17 2012 22:24:24 for YAPOG by
1.8.1.1