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

Represents a component of the boundary of a triangulation. More...

#include <triangulation/nboundarycomponent.h>

Inheritance diagram for regina::NBoundaryComponent:
regina::Output< NBoundaryComponent > regina::alias::FaceOfTriangulation< NBoundaryComponent, 3 > regina::NMarkedElement

Public Member Functions

REGINA_INLINE_REQUIRED size_t index () const
 Returns the index of this boundary component in the underlying triangulation. More...
 
template<int subdim>
size_t countFaces () const
 Returns the number of subdim-faces in this boundary component. More...
 
template<int subdim>
Face< 3, subdim > * face (size_t index) const
 Returns the requested subdim-face in this boundary component. More...
 
NComponentcomponent () const
 Returns the component of the triangulation to which this boundary component belongs. More...
 
REGINA_DEPRECATED NComponentgetComponent () const
 Deprecated routine that returns the component of the triangulation to which this boundary component belongs. More...
 
long eulerChar () const
 Returns the Euler characteristic of this boundary component. More...
 
REGINA_DEPRECATED long getEulerChar () const
 Deprecated routine that returns the Euler characteristic of this boundary component. More...
 
REGINA_DEPRECATED long getEulerCharacteristic () const
 A deprecated alias for eulerChar(). More...
 
REGINA_INLINE_REQUIRED bool isIdeal () const
 Determines if this boundary component is ideal. More...
 
bool isOrientable () const
 Determines if this boundary component is orientable. More...
 
void writeTextShort (std::ostream &out) const
 Writes a short text representation of this object to the given output stream. More...
 
void writeTextLong (std::ostream &out) const
 Writes a detailed text representation of this object to the given output stream. More...
 
std::string str () const
 Returns a short text representation of this object. More...
 
std::string utf8 () const
 Returns a short text representation of this object using unicode characters. More...
 
std::string detail () const
 Returns a detailed text representation of this object. More...
 
REGINA_DEPRECATED std::string toString () const
 A deprecated alias for str(). More...
 
REGINA_DEPRECATED std::string toStringLong () const
 A deprecated alias for detail(). More...
 
size_t markedIndex () const
 Returns the index at which this object is stored in an NMarkedVector. More...
 

Friends

class Triangulation< 3 >
 Allow access to private members. More...
 

Detailed Description

Represents a component of the boundary of a triangulation.

Note that an ideal vertex constitutes a boundary component of its own - it consists of one vertex, no edges, and no triangles.

We can run into some interesting cases with invalid triangulations. Suppose some vertex link is a multiply punctured surface (which makes the vertex and hence the entire triangulation invalid). This means that different parts of the 3-manifold boundary are effectively "pinched" together. If this happens, the different parts of the boundary that are pinched might or might not be listed as part of the same boundary component; if not then the offending vertex will be included in all of these boundary components. Nevertheless, only one of these can be considered the "official" boundary component of the vertex as returned by NVertex::boundaryComponent(). This is all a bit of a mess, but then again the entire triangulation is invalid and so you almost certainly have bigger problems to deal with.

Boundary components are highly temporary; once a triangulation changes, all its boundary component objects will be deleted and new ones will be created.

Member Function Documentation

§ component()

NComponent * regina::NBoundaryComponent::component ( ) const
inline

Returns the component of the triangulation to which this boundary component belongs.

Returns
the component containing this boundary component.

§ countFaces()

template<int subdim>
size_t regina::NBoundaryComponent::countFaces ( ) const

Returns the number of subdim-faces in this boundary component.

Precondition
The template argument subdim is between 0 and 2 inclusive.
Python:
Python does not support templates. Instead, Python users should call this function in the form countFaces(subdim); that is, the template parameter subdim becomes the first argument of the function.
Returns
the number of subdim-faces.

§ detail()

std::string regina::Output< NBoundaryComponent , false >::detail ( ) const
inherited

Returns a detailed text representation of this object.

This text may span many lines, and should provide the user with all the information they could want. It should be human-readable, should not contain extremely long lines (which cause problems for users reading the output in a terminal), and should end with a final newline. There are no restrictions on the underlying character set.

Returns
a detailed text representation of this object.

§ eulerChar()

long regina::NBoundaryComponent::eulerChar ( ) const
inline

Returns the Euler characteristic of this boundary component.

If this boundary component is ideal, the Euler characteristic of the link of the corresponding ideal vertex is returned.

Returns
the Euler characteristic.

§ face()

