Regina Calculation Engine
|
Represents a single node in a model graph for a knot or link. More...
#include <link/modellinkgraph.h>
Public Member Functions | |
int | index () const |
Returns the index of this node within the overall graph. More... | |
ModelLinkGraphArc | arc (int which) |
Returns a reference to one of the four arcs of the graph that exit this node. More... | |
const ModelLinkGraphArc & | adj (int which) const |
Returns the arc at the other end of the given graph edge that exits this node. More... | |
void | writeTextShort (std::ostream &out) const |
Writes a short text representation of this node to the given output stream. More... | |
void | writeTextLong (std::ostream &out) const |
Writes a detailed text representation of this node to the given output stream. More... | |
ModelLinkGraphNode (const ModelLinkGraphNode &)=delete | |
ModelLinkGraphNode & | operator= (const ModelLinkGraphNode &)=delete |
size_t | markedIndex () const |
Returns the index at which this object is stored in an MarkedVector. 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... | |
Friends | |
class | ModelLinkGraph |
Represents a single node in a model graph for a knot or link.
If a graph has n nodes, then these are numbered 0,...,n-1. The number assigned to this node can be accessed by calling index(). Note that nodes may be reindexed when other nodes are added or removed - if you wish to track a particular node through such operations then you should use a pointer to the relevant ModelLinkGraphNode instead.
|
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.
|
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.
str()
.
|
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.