Regina Calculation Engine
Public Member Functions | Friends | List of all members
regina::CensusHit Class Reference

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>

Inheritance diagram for regina::CensusHit:

Public Member Functions

const std::string & name () const
 Returns the human-readable name associated with the triangulation in the database. More...
 
const CensusDBdb () const
 Returns details of the census database in which the triangulation was found. More...
 
const CensusHitnext () const
 Returns the next hit for the same triangulation, or 0 if there are no more hits. More...
 

Friends

class CensusDB
 
class CensusHits
 

Detailed Description

Stores a single "hit" indicating that some given triangulation has been located in one of Regina's in-built census databases.

Note that a given triangulation might have several hits across Regina's databases. Therefore hits are typically returned using the separate CensusHits class, which essentially represents a list of individual CensusHit objects.

Member Function Documentation

◆ db()

const CensusDB * regina::CensusHit::db ( ) const
inline

Returns details of the census database in which the triangulation was found.

Returns
the database for this hit.

◆ name()

const std::string & regina::CensusHit::name ( ) const
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.

Returns
the human-readable name for this hit.

◆ next()

const CensusHit * regina::CensusHit::next ( ) const
inline

Returns the next hit for the same triangulation, or 0 if there are no more hits.

Recall that hits are typically returned using the CensusHits class, which stores a list of individual CensusHit objects. To iterate through this list, you should begin by calling CensusHits::first() to retrieve the first hit, and then for each hit call CensusHit::next() (this function) to retrieve the next hit.

Returns
the next hit after this in the list, or 0 if this is the last hit.

The documentation for this class was generated from the following file:

Copyright © 1999-2016, The Regina development team
This software is released under the GNU General Public License, with some additional permissions; see the source code for details.
For further information, or to submit a bug or other problem, please contact Ben Burton (bab@maths.uq.edu.au).