Friction Ridge Image and Features
API for participating in NIST's Friction Ridge Image and Features Technology Evaluations.
Loading...
Searching...
No Matches
libfrif_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 <frif/io.h>
12
14 const std::string &identifier_,
16 identifier{identifier_},
17 fgp{fgp_}
18{
19
20}
21
22auto
24 const = default;
25
26bool
28 const = default;
29
30std::size_t
32 const FRIF::Candidate &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<
45}
FrictionRidgeGeneralizedPosition
Friction positions codes from ANSI/NIST-ITL 1-2011 (2015).
Definition efs.h:58
Unique entry.
Definition io.h:113
bool operator==(const Candidate &) const
Candidate(const std::string &identifier={}, const EFS::FrictionRidgeGeneralizedPosition fgp={})
Candidate constructor.
auto operator<=>(const Candidate &) const
std::size_t operator()(const FRIF::Candidate &c) const noexcept