Friction Ridge Image and Features Technology Evaluations
API for participating in NIST's Friction Ridge Image and Features Technology Evaluations.
Toggle main menu visibility
Loading...
Searching...
No Matches
libfrifte
libfrifte_io.cpp
Go to the documentation of this file.
1
/*
2
* This software was developed at the National Institute of Standards and
3
* Technology (NIST) by employees of the Federal Government in the course
4
* of their official duties. Pursuant to title 17 Section 105 of the
5
* United States Code, this software is not subject to copyright protection
6
* and is in the public domain. NIST assumes no responsibility whatsoever for
7
* its use by other parties, and makes no guarantees, expressed or implied,
8
* about its quality, reliability, or any other characteristic.
9
*/
10
11
#include <
frifte/io.h
>
12
13
FRIF::SubjectPositionCandidate::SubjectPositionCandidate
(
14
const
std::string &identifier_,
15
const
EFS::FrictionRidgeGeneralizedPosition
fgp_) :
16
identifier
{identifier_},
17
fgp
{fgp_}
18
{
19
20
}
21
22
auto
23
FRIF::SubjectPositionCandidate::operator<=>
(
const
FRIF::SubjectPositionCandidate
&)
24
const
=
default
;
25
26
bool
27
FRIF::SubjectPositionCandidate::operator==
(
const
FRIF::SubjectPositionCandidate
&)
28
const
=
default
;
29
30
std::size_t
31
FRIF::SubjectPositionCandidateListKeyHash::operator()
(
32
const
FRIF::SubjectPositionCandidate
&c)
33
const
34
noexcept
35
{
36
/*
37
* Keys are guaranteed to not contain spaces (per
38
* FRIF::TemplateArchive), so combining a unique identifier
39
* with a finger position delimited by a space results in a unique
40
* string for that identifier + position combination.
41
*/
42
return
(std::hash<std::string>{}(c.identifier +
' '
+
43
std::to_string(std::underlying_type_t<
44
EFS::FrictionRidgeGeneralizedPosition
>(c.fgp))));
45
}
io.h
FRIF::EFS::FrictionRidgeGeneralizedPosition
FrictionRidgeGeneralizedPosition
Friction positions codes from ANSI/NIST-ITL 1-2011 (2015).
Definition
efs.h:93
FRIF::SubjectPositionCandidate
Candidate list entry identifying a specific region of a subject.
Definition
io.h:112
FRIF::SubjectPositionCandidate::SubjectPositionCandidate
SubjectPositionCandidate(const std::string &identifier={}, const EFS::FrictionRidgeGeneralizedPosition fgp={})
SubjectPositionCandidate constructor.
Definition
libfrifte_io.cpp:13
FRIF::SubjectPositionCandidate::operator<=>
auto operator<=>(const SubjectPositionCandidate &) const
FRIF::SubjectPositionCandidate::fgp
EFS::FrictionRidgeGeneralizedPosition fgp
Most localized position in the identifier.
Definition
io.h:116
FRIF::SubjectPositionCandidate::operator==
bool operator==(const SubjectPositionCandidate &) const
FRIF::SubjectPositionCandidate::identifier
std::string identifier
Identifier of the sample in the reference database.
Definition
io.h:114
FRIF::SubjectPositionCandidateListKeyHash::operator()
std::size_t operator()(const FRIF::SubjectPositionCandidate &c) const noexcept
Definition
libfrifte_io.cpp:31
Generated by
1.17.0