liblevenshtein 4.0.0
A library for generating Finite State Transducers based on Levenshtein Automata.
|
Represents a pair of terms sorted, lexicographically, in ascending order. More...
#include <symmetric_pair.h>
Public Member Functions | |
SymmetricPair (const std::string &u, const std::string &v) | |
Constructs a SymmetricPair of terms such that the first term is the lesser, lexicographically, of the two. | |
auto | operator== (const SymmetricPair &other) const -> bool |
Determines whether this SymmetricPair is equivalent to another. | |
Private Attributes | |
std::string | first |
The lexicographically lesser term of the pair. | |
std::string | second |
The lexicographically greater term of the pair. | |
Friends | |
class | std::hash< SymmetricPair > |
The hasch function may access all the members of this class. | |
auto | operator<< (std::ostream &out, const SymmetricPair &pair) -> std::ostream & |
The ostream operator may access all the members of this class. | |
Represents a pair of terms sorted, lexicographically, in ascending order.
Definition at line 12 of file symmetric_pair.h.
liblevenshtein::distance::SymmetricPair::SymmetricPair | ( | const std::string & | u, |
const std::string & | v ) |
Constructs a SymmetricPair of terms such that the first term is the lesser, lexicographically, of the two.
u | The first term of the SymmetricPair. |
v | The second term of the SymmetricPair. |
Definition at line 9 of file symmetric_pair.cpp.
References first, query(), and second.
auto liblevenshtein::distance::SymmetricPair::operator== | ( | const SymmetricPair & | other | ) | const -> bool |
Determines whether this SymmetricPair is equivalent to another.
other | The SymmetricPair to compare with this one. |
Definition at line 19 of file symmetric_pair.cpp.
References query().
|
friend |
The ostream operator may access all the members of this class.
Definition at line 23 of file symmetric_pair.cpp.
|
friend |
The hasch function may access all the members of this class.
Definition at line 30 of file symmetric_pair.h.
|
private |
The lexicographically lesser term of the pair.
Definition at line 42 of file symmetric_pair.h.
Referenced by SymmetricPair().
|
private |
The lexicographically greater term of the pair.
Definition at line 45 of file symmetric_pair.h.
Referenced by SymmetricPair().