Contains an explicit triangulation of a saturated block along with the accompanying saturated block description.
More...
Contains an explicit triangulation of a saturated block along with the accompanying saturated block description.
This class is designed to work with SatRegion::findStarterBlock(), which uses such models as potential starting points for its search. The ultimate aim here is to identify regions within triangulations that are formed by joining saturated blocks together along their boundary annuli.
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. Note, however, that you cannot create generate your own models manually (aside from copying or moving); instead you will need to use block-specific factory routines such as SatTriPrism::model(), SatCube::model(), and so on.
bool regina::SatBlockModel::operator!= |
( |
const SatBlockModel & |
other | ) |
const |
|
inline |
Determines whether this and the given object do not model saturated blocks of the same type with the same combinatorial parameters.
This is equivalent to testing whether the blocks returned by block() compare as non-equal. See SatBlock::operator==() for further details on what this comparison means.
Assuming you created your models using the block-specific factory routines (SatTriPrism::model(), SatCube::model(), etc.), if two models compare as equal then their triangulations should be combinatorially identical. At the time of writing, the converse is also true: all models created from non-equal blocks yield non-identical (and moreover non-isomorphic) triangulations.
- Parameters
-
other | the model to compare with this. |
- Returns
true
if and only if this and the given object do not model the same block type with the same combinatorial parameters.
bool regina::SatBlockModel::operator== |
( |
const SatBlockModel & |
other | ) |
const |
|
inline |
Determines whether this and the given object model saturated blocks of the same type with the same combinatorial parameters.
This is equivalent to testing whether the blocks returned by block() compare as equal. See SatBlock::operator==() for further details on what this comparison means.
Assuming you created your models using the block-specific factory routines (SatTriPrism::model(), SatCube::model(), etc.), if two models compare as equal then their triangulations should be combinatorially identical. At the time of writing, the converse is also true: all models created from non-equal blocks yield non-identical (and moreover non-isomorphic) triangulations.
- Parameters
-
other | the model to compare with this. |
- Returns
true
if and only if this and the given object model the same block type with the same combinatorial parameters.
Returns a short text representation of this object.
This text should be human-readable, should use plain ASCII characters where possible, and should not contain any newlines.
Within these limits, this short text ouptut should be as information-rich as possible, since in most cases this forms the basis for the Python __str__()
and __repr__()
functions.
- Python
- The Python "stringification" function
__str__()
will use precisely this function, and for most classes the Python __repr__()
function will incorporate this into its output.
- Returns
- a short text representation of this object.
Returns a short text representation of this object using unicode characters.
Like str(), this text should be human-readable, should not contain any newlines, and (within these constraints) should be as information-rich as is reasonable.
Unlike str(), this function may use unicode characters to make the output more pleasant to read. The string that is returned will be encoded in UTF-8.
- Returns
- a short text representation of this object.