template<int subdim>
Face<3, subdim>* regina::NBoundaryComponent::face ( size_t  index) const

Returns the requested subdim-face in this boundary component.

Note that the index of a face in the boundary component need not be the index of the same face in the overall triangulation.

Precondition
The template argument subdim is between 0 and 2 inclusive.
Python:
Python does not support templates. Instead, Python users should call this function in the form face(subdim, index); that is, the template parameter subdim becomes the first argument of the function.
Parameters
indexthe index of the desired face, ranging from 0 to countFaces<subdim>()-1 inclusive.
Returns
the requested face.

§ getComponent()

NComponent * regina::NBoundaryComponent::getComponent ( ) const
inline

Deprecated routine that returns the component of the triangulation to which this boundary component belongs.

Deprecated:
This routine has been renamed to component(). See the component() documentation for further details.

§ getEulerChar()

long regina::NBoundaryComponent::getEulerChar ( ) const
inline

Deprecated routine that returns the Euler characteristic of this boundary component.

Deprecated:
This routine has been renamed to eulerChar(). See the eulerChar() documentation for further details.

§ getEulerCharacteristic()

long regina::NBoundaryComponent::getEulerCharacteristic ( ) const
inline

A deprecated alias for eulerChar().

Returns the Euler characteristic of this boundary component. If this boundary component is ideal, the Euler characteristic of the link of the corresponding ideal vertex is returned.

Deprecated:
This routine will be removed in a future version of Regina. Please use the identical routine eulerChar() instead.
Returns
the Euler characteristic.

§ index()

size_t regina::NBoundaryComponent::index ( ) const
inline

Returns the index of this boundary component in the underlying triangulation.

This is identical to calling the deprecated function boundaryComponentIndex(this) on the underlying triangulation.

Returns
the index of this boundary component.

§ isIdeal()

bool regina::NBoundaryComponent::isIdeal ( ) const
inline

Determines if this boundary component is ideal.

This is the case if and only if it consists of a single (ideal) vertex and no triangles.

Returns
true if and only if this boundary component is ideal.

§ isOrientable()

bool regina::NBoundaryComponent::isOrientable ( ) const
inline

Determines if this boundary component is orientable.

If the boundary component is ideal, the orientability of the link of the corresponding ideal vertex is returned.

Returns
true if and only if this boundary component is orientable.

§ markedIndex()

size_t regina::NMarkedElement::markedIndex ( ) const
inlineinherited

Returns the index at which this object is stored in an NMarkedVector.

If this object does not belong to an NMarkedVector, the return value is undefined.

Returns
the index at which this object is stored.

§ str()

std::string regina::Output< NBoundaryComponent , false >::str ( ) const
inherited

Returns a short text representation of this object.

This text should be human-readable, should fit on a single line, and should not end with a newline. Where possible, it should use plain ASCII characters.

Python:
In addition to str(), this is also used as the Python "stringification" function __str__().
Returns
a short text representation of this object.

§ toString()

REGINA_DEPRECATED std::string regina::Output< NBoundaryComponent , false >::toString ( ) const
inherited

A deprecated alias for str().

Deprecated:
This routine has (at long last) been deprecated; use the simpler-to-type str() instead.
Returns
a short text representation of this object.

§ toStringLong()

REGINA_DEPRECATED std::string regina::Output< NBoundaryComponent , false >::toStringLong ( ) const
inherited

A deprecated alias for detail().

Deprecated:
This routine has (at long last) been deprecated; use the simpler-to-type detail() instead.
Returns
a long text representation of this object.

§ utf8()

std::string regina::Output< NBoundaryComponent , false >::utf8 ( ) const
inherited

Returns a short text representation of this object using unicode characters.

Like str(), this text should be human-readable, should fit on a single line, and should not end with a newline. In addition, it may use unicode characters to make the output more pleasant to read. This string will be encoded in UTF-8.

Returns
a short text representation of this object.

§ writeTextLong()

void regina::NBoundaryComponent::writeTextLong ( std::ostream &  out) const

Writes a detailed text representation of this object to the given output stream.

Python:
Not present.
Parameters
outthe output stream to which to write.

§ writeTextShort()

void regina::NBoundaryComponent::writeTextShort ( std::ostream &  out) const
inline

Writes a short text representation of this object to the given output stream.

Python:
Not present.
Parameters
outthe output stream to which to write.

Friends And Related Function Documentation

§ Triangulation< 3 >

friend class Triangulation< 3 >
friend

Allow access to private members.


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).