Regina 7.3 Calculation Engine
|
Stores a single "hit" indicating that some given triangulation has been located in one of Regina's in-built census databases. More...
#include <census/census.h>
Public Member Functions | |
CensusHit (const CensusHit &)=default | |
Creates a new copy of the given census hit. More... | |
CensusHit (CensusHit &&) noexcept=default | |
Moves the contents of the given census hit into this new object. More... | |
CensusHit & | operator= (const CensusHit &)=default |
Copies the given census hit into this object. More... | |
CensusHit & | operator= (CensusHit &&) noexcept=default |
Moves the contents of the given census hit into this object. More... | |
void | swap (CensusHit &other) noexcept |
Swaps the contents of this and the given census hit. More... | |
const std::string & | name () const |
Returns the human-readable name associated with the triangulation in the database. More... | |
const CensusDB & | db () const |
Returns details of the census database in which the triangulation was found. More... | |
bool | operator== (const CensusHit &rhs) const |
Tests whether this and the given object represent the same census hit. More... | |
bool | operator!= (const CensusHit &rhs) const |
Tests whether this and the given object represent different census hits. More... | |
Friends | |
class | CensusDB |
Stores a single "hit" indicating that some given triangulation has been located in one of Regina's in-built census databases.
You cannot construct or modify instances of this class yourself, other than through the standard copy/move/swap operations. The only way to create "genuinely" new objects of this class is via the various static Census::lookup() routines.
This class implements C++ move semantics and adheres to the C++ Swappable requirement. It is designed to avoid deep copies wherever possible, even when passing or returning objects by value.
|
default |
Creates a new copy of the given census hit.
|
defaultnoexcept |
Moves the contents of the given census hit into this new object.
The census hit that is passed will no longer be usable.
|
inline |
Returns details of the census database in which the triangulation was found.
|
inline |
Returns the human-readable name associated with the triangulation in the database.
This typically contains the name of the triangulation and/or the name of the underlying manifold.
|
inline |
Tests whether this and the given object represent different census hits.
Two census hits are considered the same if they have the same human-readable name and also come from the same database (as identified by the CensusDB comparison operators).
rhs | the census hit to compare this against. |
true
if and only if this and the given hit are different. Moves the contents of the given census hit into this object.
The census hit that is passed will no longer be usable.
Copies the given census hit into this object.
|
inline |
Tests whether this and the given object represent the same census hit.
Two census hits are considered the same if they have the same human-readable name and also come from the same database (as identified by the CensusDB comparison operators).
rhs | the census hit to compare this against. |
true
if and only if this and the given hit are the same.
|
inlinenoexcept |
Swaps the contents of this and the given census hit.
other | the census hit whose contents are to be swapped with this. |