DoxyBugs
1
Main Page
Namespaces
Classes
Files
File List
C:
projects
cpp
DoxyBugs
DefaultScore.h
Go to the documentation of this file.
1
//================================================================================
2
// Copyright (C) NAB 2009
3
//================================================================================
4
// Copyright (C) 2009 National Australia Bank Ltd [All rights reserved].
5
// This product and related documentation are protected by copyright
6
// restricting its use, copying, distribution, and decompilation.
7
// No part of this product or related documentation may be reproduced
8
// in any form by any means without prior written authorization of
9
// National Australia Bank Ltd. No part of this product can be sold,
10
// leased, hired out, licensed or circulated in any way without the
11
// written authorization of National Australia Bank Ltd.
12
// Unless otherwise arranged, third parties may not have access to
13
// this product or related documents.
14
//================================================================================
15
17
18
#if !defined cmif_DefaultScore_h
19
#define cmif_DefaultScore_h
20
21
#include "ModelCellSystem.h"
22
23
#include <string>
24
25
namespace
ns
26
{
28
template
<
typename
T>
29
class
DefaultScore
30
{
31
public
:
32
33
DefaultScore
(
const
T& t = T(),
bool
b =
false
);
34
DefaultScore
(
const
DefaultScore
& rhs);
35
36
void
swap
(
DefaultScore
& rhs);
37
38
bool
operator==
(
const
DefaultScore
& rhs)
const
;
39
bool
hasDefaultScore
()
const
;
40
const
T&
defaultScore
()
const
;
41
44
virtual
void
defaultScore
(
const
T& d);
45
48
virtual
void
hasDefaultScore
(
bool
b);
49
50
// overridden virtual methods
51
52
protected
:
53
54
// overridden virtual methods
55
56
private
:
57
58
// overridden virtual methods
59
60
bool
hasDefaultScore_;
61
T defaultScore_;
62
};
63
64
}
65
66
#include "
DefaultScore.cpp
"
67
68
#endif // cmif_DefaultScore_h
69
70
//================================================================================
71
// Copyright (C) NAB 2009
72
//================================================================================
Generated on Fri Jun 15 2012 13:44:48 for DoxyBugs by
1.8.1.1