Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
CoMISo
Base
Commits
4f8bd49e
Commit
4f8bd49e
authored
Mar 30, 2020
by
Martin Marinov
Browse files
Add Checksum::Level parameter to Checksum::NumberT
parent
fb7a78b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Test/ChecksumNumberT.hh
View file @
4f8bd49e
// (C) Copyright 20
19
by Autodesk, Inc.
// (C) Copyright 20
20
by Autodesk, Inc.
#ifndef BASE_CHECKSUMLOGVALUET_HH_INCLUDE
#define BASE_CHECKSUMLOGVALUET_HH_INCLUDE
...
...
@@ -45,18 +45,19 @@ private:
};
/*!
Generic checksum class to record and compare a value of a certain type.
Generic checksum class to record and compare a value of a certain type.
*/
template
<
typename
ValueT
,
class
CompareT
=
DefaultCompareT
<
ValueT
>
>
class
NumberT
:
public
Object
{
public:
NumberT
(
const
char
*
const
_name
,
//!<[in] Checksum name.
const
CompareT
&
_comp
=
CompareT
()
//!<[in] Comparison function.
)
:
Object
(
_name
),
comp_
(
_comp
)
{}
NumberT
(
const
char
*
const
_name
,
//!<[in] Checksum name
const
Level
_lvl
=
L_ALL
,
//!<[in] Checksum level
const
CompareT
&
_comp
=
CompareT
()
//!<[in] Comparison function
)
:
Object
(
_name
,
_lvl
),
comp_
(
_comp
)
{
}
protected:
//! Generic implementation of number data comparison
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment