|
Regina Calculation Engine
|
Represents a 4-dimensional triangulation, typically of a 4-manifold. More...
#include <triangulation/dim4.h>
Public Types | |
| typedef std::vector< Pentachoron< 4 > * >::const_iterator | PentachoronIterator |
| A dimension-specific alias for SimplexIterator, used to iterate through pentachora. More... | |
| typedef FaceList< 4, 3 >::Iterator | TetrahedronIterator |
| Used to iterate through tetrahedra. More... | |
| typedef FaceList< 4, 2 >::Iterator | TriangleIterator |
| Used to iterate through triangles. More... | |
| typedef FaceList< 4, 1 >::Iterator | EdgeIterator |
| Used to iterate through edges. More... | |
| typedef FaceList< 4, 0 >::Iterator | VertexIterator |
| Used to iterate through vertices. More... | |
| typedef Packet | SafePointeeType |
| The type of object being pointed to. More... | |
| typedef std::vector< Simplex< dim > * >::const_iterator | SimplexIterator |
| Used to iterate through top-dimensional simplices. More... | |
| typedef std::vector< Component< dim > * >::const_iterator | ComponentIterator |
| Used to iterate through connected components. More... | |
| typedef std::vector< BoundaryComponent< dim > * >::const_iterator | BoundaryComponentIterator |
| Used to iterate through boundary components. More... | |
Public Member Functions | |
| 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... | |
| bool | hasSafePtr () const |
| Is there one or more SafePtr currently pointing to this object? More... | |
Packet Identification | |
| virtual PacketType | type () const =0 |
| Returns the unique integer ID representing this type of packet. More... | |
| virtual std::string | typeName () const =0 |
| Returns an English name for this type of packet. More... | |
| const std::string & | label () const |
| Returns the label associated with this individual packet. More... | |
| std::string | humanLabel () const |
| Returns the label associated with this individual packet, adjusted if necessary for human-readable output. More... | |
| std::string | adornedLabel (const std::string &adornment) const |
| Returns the label of this packet adorned with the given string. More... | |
| void | setLabel (const std::string &label) |
| Sets the label associated with this individual packet. More... | |
| std::string | fullName () const |
| Returns a descriptive text string for the packet. More... | |
Tags | |
| bool | hasTag (const std::string &tag) const |
| Determines whether this packet has the given associated tag. More... | |
| bool | hasTags () const |
| Determines whether this packet has any associated tags at all. More... | |
| bool | addTag (const std::string &tag) |
| Associates the given tag with this packet. More... | |
| bool | removeTag (const std::string &tag) |
| Removes the association of the given tag with this packet. More... | |
| void | removeAllTags () |
| Removes all associated tags from this packet. More... | |
| const std::set< std::string > & | tags () const |
| Returns the set of all tags associated with this packet. More... | |
Event Handling | |
| bool | listen (PacketListener *listener) |
| Registers the given packet listener to listen for events on this packet. More... | |
| bool | isListening (PacketListener *listener) |
| Determines whether the given packet listener is currently listening for events on this packet. More... | |
| bool | unlisten (PacketListener *listener) |
| Unregisters the given packet listener so that it no longer listens for events on this packet. More... | |
Tree Queries | |
| Packet * | parent () const |
| Determines the parent packet in the tree structure. More... | |
| Packet * | firstChild () const |
| Determines the first child of this packet in the tree structure. More... | |
| Packet * | lastChild () const |
| Determines the last child of this packet in the tree structure. More... | |
| Packet * | nextSibling () const |
| Determines the next sibling of this packet in the tree structure. More... | |
| Packet * | prevSibling () const |
| Determines the previous sibling of this packet in the tree structure. More... | |
| Packet * | root () const |
| Determines the root of the tree to which this packet belongs. More... | |
| unsigned | levelsDownTo (const Packet *descendant) const |
| Counts the number of levels between this packet and its given descendant in the tree structure. More... | |
| unsigned | levelsUpTo (const Packet *ancestor) const |
| Counts the number of levels between this packet and its given ancestor in the tree structure. More... | |
| bool | isGrandparentOf (const Packet *descendant) const |
| Determines if this packet is equal to or an ancestor of the given packet in the tree structure. More... | |
| size_t | countChildren () const |
| Returns the number of immediate children of this packet. More... | |
| size_t | countDescendants () const |
| Returns the total number of strict descendants of this packet. More... | |
| size_t | totalTreeSize () const |
| Determines the total number of packets in the tree or subtree for which this packet is matriarch. More... | |
Tree Manipulation | |
| void | insertChildFirst (Packet *child) |
| Inserts the given packet as the first child of this packet. More... | |
| void | insertChildLast (Packet *child) |
| Inserts the given packet as the last child of this packet. More... | |
| void | insertChildAfter (Packet *newChild, Packet *prevChild) |
| Inserts the given packet as a child of this packet at the given location in this packet's child list. More... | |
| void | makeOrphan () |
| Cuts this packet away from its parent in the tree structure and instead makes it matriarch of its own tree. More... | |
| void | reparent (Packet *newParent, bool first=false) |
| Cuts this packet away from its parent in the tree structure, and inserts it as a child of the given packet instead. More... | |
| void | transferChildren (Packet *newParent) |
| Cuts all of this packet's children out of the packet tree, and reinserts them as children of the given packet instead. More... | |
| void | swapWithNextSibling () |
| Swaps this packet with its next sibling in the sequence of children beneath their common parent packet. More... | |
| void | moveUp (unsigned steps=1) |
| Moves this packet the given number of steps towards the beginning of its sibling list. More... | |
| void | moveDown (unsigned steps=1) |
| Moves this packet the given number of steps towards the end of its sibling list. More... | |
| void | moveToFirst () |
| Moves this packet to be the first in its sibling list. More... | |
| void | moveToLast () |
| Moves this packet to be the last in its sibling list. More... | |
| void | sortChildren () |
| Sorts the immediate children of this packet according to their packet labels. More... | |
Searching and Iterating | |
| SubtreeIterator | begin () |
| Returns an iterator at the beginning of the range of packets in the subtree rooted at this packet. More... | |
| SubtreeIterator | end () |
| Returns an iterator beyond the end of the range of packets in the subtree rooted at this packet. More... | |
| PacketDescendants | descendants () const |
| Returns a lightweight object for iterating through all strict descendants of this packet in the packet tree. More... | |
| PacketChildren | children () const |
| Returns a lightweight object for iterating through the immediate children of this packet. More... | |
| Packet * | nextTreePacket () |
| Finds the next packet after this in a complete depth-first iteration of the entire tree structure to which this packet belongs. More... | |
| const Packet * | nextTreePacket () const |
| Finds the next packet after this in a complete depth-first iteration of the entire tree structure to which this packet belongs. More... | |
| Packet * | nextTreePacket (const std::string &type) |
| Finds the next packet after this of the requested type in a complete depth-first iteration of the entire tree structure. More... | |
| const Packet * | nextTreePacket (const std::string &type) const |
| Finds the next packet after this of the requested type in a complete depth-first iteration of the entire tree structure. More... | |
| Packet * | firstTreePacket (const std::string &type) |
| Finds the first packet of the requested type in a complete depth-first iteration of the tree structure. More... | |
| const Packet * | firstTreePacket (const std::string &type) const |
| Finds the first packet of the requested type in a complete depth-first iteration of the tree structure. More... | |
| Packet * | findPacketLabel (const std::string &label) |
| Finds the packet with the requested label in the tree or subtree for which this packet is matriarch. More... | |
| const Packet * | findPacketLabel (const std::string &label) const |
| Finds the packet with the requested label in the tree or subtree for which this packet is matriarch. More... | |
Packet Dependencies | |
| bool | isPacketEditable () const |
| Determines whether this packet can be altered without invalidating or otherwise upsetting any of its immediate children. More... | |
Cloning | |
| Packet * | clone (bool cloneDescendants=false, bool end=true) const |
| Clones this packet (and possibly its descendants), assigns to it a suitable unused label and inserts the clone into the tree as a sibling of this packet. More... | |
Packet Identification | |
| virtual PacketType | type () const =0 |
| Returns the unique integer ID representing this type of packet. More... | |
| virtual std::string | typeName () const =0 |
| Returns an English name for this type of packet. More... | |
| const std::string & | label () const |
| Returns the label associated with this individual packet. More... | |
| std::string | humanLabel () const |
| Returns the label associated with this individual packet, adjusted if necessary for human-readable output. More... | |
| std::string | adornedLabel (const std::string &adornment) const |
| Returns the label of this packet adorned with the given string. More... | |
| void | setLabel (const std::string &label) |
| Sets the label associated with this individual packet. More... | |
| std::string | fullName () const |
| Returns a descriptive text string for the packet. More... | |
Tags | |
| bool | hasTag (const std::string &tag) const |
| Determines whether this packet has the given associated tag. More... | |
| bool | hasTags () const |
| Determines whether this packet has any associated tags at all. More... | |
| bool | addTag (const std::string &tag) |
| Associates the given tag with this packet. More... | |
| bool | removeTag (const std::string &tag) |
| Removes the association of the given tag with this packet. More... | |
| void | removeAllTags () |
| Removes all associated tags from this packet. More... | |
| const std::set< std::string > & | tags () const |
| Returns the set of all tags associated with this packet. More... | |
Event Handling | |
| bool | listen (PacketListener *listener) |
| Registers the given packet listener to listen for events on this packet. More... | |
| bool | isListening (PacketListener *listener) |
| Determines whether the given packet listener is currently listening for events on this packet. More... | |
| bool | unlisten (PacketListener *listener) |
| Unregisters the given packet listener so that it no longer listens for events on this packet. More... | |
Tree Queries | |
| Packet * | parent () const |
| Determines the parent packet in the tree structure. More... | |
| Packet * | firstChild () const |
| Determines the first child of this packet in the tree structure. More... | |
| Packet * | lastChild () const |
| Determines the last child of this packet in the tree structure. More... | |
| Packet * | nextSibling () const |
| Determines the next sibling of this packet in the tree structure. More... | |
| Packet * | prevSibling () const |
| Determines the previous sibling of this packet in the tree structure. More... | |
| Packet * | root () const |
| Determines the root of the tree to which this packet belongs. More... | |
| unsigned | levelsDownTo (const Packet *descendant) const |
| Counts the number of levels between this packet and its given descendant in the tree structure. More... | |
| unsigned | levelsUpTo (const Packet *ancestor) const |
| Counts the number of levels between this packet and its given ancestor in the tree structure. More... | |
| bool | isGrandparentOf (const Packet *descendant) const |
| Determines if this packet is equal to or an ancestor of the given packet in the tree structure. More... | |
| size_t | countChildren () const |
| Returns the number of immediate children of this packet. More... | |
| size_t | countDescendants () const |
| Returns the total number of strict descendants of this packet. More... | |
| size_t | totalTreeSize () const |
| Determines the total number of packets in the tree or subtree for which this packet is matriarch. More... | |
Tree Manipulation | |
| void | insertChildFirst (Packet *child) |
| Inserts the given packet as the first child of this packet. More... | |
| void | insertChildLast (Packet *child) |
| Inserts the given packet as the last child of this packet. More... | |
| void | insertChildAfter (Packet *newChild, Packet *prevChild) |
| Inserts the given packet as a child of this packet at the given location in this packet's child list. More... | |
| void | makeOrphan () |
| Cuts this packet away from its parent in the tree structure and instead makes it matriarch of its own tree. More... | |
| void | reparent (Packet *newParent, bool first=false) |
| Cuts this packet away from its parent in the tree structure, and inserts it as a child of the given packet instead. More... | |
| void | transferChildren (Packet *newParent) |
| Cuts all of this packet's children out of the packet tree, and reinserts them as children of the given packet instead. More... | |
| void | swapWithNextSibling () |
| Swaps this packet with its next sibling in the sequence of children beneath their common parent packet. More... | |
| void | moveUp (unsigned steps=1) |
| Moves this packet the given number of steps towards the beginning of its sibling list. More... | |
| void | moveDown (unsigned steps=1) |
| Moves this packet the given number of steps towards the end of its sibling list. More... | |
| void | moveToFirst () |
| Moves this packet to be the first in its sibling list. More... | |
| void | moveToLast () |
| Moves this packet to be the last in its sibling list. More... | |
| void | sortChildren () |
| Sorts the immediate children of this packet according to their packet labels. More... | |
Searching and Iterating | |
| SubtreeIterator | begin () |
| Returns an iterator at the beginning of the range of packets in the subtree rooted at this packet. More... | |
| SubtreeIterator | end () |
| Returns an iterator beyond the end of the range of packets in the subtree rooted at this packet. More... | |
| PacketDescendants | descendants () const |
| Returns a lightweight object for iterating through all strict descendants of this packet in the packet tree. More... | |
| PacketChildren | children () const |
| Returns a lightweight object for iterating through the immediate children of this packet. More... | |
| Packet * | nextTreePacket () |
| Finds the next packet after this in a complete depth-first iteration of the entire tree structure to which this packet belongs. More... | |
| const Packet * | nextTreePacket () const |
| Finds the next packet after this in a complete depth-first iteration of the entire tree structure to which this packet belongs. More... | |
| Packet * | nextTreePacket (const std::string &type) |
| Finds the next packet after this of the requested type in a complete depth-first iteration of the entire tree structure. More... | |
| const Packet * | nextTreePacket (const std::string &type) const |
| Finds the next packet after this of the requested type in a complete depth-first iteration of the entire tree structure. More... | |
| Packet * | firstTreePacket (const std::string &type) |
| Finds the first packet of the requested type in a complete depth-first iteration of the tree structure. More... | |
| const Packet * | firstTreePacket (const std::string &type) const |
| Finds the first packet of the requested type in a complete depth-first iteration of the tree structure. More... | |
| Packet * | findPacketLabel (const std::string &label) |
| Finds the packet with the requested label in the tree or subtree for which this packet is matriarch. More... | |
| const Packet * | findPacketLabel (const std::string &label) const |
| Finds the packet with the requested label in the tree or subtree for which this packet is matriarch. More... | |
Packet Dependencies | |
| bool | isPacketEditable () const |
| Determines whether this packet can be altered without invalidating or otherwise upsetting any of its immediate children. More... | |
Cloning | |
| Packet * | clone (bool cloneDescendants=false, bool end=true) const |
| Clones this packet (and possibly its descendants), assigns to it a suitable unused label and inserts the clone into the tree as a sibling of this packet. More... | |
Packet Identification | |
| virtual PacketType | type () const =0 |
| Returns the unique integer ID representing this type of packet. More... | |
| virtual std::string | typeName () const =0 |
| Returns an English name for this type of packet. More... | |
| const std::string & | label () const |
| Returns the label associated with this individual packet. More... | |
| std::string | humanLabel () const |
| Returns the label associated with this individual packet, adjusted if necessary for human-readable output. More... | |
| std::string | adornedLabel (const std::string &adornment) const |
| Returns the label of this packet adorned with the given string. More... | |
| void | setLabel (const std::string &label) |
| Sets the label associated with this individual packet. More... | |
| std::string | fullName () const |
| Returns a descriptive text string for the packet. More... | |
Tags | |
| bool | hasTag (const std::string &tag) const |
| Determines whether this packet has the given associated tag. More... | |
| bool | hasTags () const |
| Determines whether this packet has any associated tags at all. More... | |
| bool | addTag (const std::string &tag) |
| Associates the given tag with this packet. More... | |
| bool | removeTag (const std::string &tag) |
| Removes the association of the given tag with this packet. More... | |
| void | removeAllTags () |
| Removes all associated tags from this packet. More... | |
| const std::set< std::string > & | tags () const |
| Returns the set of all tags associated with this packet. More... | |
Event Handling | |
| bool | listen (PacketListener *listener) |
| Registers the given packet listener to listen for events on this packet. More... | |
| bool | isListening (PacketListener *listener) |
| Determines whether the given packet listener is currently listening for events on this packet. More... | |
| bool | unlisten (PacketListener *listener) |
| Unregisters the given packet listener so that it no longer listens for events on this packet. More... | |
Tree Queries | |
| Packet * | parent () const |
| Determines the parent packet in the tree structure. More... | |
| Packet * | firstChild () const |
| Determines the first child of this packet in the tree structure. More... | |
| Packet * | lastChild () const |
| Determines the last child of this packet in the tree structure. More... | |
| Packet * | nextSibling () const |
| Determines the next sibling of this packet in the tree structure. More... | |
| Packet * | prevSibling () const |
| Determines the previous sibling of this packet in the tree structure. More... | |
| Packet * | root () const |
| Determines the root of the tree to which this packet belongs. More... | |
| unsigned | levelsDownTo (const Packet *descendant) const |
| Counts the number of levels between this packet and its given descendant in the tree structure. More... | |
| unsigned | levelsUpTo (const Packet *ancestor) const |
| Counts the number of levels between this packet and its given ancestor in the tree structure. More... | |
| bool | isGrandparentOf (const Packet *descendant) const |
| Determines if this packet is equal to or an ancestor of the given packet in the tree structure. More... | |
| size_t | countChildren () const |
| Returns the number of immediate children of this packet. More... | |
| size_t | countDescendants () const |
| Returns the total number of strict descendants of this packet. More... | |
| size_t | totalTreeSize () const |
| Determines the total number of packets in the tree or subtree for which this packet is matriarch. More... | |
Tree Manipulation | |
| void | insertChildFirst (Packet *child) |
| Inserts the given packet as the first child of this packet. More... | |
| void | insertChildLast (Packet *child) |
| Inserts the given packet as the last child of this packet. More... | |
| void | insertChildAfter (Packet *newChild, Packet *prevChild) |
| Inserts the given packet as a child of this packet at the given location in this packet's child list. More... | |
| void | makeOrphan () |
| Cuts this packet away from its parent in the tree structure and instead makes it matriarch of its own tree. More... | |
| void | reparent (Packet *newParent, bool first=false) |
| Cuts this packet away from its parent in the tree structure, and inserts it as a child of the given packet instead. More... | |
| void | transferChildren (Packet *newParent) |
| Cuts all of this packet's children out of the packet tree, and reinserts them as children of the given packet instead. More... | |
| void | swapWithNextSibling () |
| Swaps this packet with its next sibling in the sequence of children beneath their common parent packet. More... | |
| void | moveUp (unsigned steps=1) |
| Moves this packet the given number of steps towards the beginning of its sibling list. More... | |
| void | moveDown (unsigned steps=1) |
| Moves this packet the given number of steps towards the end of its sibling list. More... | |
| void | moveToFirst () |
| Moves this packet to be the first in its sibling list. More... | |
| void | moveToLast () |
| Moves this packet to be the last in its sibling list. More... | |
| void | sortChildren () |
| Sorts the immediate children of this packet according to their packet labels. More... | |
Searching and Iterating | |
| SubtreeIterator | begin () |
| Returns an iterator at the beginning of the range of packets in the subtree rooted at this packet. More... | |
| SubtreeIterator | end () |
| Returns an iterator beyond the end of the range of packets in the subtree rooted at this packet. More... | |
| PacketDescendants | descendants () const |
| Returns a lightweight object for iterating through all strict descendants of this packet in the packet tree. More... | |
| PacketChildren | children () const |
| Returns a lightweight object for iterating through the immediate children of this packet. More... | |
| Packet * | nextTreePacket () |
| Finds the next packet after this in a complete depth-first iteration of the entire tree structure to which this packet belongs. More... | |
| const Packet * | nextTreePacket () const |
| Finds the next packet after this in a complete depth-first iteration of the entire tree structure to which this packet belongs. More... | |
| Packet * | nextTreePacket (const std::string &type) |
| Finds the next packet after this of the requested type in a complete depth-first iteration of the entire tree structure. More... | |
| const Packet * | nextTreePacket (const std::string &type) const |
| Finds the next packet after this of the requested type in a complete depth-first iteration of the entire tree structure. More... | |
| Packet * | firstTreePacket (const std::string &type) |
| Finds the first packet of the requested type in a complete depth-first iteration of the tree structure. More... | |
| const Packet * | firstTreePacket (const std::string &type) const |
| Finds the first packet of the requested type in a complete depth-first iteration of the tree structure. More... | |
| Packet * | findPacketLabel (const std::string &label) |
| Finds the packet with the requested label in the tree or subtree for which this packet is matriarch. More... | |
| const Packet * | findPacketLabel (const std::string &label) const |
| Finds the packet with the requested label in the tree or subtree for which this packet is matriarch. More... | |
Packet Dependencies | |
| bool | isPacketEditable () const |
| Determines whether this packet can be altered without invalidating or otherwise upsetting any of its immediate children. More... | |
Cloning | |
| Packet * | clone (bool cloneDescendants=false, bool end=true) const |
| Clones this packet (and possibly its descendants), assigns to it a suitable unused label and inserts the clone into the tree as a sibling of this packet. More... | |
Packet Identification | |
| virtual PacketType | type () const =0 |
| Returns the unique integer ID representing this type of packet. More... | |
| virtual std::string | typeName () const =0 |
| Returns an English name for this type of packet. More... | |
| const std::string & | label () const |
| Returns the label associated with this individual packet. More... | |
| std::string | humanLabel () const |
| Returns the label associated with this individual packet, adjusted if necessary for human-readable output. More... | |
| std::string | adornedLabel (const std::string &adornment) const |
| Returns the label of this packet adorned with the given string. More... | |
| void | setLabel (const std::string &label) |
| Sets the label associated with this individual packet. More... | |
| std::string | fullName () const |
| Returns a descriptive text string for the packet. More... | |
Tags | |
| bool | hasTag (const std::string &tag) const |
| Determines whether this packet has the given associated tag. More... | |
| bool | hasTags () const |
| Determines whether this packet has any associated tags at all. More... | |
| bool | addTag (const std::string &tag) |
| Associates the given tag with this packet. More... | |
| bool | removeTag (const std::string &tag) |
| Removes the association of the given tag with this packet. More... | |
| void | removeAllTags () |
| Removes all associated tags from this packet. More... | |
| const std::set< std::string > & | tags () const |
| Returns the set of all tags associated with this packet. More... | |
Event Handling | |
| bool | listen (PacketListener *listener) |
| Registers the given packet listener to listen for events on this packet. More... | |
| bool | isListening (PacketListener *listener) |
| Determines whether the given packet listener is currently listening for events on this packet. More... | |
| bool | unlisten (PacketListener *listener) |
| Unregisters the given packet listener so that it no longer listens for events on this packet. More... | |
Tree Queries | |
| Packet * | parent () const |
| Determines the parent packet in the tree structure. More... | |
| Packet * | firstChild () const |
| Determines the first child of this packet in the tree structure. More... | |
| Packet * | lastChild () const |
| Determines the last child of this packet in the tree structure. More... | |
| Packet * | nextSibling () const |
| Determines the next sibling of this packet in the tree structure. More... | |
| Packet * | prevSibling () const |
| Determines the previous sibling of this packet in the tree structure. More... | |
| Packet * | root () const |
| Determines the root of the tree to which this packet belongs. More... | |
| unsigned | levelsDownTo (const Packet *descendant) const |
| Counts the number of levels between this packet and its given descendant in the tree structure. More... | |
| unsigned | levelsUpTo (const Packet *ancestor) const |
| Counts the number of levels between this packet and its given ancestor in the tree structure. More... | |
| bool | isGrandparentOf (const Packet *descendant) const |
| Determines if this packet is equal to or an ancestor of the given packet in the tree structure. More... | |
| size_t | countChildren () const |
| Returns the number of immediate children of this packet. More... | |
| size_t | countDescendants () const |
| Returns the total number of strict descendants of this packet. More... | |
| size_t | totalTreeSize () const |
| Determines the total number of packets in the tree or subtree for which this packet is matriarch. More... | |
Tree Manipulation | |
| void | insertChildFirst (Packet *child) |
| Inserts the given packet as the first child of this packet. More... | |
| void | insertChildLast (Packet *child) |
| Inserts the given packet as the last child of this packet. More... | |
| void | insertChildAfter (Packet *newChild, Packet *prevChild) |
| Inserts the given packet as a child of this packet at the given location in this packet's child list. More... | |
| void | makeOrphan () |
| Cuts this packet away from its parent in the tree structure and instead makes it matriarch of its own tree. More... | |
| void | reparent (Packet *newParent, bool first=false) |
| Cuts this packet away from its parent in the tree structure, and inserts it as a child of the given packet instead. More... | |
| void | transferChildren (Packet *newParent) |
| Cuts all of this packet's children out of the packet tree, and reinserts them as children of the given packet instead. More... | |
| void | swapWithNextSibling () |
| Swaps this packet with its next sibling in the sequence of children beneath their common parent packet. More... | |
| void | moveUp (unsigned steps=1) |
| Moves this packet the given number of steps towards the beginning of its sibling list. More... | |
| void | moveDown (unsigned steps=1) |
| Moves this packet the given number of steps towards the end of its sibling list. More... | |
| void | moveToFirst () |
| Moves this packet to be the first in its sibling list. More... | |
| void | moveToLast () |
| Moves this packet to be the last in its sibling list. More... | |
| void | sortChildren () |
| Sorts the immediate children of this packet according to their packet labels. More... | |
Searching and Iterating | |
| SubtreeIterator | begin () |
| Returns an iterator at the beginning of the range of packets in the subtree rooted at this packet. More... | |
| SubtreeIterator | end () |
| Returns an iterator beyond the end of the range of packets in the subtree rooted at this packet. More... | |
| PacketDescendants | descendants () const |
| Returns a lightweight object for iterating through all strict descendants of this packet in the packet tree. More... | |
| PacketChildren | children () const |
| Returns a lightweight object for iterating through the immediate children of this packet. More... | |
| Packet * | nextTreePacket () |
| Finds the next packet after this in a complete depth-first iteration of the entire tree structure to which this packet belongs. More... | |
| const Packet * | nextTreePacket () const |
| Finds the next packet after this in a complete depth-first iteration of the entire tree structure to which this packet belongs. More... | |
| Packet * | nextTreePacket (const std::string &type) |
| Finds the next packet after this of the requested type in a complete depth-first iteration of the entire tree structure. More... | |
| const Packet * | nextTreePacket (const std::string &type) const |
| Finds the next packet after this of the requested type in a complete depth-first iteration of the entire tree structure. More... | |
| Packet * | firstTreePacket (const std::string &type) |
| Finds the first packet of the requested type in a complete depth-first iteration of the tree structure. More... | |
| const Packet * | firstTreePacket (const std::string &type) const |
| Finds the first packet of the requested type in a complete depth-first iteration of the tree structure. More... | |
| Packet * | findPacketLabel (const std::string &label) |
| Finds the packet with the requested label in the tree or subtree for which this packet is matriarch. More... | |
| const Packet * | findPacketLabel (const std::string &label) const |
| Finds the packet with the requested label in the tree or subtree for which this packet is matriarch. More... | |
Packet Dependencies | |
| bool | isPacketEditable () const |
| Determines whether this packet can be altered without invalidating or otherwise upsetting any of its immediate children. More... | |
Cloning | |
| Packet * | clone (bool cloneDescendants=false, bool end=true) const |
| Clones this packet (and possibly its descendants), assigns to it a suitable unused label and inserts the clone into the tree as a sibling of this packet. More... | |
Packet Identification | |
| virtual PacketType | type () const =0 |
| Returns the unique integer ID representing this type of packet. More... | |
| virtual std::string | typeName () const =0 |
| Returns an English name for this type of packet. More... | |
| const std::string & | label () const |
| Returns the label associated with this individual packet. More... | |
| std::string | humanLabel () const |
| Returns the label associated with this individual packet, adjusted if necessary for human-readable output. More... | |
| std::string | adornedLabel (const std::string &adornment) const |
| Returns the label of this packet adorned with the given string. More... | |
| void | setLabel (const std::string &label) |
| Sets the label associated with this individual packet. More... | |
| std::string | fullName () const |
| Returns a descriptive text string for the packet. More... | |
Tags | |
| bool | hasTag (const std::string &tag) const |
| Determines whether this packet has the given associated tag. More... | |
| bool | hasTags () const |
| Determines whether this packet has any associated tags at all. More... | |
| bool | addTag (const std::string &tag) |
| Associates the given tag with this packet. More... | |
| bool | removeTag (const std::string &tag) |
| Removes the association of the given tag with this packet. More... | |
| void | removeAllTags () |
| Removes all associated tags from this packet. More... | |
| const std::set< std::string > & | tags () const |
| Returns the set of all tags associated with this packet. More... | |
Event Handling | |
| bool | listen (PacketListener *listener) |
| Registers the given packet listener to listen for events on this packet. More... | |
| bool | isListening (PacketListener *listener) |
| Determines whether the given packet listener is currently listening for events on this packet. More... | |
| bool | unlisten (PacketListener *listener) |
| Unregisters the given packet listener so that it no longer listens for events on this packet. More... | |
Tree Queries | |
| Packet * | parent () const |
| Determines the parent packet in the tree structure. More... | |
| Packet * | firstChild () const |
| Determines the first child of this packet in the tree structure. More... | |
| Packet * | lastChild () const |
| Determines the last child of this packet in the tree structure. More... | |
| Packet * | nextSibling () const |
| Determines the next sibling of this packet in the tree structure. More... | |
| Packet * | prevSibling () const |
| Determines the previous sibling of this packet in the tree structure. More... | |
| Packet * | root () const |
| Determines the root of the tree to which this packet belongs. More... | |
| unsigned | levelsDownTo (const Packet *descendant) const |
| Counts the number of levels between this packet and its given descendant in the tree structure. More... | |
| unsigned | levelsUpTo (const Packet *ancestor) const |
| Counts the number of levels between this packet and its given ancestor in the tree structure. More... | |
| bool | isGrandparentOf (const Packet *descendant) const |
| Determines if this packet is equal to or an ancestor of the given packet in the tree structure. More... | |
| size_t | countChildren () const |
| Returns the number of immediate children of this packet. More... | |
| size_t | countDescendants () const |
| Returns the total number of strict descendants of this packet. More... | |
| size_t | totalTreeSize () const |
| Determines the total number of packets in the tree or subtree for which this packet is matriarch. More... | |
Tree Manipulation | |
| void | insertChildFirst (Packet *child) |
| Inserts the given packet as the first child of this packet. More... | |
| void | insertChildLast (Packet *child) |
| Inserts the given packet as the last child of this packet. More... | |
| void | insertChildAfter (Packet *newChild, Packet *prevChild) |
| Inserts the given packet as a child of this packet at the given location in this packet's child list. More... | |
| void | makeOrphan () |
| Cuts this packet away from its parent in the tree structure and instead makes it matriarch of its own tree. More... | |
| void | reparent (Packet *newParent, bool first=false) |
| Cuts this packet away from its parent in the tree structure, and inserts it as a child of the given packet instead. More... | |
| void | transferChildren (Packet *newParent) |
| Cuts all of this packet's children out of the packet tree, and reinserts them as children of the given packet instead. More... | |
| void | swapWithNextSibling () |
| Swaps this packet with its next sibling in the sequence of children beneath their common parent packet. More... | |
| void | moveUp (unsigned steps=1) |
| Moves this packet the given number of steps towards the beginning of its sibling list. More... | |
| void | moveDown (unsigned steps=1) |
| Moves this packet the given number of steps towards the end of its sibling list. More... | |
| void | moveToFirst () |
| Moves this packet to be the first in its sibling list. More... | |
| void | moveToLast () |
| Moves this packet to be the last in its sibling list. More... | |
| void | sortChildren () |
| Sorts the immediate children of this packet according to their packet labels. More... | |
Searching and Iterating | |
| SubtreeIterator | begin () |
| Returns an iterator at the beginning of the range of packets in the subtree rooted at this packet. More... | |
| SubtreeIterator | end () |
| Returns an iterator beyond the end of the range of packets in the subtree rooted at this packet. More... | |
| PacketDescendants | descendants () const |
| Returns a lightweight object for iterating through all strict descendants of this packet in the packet tree. More... | |
| PacketChildren | children () const |
| Returns a lightweight object for iterating through the immediate children of this packet. More... | |
| Packet * | nextTreePacket () |
| Finds the next packet after this in a complete depth-first iteration of the entire tree structure to which this packet belongs. More... | |
| const Packet * | nextTreePacket () const |
| Finds the next packet after this in a complete depth-first iteration of the entire tree structure to which this packet belongs. More... | |
| Packet * | nextTreePacket (const std::string &type) |
| Finds the next packet after this of the requested type in a complete depth-first iteration of the entire tree structure. More... | |
| const Packet * | nextTreePacket (const std::string &type) const |
| Finds the next packet after this of the requested type in a complete depth-first iteration of the entire tree structure. More... | |
| Packet * | firstTreePacket (const std::string &type) |
| Finds the first packet of the requested type in a complete depth-first iteration of the tree structure. More... | |
| const Packet * | firstTreePacket (const std::string &type) const |
| Finds the first packet of the requested type in a complete depth-first iteration of the tree structure. More... | |
| Packet * | findPacketLabel (const std::string &label) |
| Finds the packet with the requested label in the tree or subtree for which this packet is matriarch. More... | |
| const Packet * | findPacketLabel (const std::string &label) const |
| Finds the packet with the requested label in the tree or subtree for which this packet is matriarch. More... | |
Packet Dependencies | |
| bool | isPacketEditable () const |
| Determines whether this packet can be altered without invalidating or otherwise upsetting any of its immediate children. More... | |
Cloning | |
| Packet * | clone (bool cloneDescendants=false, bool end=true) const |
| Clones this packet (and possibly its descendants), assigns to it a suitable unused label and inserts the clone into the tree as a sibling of this packet. More... | |
Packet Identification | |
| virtual PacketType | type () const =0 |
| Returns the unique integer ID representing this type of packet. More... | |
| virtual std::string | typeName () const =0 |
| Returns an English name for this type of packet. More... | |
| const std::string & | label () const |
| Returns the label associated with this individual packet. More... | |
| std::string | humanLabel () const |
| Returns the label associated with this individual packet, adjusted if necessary for human-readable output. More... | |
| std::string | adornedLabel (const std::string &adornment) const |
| Returns the label of this packet adorned with the given string. More... | |
| void | setLabel (const std::string &label) |
| Sets the label associated with this individual packet. More... | |
| std::string | fullName () const |
| Returns a descriptive text string for the packet. More... | |
Tags | |
| bool | hasTag (const std::string &tag) const |
| Determines whether this packet has the given associated tag. More... | |
| bool | hasTags () const |
| Determines whether this packet has any associated tags at all. More... | |
| bool | addTag (const std::string &tag) |
| Associates the given tag with this packet. More... | |
| bool | removeTag (const std::string &tag) |
| Removes the association of the given tag with this packet. More... | |
| void | removeAllTags () |
| Removes all associated tags from this packet. More... | |
| const std::set< std::string > & | tags () const |
| Returns the set of all tags associated with this packet. More... | |
Event Handling | |
| bool | listen (PacketListener *listener) |
| Registers the given packet listener to listen for events on this packet. More... | |
| bool | isListening (PacketListener *listener) |
| Determines whether the given packet listener is currently listening for events on this packet. More... | |
| bool | unlisten (PacketListener *listener) |
| Unregisters the given packet listener so that it no longer listens for events on this packet. More... | |
Tree Queries | |
| Packet * | parent () const |
| Determines the parent packet in the tree structure. More... | |
| Packet * | firstChild () const |
| Determines the first child of this packet in the tree structure. More... | |
| Packet * | lastChild () const |
| Determines the last child of this packet in the tree structure. More... | |
| Packet * | nextSibling () const |
| Determines the next sibling of this packet in the tree structure. More... | |
| Packet * | prevSibling () const |
| Determines the previous sibling of this packet in the tree structure. More... | |
| Packet * | root () const |
| Determines the root of the tree to which this packet belongs. More... | |
| unsigned | levelsDownTo (const Packet *descendant) const |
| Counts the number of levels between this packet and its given descendant in the tree structure. More... | |
| unsigned | levelsUpTo (const Packet *ancestor) const |
| Counts the number of levels between this packet and its given ancestor in the tree structure. More... | |
| bool | isGrandparentOf (const Packet *descendant) const |
| Determines if this packet is equal to or an ancestor of the given packet in the tree structure. More... | |
| size_t | countChildren () const |
| Returns the number of immediate children of this packet. More... | |
| size_t | countDescendants () const |
| Returns the total number of strict descendants of this packet. More... | |
| size_t | totalTreeSize () const |
| Determines the total number of packets in the tree or subtree for which this packet is matriarch. More... | |
Tree Manipulation | |
| void | insertChildFirst (Packet *child) |
| Inserts the given packet as the first child of this packet. More... | |
| void | insertChildLast (Packet *child) |
| Inserts the given packet as the last child of this packet. More... | |
| void | insertChildAfter (Packet *newChild, Packet *prevChild) |
| Inserts the given packet as a child of this packet at the given location in this packet's child list. More... | |
| void | makeOrphan () |
| Cuts this packet away from its parent in the tree structure and instead makes it matriarch of its own tree. More... | |
| void | reparent (Packet *newParent, bool first=false) |
| Cuts this packet away from its parent in the tree structure, and inserts it as a child of the given packet instead. More... | |
| void | transferChildren (Packet *newParent) |
| Cuts all of this packet's children out of the packet tree, and reinserts them as children of the given packet instead. More... | |
| void | swapWithNextSibling () |
| Swaps this packet with its next sibling in the sequence of children beneath their common parent packet. More... | |
| void | moveUp (unsigned steps=1) |
| Moves this packet the given number of steps towards the beginning of its sibling list. More... | |
| void | moveDown (unsigned steps=1) |
| Moves this packet the given number of steps towards the end of its sibling list. More... | |
| void | moveToFirst () |
| Moves this packet to be the first in its sibling list. More... | |
| void | moveToLast () |
| Moves this packet to be the last in its sibling list. More... | |
| void | sortChildren () |
| Sorts the immediate children of this packet according to their packet labels. More... | |
Searching and Iterating | |
| SubtreeIterator | begin () |
| Returns an iterator at the beginning of the range of packets in the subtree rooted at this packet. More... | |
| SubtreeIterator | end () |
| Returns an iterator beyond the end of the range of packets in the subtree rooted at this packet. More... | |
| PacketDescendants | descendants () const |
| Returns a lightweight object for iterating through all strict descendants of this packet in the packet tree. More... | |
| PacketChildren | children () const |
| Returns a lightweight object for iterating through the immediate children of this packet. More... | |
| Packet * | nextTreePacket () |
| Finds the next packet after this in a complete depth-first iteration of the entire tree structure to which this packet belongs. More... | |
| const Packet * | nextTreePacket () const |
| Finds the next packet after this in a complete depth-first iteration of the entire tree structure to which this packet belongs. More... | |
| Packet * | firstTreePacket (const std::string &type) |
| Finds the first packet of the requested type in a complete depth-first iteration of the tree structure. More... | |
| const Packet * | firstTreePacket (const std::string &type) const |
| Finds the first packet of the requested type in a complete depth-first iteration of the tree structure. More... | |
| Packet * | nextTreePacket (const std::string &type) |
| Finds the next packet after this of the requested type in a complete depth-first iteration of the entire tree structure. More... | |
| const Packet * | nextTreePacket (const std::string &type) const |
| Finds the next packet after this of the requested type in a complete depth-first iteration of the entire tree structure. More... | |
| Packet * | findPacketLabel (const std::string &label) |
| Finds the packet with the requested label in the tree or subtree for which this packet is matriarch. More... | |
| const Packet * | findPacketLabel (const std::string &label) const |
| Finds the packet with the requested label in the tree or subtree for which this packet is matriarch. More... | |
Cloning | |
| Packet * | clone (bool cloneDescendants=false, bool end=true) const |
| Clones this packet (and possibly its descendants), assigns to it a suitable unused label and inserts the clone into the tree as a sibling of this packet. More... | |
Packet Identification | |
| virtual PacketType | type () const =0 |
| Returns the unique integer ID representing this type of packet. More... | |
| virtual std::string | typeName () const =0 |
| Returns an English name for this type of packet. More... | |
| const std::string & | label () const |
| Returns the label associated with this individual packet. More... | |
| std::string | humanLabel () const |
| Returns the label associated with this individual packet, adjusted if necessary for human-readable output. More... | |
| std::string | adornedLabel (const std::string &adornment) const |
| Returns the label of this packet adorned with the given string. More... | |
| void | setLabel (const std::string &label) |
| Sets the label associated with this individual packet. More... | |
| std::string | fullName () const |
| Returns a descriptive text string for the packet. More... | |
Tags | |
| bool | hasTag (const std::string &tag) const |
| Determines whether this packet has the given associated tag. More... | |
| bool | hasTags () const |
| Determines whether this packet has any associated tags at all. More... | |
| bool | addTag (const std::string &tag) |
| Associates the given tag with this packet. More... | |
| bool | removeTag (const std::string &tag) |
| Removes the association of the given tag with this packet. More... | |
| void | removeAllTags () |
| Removes all associated tags from this packet. More... | |
| const std::set< std::string > & | tags () const |
| Returns the set of all tags associated with this packet. More... | |
Event Handling | |
| bool | listen (PacketListener *listener) |
| Registers the given packet listener to listen for events on this packet. More... | |
| bool | isListening (PacketListener *listener) |
| Determines whether the given packet listener is currently listening for events on this packet. More... | |
| bool | unlisten (PacketListener *listener) |
| Unregisters the given packet listener so that it no longer listens for events on this packet. More... | |
Tree Queries | |
| Packet * | parent () const |
| Determines the parent packet in the tree structure. More... | |
| Packet * | firstChild () const |
| Determines the first child of this packet in the tree structure. More... | |
| Packet * | lastChild () const |
| Determines the last child of this packet in the tree structure. More... | |
| Packet * | nextSibling () const |
| Determines the next sibling of this packet in the tree structure. More... | |
| Packet * | prevSibling () const |
| Determines the previous sibling of this packet in the tree structure. More... | |
| Packet * | root () const |
| Determines the root of the tree to which this packet belongs. More... | |
| unsigned | levelsDownTo (const Packet *descendant) const |
| Counts the number of levels between this packet and its given descendant in the tree structure. More... | |
| unsigned | levelsUpTo (const Packet *ancestor) const |
| Counts the number of levels between this packet and its given ancestor in the tree structure. More... | |
| bool | isGrandparentOf (const Packet *descendant) const |
| Determines if this packet is equal to or an ancestor of the given packet in the tree structure. More... | |
| size_t | countChildren () const |
| Returns the number of immediate children of this packet. More... | |
| size_t | countDescendants () const |
| Returns the total number of strict descendants of this packet. More... | |
| size_t | totalTreeSize () const |
| Determines the total number of packets in the tree or subtree for which this packet is matriarch. More... | |
Tree Manipulation | |
| void | insertChildFirst (Packet *child) |
| Inserts the given packet as the first child of this packet. More... | |
| void | insertChildLast (Packet *child) |
| Inserts the given packet as the last child of this packet. More... | |
| void | insertChildAfter (Packet *newChild, Packet *prevChild) |
| Inserts the given packet as a child of this packet at the given location in this packet's child list. More... | |
| void | makeOrphan () |
| Cuts this packet away from its parent in the tree structure and instead makes it matriarch of its own tree. More... | |
| void | reparent (Packet *newParent, bool first=false) |
| Cuts this packet away from its parent in the tree structure, and inserts it as a child of the given packet instead. More... | |
| void | transferChildren (Packet *newParent) |
| Cuts all of this packet's children out of the packet tree, and reinserts them as children of the given packet instead. More... | |
| void | swapWithNextSibling () |
| Swaps this packet with its next sibling in the sequence of children beneath their common parent packet. More... | |
| void | moveUp (unsigned steps=1) |
| Moves this packet the given number of steps towards the beginning of its sibling list. More... | |
| void | moveDown (unsigned steps=1) |
| Moves this packet the given number of steps towards the end of its sibling list. More... | |
| void | moveToFirst () |
| Moves this packet to be the first in its sibling list. More... | |
| void | moveToLast () |
| Moves this packet to be the last in its sibling list. More... | |
| void | sortChildren () |
| Sorts the immediate children of this packet according to their packet labels. More... | |
Searching and Iterating | |
| SubtreeIterator | begin () |
| Returns an iterator at the beginning of the range of packets in the subtree rooted at this packet. More... | |
| SubtreeIterator | end () |
| Returns an iterator beyond the end of the range of packets in the subtree rooted at this packet. More... | |
| PacketDescendants | descendants () const |
| Returns a lightweight object for iterating through all strict descendants of this packet in the packet tree. More... | |
| PacketChildren | children () const |
| Returns a lightweight object for iterating through the immediate children of this packet. More... | |
| Packet * | nextTreePacket () |
| Finds the next packet after this in a complete depth-first iteration of the entire tree structure to which this packet belongs. More... | |
| const Packet * | nextTreePacket () const |
| Finds the next packet after this in a complete depth-first iteration of the entire tree structure to which this packet belongs. More... | |
| Packet * | nextTreePacket (const std::string &type) |
| Finds the next packet after this of the requested type in a complete depth-first iteration of the entire tree structure. More... | |
| const Packet * | nextTreePacket (const std::string &type) const |
| Finds the next packet after this of the requested type in a complete depth-first iteration of the entire tree structure. More... | |
| Packet * | firstTreePacket (const std::string &type) |
| Finds the first packet of the requested type in a complete depth-first iteration of the tree structure. More... | |
| const Packet * | firstTreePacket (const std::string &type) const |
| Finds the first packet of the requested type in a complete depth-first iteration of the tree structure. More... | |
| Packet * | findPacketLabel (const std::string &label) |
| Finds the packet with the requested label in the tree or subtree for which this packet is matriarch. More... | |
| const Packet * | findPacketLabel (const std::string &label) const |
| Finds the packet with the requested label in the tree or subtree for which this packet is matriarch. More... | |
Packet Dependencies | |
| bool | isPacketEditable () const |
| Determines whether this packet can be altered without invalidating or otherwise upsetting any of its immediate children. More... | |
Cloning | |
| Packet * | clone (bool cloneDescendants=false, bool end=true) const |
| Clones this packet (and possibly its descendants), assigns to it a suitable unused label and inserts the clone into the tree as a sibling of this packet. More... | |
Packet Identification | |
| virtual PacketType | type () const =0 |
| Returns the unique integer ID representing this type of packet. More... | |
| virtual std::string | typeName () const =0 |
| Returns an English name for this type of packet. More... | |
| const std::string & | label () const |
| Returns the label associated with this individual packet. More... | |
| std::string | humanLabel () const |
| Returns the label associated with this individual packet, adjusted if necessary for human-readable output. More... | |
| std::string | adornedLabel (const std::string &adornment) const |
| Returns the label of this packet adorned with the given string. More... | |
| void | setLabel (const std::string &label) |
| Sets the label associated with this individual packet. More... | |
| std::string | fullName () const |
| Returns a descriptive text string for the packet. More... | |
Tags | |
| bool | hasTag (const std::string &tag) const |
| Determines whether this packet has the given associated tag. More... | |
| bool | hasTags () const |
| Determines whether this packet has any associated tags at all. More... | |
| bool | addTag (const std::string &tag) |
| Associates the given tag with this packet. More... | |
| bool | removeTag (const std::string &tag) |
| Removes the association of the given tag with this packet. More... | |
| void | removeAllTags () |
| Removes all associated tags from this packet. More... | |
| const std::set< std::string > & | tags () const |
| Returns the set of all tags associated with this packet. More... | |
Event Handling | |
| bool | listen (PacketListener *listener) |
| Registers the given packet listener to listen for events on this packet. More... | |
| bool | isListening (PacketListener *listener) |
| Determines whether the given packet listener is currently listening for events on this packet. More... | |
| bool | unlisten (PacketListener *listener) |
| Unregisters the given packet listener so that it no longer listens for events on this packet. More... | |
Tree Queries | |
| Packet * | parent () const |
| Determines the parent packet in the tree structure. More... | |
| Packet * | firstChild () const |
| Determines the first child of this packet in the tree structure. More... | |
| Packet * | lastChild () const |
| Determines the last child of this packet in the tree structure. More... | |
| Packet * | nextSibling () const |
| Determines the next sibling of this packet in the tree structure. More... | |
| Packet * | prevSibling () const |
| Determines the previous sibling of this packet in the tree structure. More... | |
| Packet * | root () const |
| Determines the root of the tree to which this packet belongs. More... | |
| unsigned | levelsDownTo (const Packet *descendant) const |
| Counts the number of levels between this packet and its given descendant in the tree structure. More... | |
| unsigned | levelsUpTo (const Packet *ancestor) const |
| Counts the number of levels between this packet and its given ancestor in the tree structure. More... | |
| bool | isGrandparentOf (const Packet *descendant) const |
| Determines if this packet is equal to or an ancestor of the given packet in the tree structure. More... | |
| size_t | countChildren () const |
| Returns the number of immediate children of this packet. More... | |
| size_t | countDescendants () const |
| Returns the total number of strict descendants of this packet. More... | |
| size_t | totalTreeSize () const |
| Determines the total number of packets in the tree or subtree for which this packet is matriarch. More... | |
Tree Manipulation | |
| void | insertChildFirst (Packet *child) |
| Inserts the given packet as the first child of this packet. More... | |
| void | insertChildLast (Packet *child) |
| Inserts the given packet as the last child of this packet. More... | |
| void | insertChildAfter (Packet *newChild, Packet *prevChild) |
| Inserts the given packet as a child of this packet at the given location in this packet's child list. More... | |
| void | makeOrphan () |
| Cuts this packet away from its parent in the tree structure and instead makes it matriarch of its own tree. More... | |
| void | reparent (Packet *newParent, bool first=false) |
| Cuts this packet away from its parent in the tree structure, and inserts it as a child of the given packet instead. More... | |
| void | transferChildren (Packet *newParent) |
| Cuts all of this packet's children out of the packet tree, and reinserts them as children of the given packet instead. More... | |
| void | swapWithNextSibling () |
| Swaps this packet with its next sibling in the sequence of children beneath their common parent packet. More... | |
| void | moveUp (unsigned steps=1) |
| Moves this packet the given number of steps towards the beginning of its sibling list. More... | |
| void | moveDown (unsigned steps=1) |
| Moves this packet the given number of steps towards the end of its sibling list. More... | |
| void | moveToFirst () |
| Moves this packet to be the first in its sibling list. More... | |
| void | moveToLast () |
| Moves this packet to be the last in its sibling list. More... | |
| void | sortChildren () |
| Sorts the immediate children of this packet according to their packet labels. More... | |
Searching and Iterating | |
| SubtreeIterator | begin () |
| Returns an iterator at the beginning of the range of packets in the subtree rooted at this packet. More... | |
| SubtreeIterator | end () |
| Returns an iterator beyond the end of the range of packets in the subtree rooted at this packet. More... | |
| PacketDescendants | descendants () const |
| Returns a lightweight object for iterating through all strict descendants of this packet in the packet tree. More... | |
| PacketChildren | children () const |
| Returns a lightweight object for iterating through the immediate children of this packet. More... | |
| Packet * | nextTreePacket () |
| Finds the next packet after this in a complete depth-first iteration of the entire tree structure to which this packet belongs. More... | |
| const Packet * | nextTreePacket () const |
| Finds the next packet after this in a complete depth-first iteration of the entire tree structure to which this packet belongs. More... | |
| Packet * | nextTreePacket (const std::string &type) |
| Finds the next packet after this of the requested type in a complete depth-first iteration of the entire tree structure. More... | |
| const Packet * | nextTreePacket (const std::string &type) const |
| Finds the next packet after this of the requested type in a complete depth-first iteration of the entire tree structure. More... | |
| Packet * | firstTreePacket (const std::string &type) |
| Finds the first packet of the requested type in a complete depth-first iteration of the tree structure. More... | |
| const Packet * | firstTreePacket (const std::string &type) const |
| Finds the first packet of the requested type in a complete depth-first iteration of the tree structure. More... | |
| Packet * | findPacketLabel (const std::string &label) |
| Finds the packet with the requested label in the tree or subtree for which this packet is matriarch. More... | |
| const Packet * | findPacketLabel (const std::string &label) const |
| Finds the packet with the requested label in the tree or subtree for which this packet is matriarch. More... | |
Packet Dependencies | |
| bool | isPacketEditable () const |
| Determines whether this packet can be altered without invalidating or otherwise upsetting any of its immediate children. More... | |
Cloning | |
| Packet * | clone (bool cloneDescendants=false, bool end=true) const |
| Clones this packet (and possibly its descendants), assigns to it a suitable unused label and inserts the clone into the tree as a sibling of this packet. More... | |
Packet Identification | |
| virtual PacketType | type () const =0 |
| Returns the unique integer ID representing this type of packet. More... | |
| virtual std::string | typeName () const =0 |
| Returns an English name for this type of packet. More... | |
| const std::string & | label () const |
| Returns the label associated with this individual packet. More... | |
| std::string | humanLabel () const |
| Returns the label associated with this individual packet, adjusted if necessary for human-readable output. More... | |
| std::string | adornedLabel (const std::string &adornment) const |
| Returns the label of this packet adorned with the given string. More... | |
| void | setLabel (const std::string &label) |
| Sets the label associated with this individual packet. More... | |
| std::string | fullName () const |
| Returns a descriptive text string for the packet. More... | |
Tags | |
| bool | hasTag (const std::string &tag) const |
| Determines whether this packet has the given associated tag. More... | |
| bool | hasTags () const |
| Determines whether this packet has any associated tags at all. More... | |
| bool | addTag (const std::string &tag) |
| Associates the given tag with this packet. More... | |
| bool | removeTag (const std::string &tag) |
| Removes the association of the given tag with this packet. More... | |
| void | removeAllTags () |
| Removes all associated tags from this packet. More... | |
| const std::set< std::string > & | tags () const |
| Returns the set of all tags associated with this packet. More... | |
Event Handling | |
| bool | listen (PacketListener *listener) |
| Registers the given packet listener to listen for events on this packet. More... | |
| bool | isListening (PacketListener *listener) |
| Determines whether the given packet listener is currently listening for events on this packet. More... | |
| bool | unlisten (PacketListener *listener) |
| Unregisters the given packet listener so that it no longer listens for events on this packet. More... | |
Tree Queries | |
| Packet * | parent () const |
| Determines the parent packet in the tree structure. More... | |
| Packet * | firstChild () const |
| Determines the first child of this packet in the tree structure. More... | |
| Packet * | lastChild () const |
| Determines the last child of this packet in the tree structure. More... | |
| Packet * | nextSibling () const |
| Determines the next sibling of this packet in the tree structure. More... | |
| Packet * | prevSibling () const |
| Determines the previous sibling of this packet in the tree structure. More... | |
| Packet * | root () const |
| Determines the root of the tree to which this packet belongs. More... | |
| unsigned | levelsDownTo (const Packet *descendant) const |
| Counts the number of levels between this packet and its given descendant in the tree structure. More... | |
| unsigned | levelsUpTo (const Packet *ancestor) const |
| Counts the number of levels between this packet and its given ancestor in the tree structure. More... | |
| bool | isGrandparentOf (const Packet *descendant) const |
| Determines if this packet is equal to or an ancestor of the given packet in the tree structure. More... | |
| size_t | countChildren () const |
| Returns the number of immediate children of this packet. More... | |
| size_t | countDescendants () const |
| Returns the total number of strict descendants of this packet. More... | |
| size_t | totalTreeSize () const |
| Determines the total number of packets in the tree or subtree for which this packet is matriarch. More... | |
Tree Manipulation | |
| void | insertChildFirst (Packet *child) |
| Inserts the given packet as the first child of this packet. More... | |
| void | insertChildLast (Packet *child) |
| Inserts the given packet as the last child of this packet. More... | |
| void | insertChildAfter (Packet *newChild, Packet *prevChild) |
| Inserts the given packet as a child of this packet at the given location in this packet's child list. More... | |
| void | makeOrphan () |
| Cuts this packet away from its parent in the tree structure and instead makes it matriarch of its own tree. More... | |
| void | reparent (Packet *newParent, bool first=false) |
| Cuts this packet away from its parent in the tree structure, and inserts it as a child of the given packet instead. More... | |
| void | transferChildren (Packet *newParent) |
| Cuts all of this packet's children out of the packet tree, and reinserts them as children of the given packet instead. More... | |
| void | swapWithNextSibling () |
| Swaps this packet with its next sibling in the sequence of children beneath their common parent packet. More... | |
| void | moveUp (unsigned steps=1) |
| Moves this packet the given number of steps towards the beginning of its sibling list. More... | |
| void | moveDown (unsigned steps=1) |
| Moves this packet the given number of steps towards the end of its sibling list. More... | |
| void | moveToFirst () |
| Moves this packet to be the first in its sibling list. More... | |
| void | moveToLast () |
| Moves this packet to be the last in its sibling list. More... | |
| void | sortChildren () |
| Sorts the immediate children of this packet according to their packet labels. More... | |
Searching and Iterating | |
| SubtreeIterator | begin () |
| Returns an iterator at the beginning of the range of packets in the subtree rooted at this packet. More... | |
| SubtreeIterator | end () |
| Returns an iterator beyond the end of the range of packets in the subtree rooted at this packet. More... | |
| PacketDescendants | descendants () const |
| Returns a lightweight object for iterating through all strict descendants of this packet in the packet tree. More... | |
| PacketChildren | children () const |
| Returns a lightweight object for iterating through the immediate children of this packet. More... | |
| Packet * | nextTreePacket () |
| Finds the next packet after this in a complete depth-first iteration of the entire tree structure to which this packet belongs. More... | |
| const Packet * | nextTreePacket () const |
| Finds the next packet after this in a complete depth-first iteration of the entire tree structure to which this packet belongs. More... | |
| Packet * | nextTreePacket (const std::string &type) |
| Finds the next packet after this of the requested type in a complete depth-first iteration of the entire tree structure. More... | |
| const Packet * | nextTreePacket (const std::string &type) const |
| Finds the next packet after this of the requested type in a complete depth-first iteration of the entire tree structure. More... | |
| Packet * | firstTreePacket (const std::string &type) |
| Finds the first packet of the requested type in a complete depth-first iteration of the tree structure. More... | |
| const Packet * | firstTreePacket (const std::string &type) const |
| Finds the first packet of the requested type in a complete depth-first iteration of the tree structure. More... | |
| Packet * | findPacketLabel (const std::string &label) |
| Finds the packet with the requested label in the tree or subtree for which this packet is matriarch. More... | |
| const Packet * | findPacketLabel (const std::string &label) const |
| Finds the packet with the requested label in the tree or subtree for which this packet is matriarch. More... | |
Packet Dependencies | |
| bool | isPacketEditable () const |
| Determines whether this packet can be altered without invalidating or otherwise upsetting any of its immediate children. More... | |
Cloning | |
| Packet * | clone (bool cloneDescendants=false, bool end=true) const |
| Clones this packet (and possibly its descendants), assigns to it a suitable unused label and inserts the clone into the tree as a sibling of this packet. More... | |
Packet Identification | |
| virtual PacketType | type () const =0 |
| Returns the unique integer ID representing this type of packet. More... | |
| virtual std::string | typeName () const =0 |
| Returns an English name for this type of packet. More... | |
| const std::string & | label () const |
| Returns the label associated with this individual packet. More... | |
| std::string | humanLabel () const |
| Returns the label associated with this individual packet, adjusted if necessary for human-readable output. More... | |
| std::string | adornedLabel (const std::string &adornment) const |
| Returns the label of this packet adorned with the given string. More... | |
| void | setLabel (const std::string &label) |
| Sets the label associated with this individual packet. More... | |
| std::string | fullName () const |
| Returns a descriptive text string for the packet. More... | |
Tags | |
| bool | hasTag (const std::string &tag) const |
| Determines whether this packet has the given associated tag. More... | |
| bool | hasTags () const |
| Determines whether this packet has any associated tags at all. More... | |
| bool | addTag (const std::string &tag) |
| Associates the given tag with this packet. More... | |
| bool | removeTag (const std::string &tag) |
| Removes the association of the given tag with this packet. More... | |
| void | removeAllTags () |
| Removes all associated tags from this packet. More... | |
| const std::set< std::string > & | tags () const |
| Returns the set of all tags associated with this packet. More... | |
Event Handling | |
| bool | listen (PacketListener *listener) |
| Registers the given packet listener to listen for events on this packet. More... | |
| bool | isListening (PacketListener *listener) |
| Determines whether the given packet listener is currently listening for events on this packet. More... | |
| bool | unlisten (PacketListener *listener) |
| Unregisters the given packet listener so that it no longer listens for events on this packet. More... | |
Tree Queries | |
| Packet * | parent () const |
| Determines the parent packet in the tree structure. More... | |
| Packet * | firstChild () const |
| Determines the first child of this packet in the tree structure. More... | |
| Packet * | lastChild () const |
| Determines the last child of this packet in the tree structure. More... | |
| Packet * | nextSibling () const |
| Determines the next sibling of this packet in the tree structure. More... | |
| Packet * | prevSibling () const |
| Determines the previous sibling of this packet in the tree structure. More... | |
| Packet * | root () const |
| Determines the root of the tree to which this packet belongs. More... | |
| unsigned | levelsDownTo (const Packet *descendant) const |
| Counts the number of levels between this packet and its given descendant in the tree structure. More... | |
| unsigned | levelsUpTo (const Packet *ancestor) const |
| Counts the number of levels between this packet and its given ancestor in the tree structure. More... | |
| bool | isGrandparentOf (const Packet *descendant) const |
| Determines if this packet is equal to or an ancestor of the given packet in the tree structure. More... | |
| size_t | countChildren () const |
| Returns the number of immediate children of this packet. More... | |
| size_t | countDescendants () const |
| Returns the total number of strict descendants of this packet. More... | |
| size_t | totalTreeSize () const |
| Determines the total number of packets in the tree or subtree for which this packet is matriarch. More... | |
Tree Manipulation | |
| void | insertChildFirst (Packet *child) |
| Inserts the given packet as the first child of this packet. More... | |
| void | insertChildLast (Packet *child) |
| Inserts the given packet as the last child of this packet. More... | |
| void | insertChildAfter (Packet *newChild, Packet *prevChild) |
| Inserts the given packet as a child of this packet at the given location in this packet's child list. More... | |
| void | makeOrphan () |
| Cuts this packet away from its parent in the tree structure and instead makes it matriarch of its own tree. More... | |
| void | reparent (Packet *newParent, bool first=false) |
| Cuts this packet away from its parent in the tree structure, and inserts it as a child of the given packet instead. More... | |
| void | transferChildren (Packet *newParent) |
| Cuts all of this packet's children out of the packet tree, and reinserts them as children of the given packet instead. More... | |
| void | swapWithNextSibling () |
| Swaps this packet with its next sibling in the sequence of children beneath their common parent packet. More... | |
| void | moveUp (unsigned steps=1) |
| Moves this packet the given number of steps towards the beginning of its sibling list. More... | |
| void | moveDown (unsigned steps=1) |
| Moves this packet the given number of steps towards the end of its sibling list. More... | |
| void | moveToFirst () |
| Moves this packet to be the first in its sibling list. More... | |
| void | moveToLast () |
| Moves this packet to be the last in its sibling list. More... | |
| void | sortChildren () |
| Sorts the immediate children of this packet according to their packet labels. More... | |
Searching and Iterating | |
| SubtreeIterator | begin () |
| Returns an iterator at the beginning of the range of packets in the subtree rooted at this packet. More... | |
| SubtreeIterator | end () |
| Returns an iterator beyond the end of the range of packets in the subtree rooted at this packet. More... | |
| PacketDescendants | descendants () const |
| Returns a lightweight object for iterating through all strict descendants of this packet in the packet tree. More... | |
| PacketChildren | children () const |
| Returns a lightweight object for iterating through the immediate children of this packet. More... | |
| Packet * | nextTreePacket () |
| Finds the next packet after this in a complete depth-first iteration of the entire tree structure to which this packet belongs. More... | |
| const Packet * | nextTreePacket () const |
| Finds the next packet after this in a complete depth-first iteration of the entire tree structure to which this packet belongs. More... | |
| Packet * | nextTreePacket (const std::string &type) |
| Finds the next packet after this of the requested type in a complete depth-first iteration of the entire tree structure. More... | |
| const Packet * | nextTreePacket (const std::string &type) const |
| Finds the next packet after this of the requested type in a complete depth-first iteration of the entire tree structure. More... | |
| Packet * | firstTreePacket (const std::string &type) |
| Finds the first packet of the requested type in a complete depth-first iteration of the tree structure. More... | |
| const Packet * | firstTreePacket (const std::string &type) const |
| Finds the first packet of the requested type in a complete depth-first iteration of the tree structure. More... | |
| Packet * | findPacketLabel (const std::string &label) |
| Finds the packet with the requested label in the tree or subtree for which this packet is matriarch. More... | |
| const Packet * | findPacketLabel (const std::string &label) const |
| Finds the packet with the requested label in the tree or subtree for which this packet is matriarch. More... | |
Packet Dependencies | |
| bool | isPacketEditable () const |
| Determines whether this packet can be altered without invalidating or otherwise upsetting any of its immediate children. More... | |
Cloning | |
| Packet * | clone (bool cloneDescendants=false, bool end=true) const |
| Clones this packet (and possibly its descendants), assigns to it a suitable unused label and inserts the clone into the tree as a sibling of this packet. More... | |
Packet Identification | |
| virtual PacketType | type () const =0 |
| Returns the unique integer ID representing this type of packet. More... | |
| virtual std::string | typeName () const =0 |
| Returns an English name for this type of packet. More... | |
| const std::string & | label () const |
| Returns the label associated with this individual packet. More... | |
| std::string | humanLabel () const |
| Returns the label associated with this individual packet, adjusted if necessary for human-readable output. More... | |
| std::string | adornedLabel (const std::string &adornment) const |
| Returns the label of this packet adorned with the given string. More... | |
| void | setLabel (const std::string &label) |
| Sets the label associated with this individual packet. More... | |
| std::string | fullName () const |
| Returns a descriptive text string for the packet. More... | |
Tags | |
| bool | hasTag (const std::string &tag) const |
| Determines whether this packet has the given associated tag. More... | |
| bool | hasTags () const |
| Determines whether this packet has any associated tags at all. More... | |
| bool | addTag (const std::string &tag) |
| Associates the given tag with this packet. More... | |
| bool | removeTag (const std::string &tag) |
| Removes the association of the given tag with this packet. More... | |
| void | removeAllTags () |
| Removes all associated tags from this packet. More... | |
| const std::set< std::string > & | tags () const |
| Returns the set of all tags associated with this packet. More... | |
Event Handling | |
| bool | listen (PacketListener *listener) |
| Registers the given packet listener to listen for events on this packet. More... | |
| bool | isListening (PacketListener *listener) |
| Determines whether the given packet listener is currently listening for events on this packet. More... | |
| bool | unlisten (PacketListener *listener) |
| Unregisters the given packet listener so that it no longer listens for events on this packet. More... | |
Tree Queries | |
| Packet * | parent () const |
| Determines the parent packet in the tree structure. More... | |
| Packet * | firstChild () const |
| Determines the first child of this packet in the tree structure. More... | |
| Packet * | lastChild () const |
| Determines the last child of this packet in the tree structure. More... | |
| Packet * | nextSibling () const |
| Determines the next sibling of this packet in the tree structure. More... | |
| Packet * | prevSibling () const |
| Determines the previous sibling of this packet in the tree structure. More... | |
| Packet * | root () const |
| Determines the root of the tree to which this packet belongs. More... | |
| unsigned | levelsDownTo (const Packet *descendant) const |
| Counts the number of levels between this packet and its given descendant in the tree structure. More... | |
| unsigned | levelsUpTo (const Packet *ancestor) const |
| Counts the number of levels between this packet and its given ancestor in the tree structure. More... | |
| bool | isGrandparentOf (const Packet *descendant) const |
| Determines if this packet is equal to or an ancestor of the given packet in the tree structure. More... | |
| size_t | countChildren () const |
| Returns the number of immediate children of this packet. More... | |
| size_t | countDescendants () const |
| Returns the total number of strict descendants of this packet. More... | |
| size_t | totalTreeSize () const |
| Determines the total number of packets in the tree or subtree for which this packet is matriarch. More... | |
Tree Manipulation | |
| void | insertChildFirst (Packet *child) |
| Inserts the given packet as the first child of this packet. More... | |
| void | insertChildLast (Packet *child) |
| Inserts the given packet as the last child of this packet. More... | |
| void | insertChildAfter (Packet *newChild, Packet *prevChild) |
| Inserts the given packet as a child of this packet at the given location in this packet's child list. More... | |
| void | makeOrphan () |
| Cuts this packet away from its parent in the tree structure and instead makes it matriarch of its own tree. More... | |
| void | reparent (Packet *newParent, bool first=false) |
| Cuts this packet away from its parent in the tree structure, and inserts it as a child of the given packet instead. More... | |
| void | transferChildren (Packet *newParent) |
| Cuts all of this packet's children out of the packet tree, and reinserts them as children of the given packet instead. More... | |
| void | swapWithNextSibling () |
| Swaps this packet with its next sibling in the sequence of children beneath their common parent packet. More... | |
| void | moveUp (unsigned steps=1) |
| Moves this packet the given number of steps towards the beginning of its sibling list. More... | |
| void | moveDown (unsigned steps=1) |
| Moves this packet the given number of steps towards the end of its sibling list. More... | |
| void | moveToFirst () |
| Moves this packet to be the first in its sibling list. More... | |
| void | moveToLast () |
| Moves this packet to be the last in its sibling list. More... | |
| void | sortChildren () |
| Sorts the immediate children of this packet according to their packet labels. More... | |
Searching and Iterating | |
| SubtreeIterator | begin () |
| Returns an iterator at the beginning of the range of packets in the subtree rooted at this packet. More... | |
| SubtreeIterator | end () |
| Returns an iterator beyond the end of the range of packets in the subtree rooted at this packet. More... | |
| PacketDescendants | descendants () const |
| Returns a lightweight object for iterating through all strict descendants of this packet in the packet tree. More... | |
| PacketChildren | children () const |
| Returns a lightweight object for iterating through the immediate children of this packet. More... | |
| Packet * | nextTreePacket () |
| Finds the next packet after this in a complete depth-first iteration of the entire tree structure to which this packet belongs. More... | |
| const Packet * | nextTreePacket () const |
| Finds the next packet after this in a complete depth-first iteration of the entire tree structure to which this packet belongs. More... | |
| Packet * | nextTreePacket (const std::string &type) |
| Finds the next packet after this of the requested type in a complete depth-first iteration of the entire tree structure. More... | |
| const Packet * | nextTreePacket (const std::string &type) const |
| Finds the next packet after this of the requested type in a complete depth-first iteration of the entire tree structure. More... | |
| Packet * | firstTreePacket (const std::string &type) |
| Finds the first packet of the requested type in a complete depth-first iteration of the tree structure. More... | |
| const Packet * | firstTreePacket (const std::string &type) const |
| Finds the first packet of the requested type in a complete depth-first iteration of the tree structure. More... | |
| Packet * | findPacketLabel (const std::string &label) |
| Finds the packet with the requested label in the tree or subtree for which this packet is matriarch. More... | |
| const Packet * | findPacketLabel (const std::string &label) const |
| Finds the packet with the requested label in the tree or subtree for which this packet is matriarch. More... | |
Packet Dependencies | |
| bool | isPacketEditable () const |
| Determines whether this packet can be altered without invalidating or otherwise upsetting any of its immediate children. More... | |
Cloning | |
| Packet * | clone (bool cloneDescendants=false, bool end=true) const |
| Clones this packet (and possibly its descendants), assigns to it a suitable unused label and inserts the clone into the tree as a sibling of this packet. More... | |
Packet Identification | |
| virtual PacketType | type () const =0 |
| Returns the unique integer ID representing this type of packet. More... | |
| virtual std::string | typeName () const =0 |
| Returns an English name for this type of packet. More... | |
| const std::string & | label () const |
| Returns the label associated with this individual packet. More... | |
| std::string | humanLabel () const |
| Returns the label associated with this individual packet, adjusted if necessary for human-readable output. More... | |
| std::string | adornedLabel (const std::string &adornment) const |
| Returns the label of this packet adorned with the given string. More... | |
| void | setLabel (const std::string &label) |
| Sets the label associated with this individual packet. More... | |
| std::string | fullName () const |
| Returns a descriptive text string for the packet. More... | |
Tags | |
| bool | hasTag (const std::string &tag) const |
| Determines whether this packet has the given associated tag. More... | |
| bool | hasTags () const |
| Determines whether this packet has any associated tags at all. More... | |
| bool | addTag (const std::string &tag) |
| Associates the given tag with this packet. More... | |
| bool | removeTag (const std::string &tag) |
| Removes the association of the given tag with this packet. More... | |
| void | removeAllTags () |
| Removes all associated tags from this packet. More... | |
| const std::set< std::string > & | tags () const |
| Returns the set of all tags associated with this packet. More... | |
Event Handling | |
| bool | listen (PacketListener *listener) |
| Registers the given packet listener to listen for events on this packet. More... | |
| bool | isListening (PacketListener *listener) |
| Determines whether the given packet listener is currently listening for events on this packet. More... | |
| bool | unlisten (PacketListener *listener) |
| Unregisters the given packet listener so that it no longer listens for events on this packet. More... | |
Tree Queries | |
| Packet * | parent () const |
| Determines the parent packet in the tree structure. More... | |
| Packet * | firstChild () const |
| Determines the first child of this packet in the tree structure. More... | |
| Packet * | lastChild () const |
| Determines the last child of this packet in the tree structure. More... | |
| Packet * | nextSibling () const |
| Determines the next sibling of this packet in the tree structure. More... | |
| Packet * | prevSibling () const |
| Determines the previous sibling of this packet in the tree structure. More... | |
| Packet * | root () const |
| Determines the root of the tree to which this packet belongs. More... | |
| unsigned | levelsDownTo (const Packet *descendant) const |
| Counts the number of levels between this packet and its given descendant in the tree structure. More... | |
| unsigned | levelsUpTo (const Packet *ancestor) const |
| Counts the number of levels between this packet and its given ancestor in the tree structure. More... | |
| bool | isGrandparentOf (const Packet *descendant) const |
| Determines if this packet is equal to or an ancestor of the given packet in the tree structure. More... | |
| size_t | countChildren () const |
| Returns the number of immediate children of this packet. More... | |
| size_t | countDescendants () const |
| Returns the total number of strict descendants of this packet. More... | |
| size_t | totalTreeSize () const |
| Determines the total number of packets in the tree or subtree for which this packet is matriarch. More... | |
Tree Manipulation | |
| void | insertChildFirst (Packet *child) |
| Inserts the given packet as the first child of this packet. More... | |
| void | insertChildLast (Packet *child) |
| Inserts the given packet as the last child of this packet. More... | |
| void | insertChildAfter (Packet *newChild, Packet *prevChild) |
| Inserts the given packet as a child of this packet at the given location in this packet's child list. More... | |
| void | makeOrphan () |
| Cuts this packet away from its parent in the tree structure and instead makes it matriarch of its own tree. More... | |
| void | reparent (Packet *newParent, bool first=false) |
| Cuts this packet away from its parent in the tree structure, and inserts it as a child of the given packet instead. More... | |
| void | transferChildren (Packet *newParent) |
| Cuts all of this packet's children out of the packet tree, and reinserts them as children of the given packet instead. More... | |
| void | swapWithNextSibling () |
| Swaps this packet with its next sibling in the sequence of children beneath their common parent packet. More... | |
| void | moveUp (unsigned steps=1) |
| Moves this packet the given number of steps towards the beginning of its sibling list. More... | |
| void | moveDown (unsigned steps=1) |
| Moves this packet the given number of steps towards the end of its sibling list. More... | |
| void | moveToFirst () |
| Moves this packet to be the first in its sibling list. More... | |
| void | moveToLast () |
| Moves this packet to be the last in its sibling list. More... | |
| void | sortChildren () |
| Sorts the immediate children of this packet according to their packet labels. More... | |
Searching and Iterating | |
| SubtreeIterator | begin () |
| Returns an iterator at the beginning of the range of packets in the subtree rooted at this packet. More... | |
| SubtreeIterator | end () |
| Returns an iterator beyond the end of the range of packets in the subtree rooted at this packet. More... | |
| PacketDescendants | descendants () const |
| Returns a lightweight object for iterating through all strict descendants of this packet in the packet tree. More... | |
| PacketChildren | children () const |
| Returns a lightweight object for iterating through the immediate children of this packet. More... | |
| Packet * | nextTreePacket () |
| Finds the next packet after this in a complete depth-first iteration of the entire tree structure to which this packet belongs. More... | |
| const Packet * | nextTreePacket () const |
| Finds the next packet after this in a complete depth-first iteration of the entire tree structure to which this packet belongs. More... | |
| Packet * | nextTreePacket (const std::string &type) |
| Finds the next packet after this of the requested type in a complete depth-first iteration of the entire tree structure. More... | |
| const Packet * | nextTreePacket (const std::string &type) const |
| Finds the next packet after this of the requested type in a complete depth-first iteration of the entire tree structure. More... | |
| Packet * | firstTreePacket (const std::string &type) |
| Finds the first packet of the requested type in a complete depth-first iteration of the tree structure. More... | |
| const Packet * | firstTreePacket (const std::string &type) const |
| Finds the first packet of the requested type in a complete depth-first iteration of the tree structure. More... | |
| Packet * | findPacketLabel (const std::string &label) |
| Finds the packet with the requested label in the tree or subtree for which this packet is matriarch. More... | |
| const Packet * | findPacketLabel (const std::string &label) const |
| Finds the packet with the requested label in the tree or subtree for which this packet is matriarch. More... | |
Packet Dependencies | |
| bool | isPacketEditable () const |
| Determines whether this packet can be altered without invalidating or otherwise upsetting any of its immediate children. More... | |
Cloning | |
| Packet * | clone (bool cloneDescendants=false, bool end=true) const |
| Clones this packet (and possibly its descendants), assigns to it a suitable unused label and inserts the clone into the tree as a sibling of this packet. More... | |
Packet Identification | |
| virtual PacketType | type () const =0 |
| Returns the unique integer ID representing this type of packet. More... | |
| virtual std::string | typeName () const =0 |
| Returns an English name for this type of packet. More... | |
| const std::string & | label () const |
| Returns the label associated with this individual packet. More... | |
| std::string | humanLabel () const |
| Returns the label associated with this individual packet, adjusted if necessary for human-readable output. More... | |
| std::string | adornedLabel (const std::string &adornment) const |
| Returns the label of this packet adorned with the given string. More... | |
| void | setLabel (const std::string &label) |
| Sets the label associated with this individual packet. More... | |
| std::string | fullName () const |
| Returns a descriptive text string for the packet. More... | |
Tags | |
| bool | hasTag (const std::string &tag) const |
| Determines whether this packet has the given associated tag. More... | |
| bool | hasTags () const |
| Determines whether this packet has any associated tags at all. More... | |
| bool | addTag (const std::string &tag) |
| Associates the given tag with this packet. More... | |
| bool | removeTag (const std::string &tag) |
| Removes the association of the given tag with this packet. More... | |
| void | removeAllTags () |
| Removes all associated tags from this packet. More... | |
| const std::set< std::string > & | tags () const |
| Returns the set of all tags associated with this packet. More... | |
Event Handling | |
| bool | listen (PacketListener *listener) |
| Registers the given packet listener to listen for events on this packet. More... | |
| bool | isListening (PacketListener *listener) |
| Determines whether the given packet listener is currently listening for events on this packet. More... | |
| bool | unlisten (PacketListener *listener) |
| Unregisters the given packet listener so that it no longer listens for events on this packet. More... | |
Tree Queries | |
| Packet * | parent () const |
| Determines the parent packet in the tree structure. More... | |
| Packet * | firstChild () const |
| Determines the first child of this packet in the tree structure. More... | |
| Packet * | lastChild () const |
| Determines the last child of this packet in the tree structure. More... | |
| Packet * | nextSibling () const |
| Determines the next sibling of this packet in the tree structure. More... | |
| Packet * | prevSibling () const |
| Determines the previous sibling of this packet in the tree structure. More... | |
| Packet * | root () const |
| Determines the root of the tree to which this packet belongs. More... | |
| unsigned | levelsDownTo (const Packet *descendant) const |
| Counts the number of levels between this packet and its given descendant in the tree structure. More... | |
| unsigned | levelsUpTo (const Packet *ancestor) const |
| Counts the number of levels between this packet and its given ancestor in the tree structure. More... | |
| bool | isGrandparentOf (const Packet *descendant) const |
| Determines if this packet is equal to or an ancestor of the given packet in the tree structure. More... | |
| size_t | countChildren () const |
| Returns the number of immediate children of this packet. More... | |
| size_t | countDescendants () const |
| Returns the total number of strict descendants of this packet. More... | |
| size_t | totalTreeSize () const |
| Determines the total number of packets in the tree or subtree for which this packet is matriarch. More... | |
Tree Manipulation | |
| void | insertChildFirst (Packet *child) |
| Inserts the given packet as the first child of this packet. More... | |
| void | insertChildLast (Packet *child) |
| Inserts the given packet as the last child of this packet. More... | |
| void | insertChildAfter (Packet *newChild, Packet *prevChild) |
| Inserts the given packet as a child of this packet at the given location in this packet's child list. More... | |
| void | makeOrphan () |
| Cuts this packet away from its parent in the tree structure and instead makes it matriarch of its own tree. More... | |
| void | reparent (Packet *newParent, bool first=false) |
| Cuts this packet away from its parent in the tree structure, and inserts it as a child of the given packet instead. More... | |
| void | transferChildren (Packet *newParent) |
| Cuts all of this packet's children out of the packet tree, and reinserts them as children of the given packet instead. More... | |
| void | swapWithNextSibling () |
| Swaps this packet with its next sibling in the sequence of children beneath their common parent packet. More... | |
| void | moveUp (unsigned steps=1) |
| Moves this packet the given number of steps towards the beginning of its sibling list. More... | |
| void | moveDown (unsigned steps=1) |
| Moves this packet the given number of steps towards the end of its sibling list. More... | |
| void | moveToFirst () |
| Moves this packet to be the first in its sibling list. More... | |
| void | moveToLast () |
| Moves this packet to be the last in its sibling list. More... | |
| void | sortChildren () |
| Sorts the immediate children of this packet according to their packet labels. More... | |
Searching and Iterating | |
| SubtreeIterator | begin () |
| Returns an iterator at the beginning of the range of packets in the subtree rooted at this packet. More... | |
| SubtreeIterator | end () |
| Returns an iterator beyond the end of the range of packets in the subtree rooted at this packet. More... | |
| PacketDescendants | descendants () const |
| Returns a lightweight object for iterating through all strict descendants of this packet in the packet tree. More... | |
| PacketChildren | children () const |
| Returns a lightweight object for iterating through the immediate children of this packet. More... | |
| Packet * | nextTreePacket () |
| Finds the next packet after this in a complete depth-first iteration of the entire tree structure to which this packet belongs. More... | |
| const Packet * | nextTreePacket () const |
| Finds the next packet after this in a complete depth-first iteration of the entire tree structure to which this packet belongs. More... | |
| Packet * | nextTreePacket (const std::string &type) |
| Finds the next packet after this of the requested type in a complete depth-first iteration of the entire tree structure. More... | |
| const Packet * | nextTreePacket (const std::string &type) const |
| Finds the next packet after this of the requested type in a complete depth-first iteration of the entire tree structure. More... | |
| Packet * | firstTreePacket (const std::string &type) |
| Finds the first packet of the requested type in a complete depth-first iteration of the tree structure. More... | |
| const Packet * | firstTreePacket (const std::string &type) const |
| Finds the first packet of the requested type in a complete depth-first iteration of the tree structure. More... | |
| Packet * | findPacketLabel (const std::string &label) |
| Finds the packet with the requested label in the tree or subtree for which this packet is matriarch. More... | |
| const Packet * | findPacketLabel (const std::string &label) const |
| Finds the packet with the requested label in the tree or subtree for which this packet is matriarch. More... | |
Packet Dependencies | |
| bool | isPacketEditable () const |
| Determines whether this packet can be altered without invalidating or otherwise upsetting any of its immediate children. More... | |
Cloning | |
| Packet * | clone (bool cloneDescendants=false, bool end=true) const |
| Clones this packet (and possibly its descendants), assigns to it a suitable unused label and inserts the clone into the tree as a sibling of this packet. More... | |
Packet Identification | |
| virtual PacketType | type () const =0 |
| Returns the unique integer ID representing this type of packet. More... | |
| virtual std::string | typeName () const =0 |
| Returns an English name for this type of packet. More... | |
| const std::string & | label () const |
| Returns the label associated with this individual packet. More... | |
| std::string | humanLabel () const |
| Returns the label associated with this individual packet, adjusted if necessary for human-readable output. More... | |
| std::string | adornedLabel (const std::string &adornment) const |
| Returns the label of this packet adorned with the given string. More... | |
| void | setLabel (const std::string &label) |
| Sets the label associated with this individual packet. More... | |
| std::string | fullName () const |
| Returns a descriptive text string for the packet. More... | |
Tags | |
| bool | hasTag (const std::string &tag) const |
| Determines whether this packet has the given associated tag. More... | |
| bool | hasTags () const |
| Determines whether this packet has any associated tags at all. More... | |
| bool | addTag (const std::string &tag) |
| Associates the given tag with this packet. More... | |
| bool | removeTag (const std::string &tag) |
| Removes the association of the given tag with this packet. More... | |
| void | removeAllTags () |
| Removes all associated tags from this packet. More... | |
| const std::set< std::string > & | tags () const |
| Returns the set of all tags associated with this packet. More... | |
Event Handling | |
| bool | listen (PacketListener *listener) |
| Registers the given packet listener to listen for events on this packet. More... | |
| bool | isListening (PacketListener *listener) |
| Determines whether the given packet listener is currently listening for events on this packet. More... | |
| bool | unlisten (PacketListener *listener) |
| Unregisters the given packet listener so that it no longer listens for events on this packet. More... | |
Tree Queries | |
| Packet * | parent () const |
| Determines the parent packet in the tree structure. More... | |
| Packet * | firstChild () const |
| Determines the first child of this packet in the tree structure. More... | |
| Packet * | lastChild () const |
| Determines the last child of this packet in the tree structure. More... | |
| Packet * | nextSibling () const |
| Determines the next sibling of this packet in the tree structure. More... | |
| Packet * | prevSibling () const |
| Determines the previous sibling of this packet in the tree structure. More... | |
| Packet * | root () const |
| Determines the root of the tree to which this packet belongs. More... | |
| unsigned | levelsDownTo (const Packet *descendant) const |
| Counts the number of levels between this packet and its given descendant in the tree structure. More... | |
| unsigned | levelsUpTo (const Packet *ancestor) const |
| Counts the number of levels between this packet and its given ancestor in the tree structure. More... | |
| bool | isGrandparentOf (const Packet *descendant) const |
| Determines if this packet is equal to or an ancestor of the given packet in the tree structure. More... | |
| size_t | countChildren () const |
| Returns the number of immediate children of this packet. More... | |
| size_t | countDescendants () const |
| Returns the total number of strict descendants of this packet. More... | |
| size_t | totalTreeSize () const |
| Determines the total number of packets in the tree or subtree for which this packet is matriarch. More... | |
Tree Manipulation | |
| void | insertChildFirst (Packet *child) |
| Inserts the given packet as the first child of this packet. More... | |
| void | insertChildLast (Packet *child) |
| Inserts the given packet as the last child of this packet. More... | |
| void | insertChildAfter (Packet *newChild, Packet *prevChild) |
| Inserts the given packet as a child of this packet at the given location in this packet's child list. More... | |
| void | makeOrphan () |
| Cuts this packet away from its parent in the tree structure and instead makes it matriarch of its own tree. More... | |
| void | reparent (Packet *newParent, bool first=false) |
| Cuts this packet away from its parent in the tree structure, and inserts it as a child of the given packet instead. More... | |
| void | transferChildren (Packet *newParent) |
| Cuts all of this packet's children out of the packet tree, and reinserts them as children of the given packet instead. More... | |
| void | swapWithNextSibling () |
| Swaps this packet with its next sibling in the sequence of children beneath their common parent packet. More... | |
| void | moveUp (unsigned steps=1) |
| Moves this packet the given number of steps towards the beginning of its sibling list. More... | |
| void | moveDown (unsigned steps=1) |
| Moves this packet the given number of steps towards the end of its sibling list. More... | |
| void | moveToFirst () |
| Moves this packet to be the first in its sibling list. More... | |
| void | moveToLast () |
| Moves this packet to be the last in its sibling list. More... | |
| void | sortChildren () |
| Sorts the immediate children of this packet according to their packet labels. More... | |
Searching and Iterating | |
| SubtreeIterator | begin () |
| Returns an iterator at the beginning of the range of packets in the subtree rooted at this packet. More... | |
| SubtreeIterator | end () |
| Returns an iterator beyond the end of the range of packets in the subtree rooted at this packet. More... | |
| PacketDescendants | descendants () const |
| Returns a lightweight object for iterating through all strict descendants of this packet in the packet tree. More... | |
| PacketChildren | children () const |
| Returns a lightweight object for iterating through the immediate children of this packet. More... | |
| Packet * | nextTreePacket () |
| Finds the next packet after this in a complete depth-first iteration of the entire tree structure to which this packet belongs. More... | |
| const Packet * | nextTreePacket () const |
| Finds the next packet after this in a complete depth-first iteration of the entire tree structure to which this packet belongs. More... | |
| Packet * | nextTreePacket (const std::string &type) |
| Finds the next packet after this of the requested type in a complete depth-first iteration of the entire tree structure. More... | |
| const Packet * | nextTreePacket (const std::string &type) const |
| Finds the next packet after this of the requested type in a complete depth-first iteration of the entire tree structure. More... | |
| Packet * | firstTreePacket (const std::string &type) |
| Finds the first packet of the requested type in a complete depth-first iteration of the tree structure. More... | |
| const Packet * | firstTreePacket (const std::string &type) const |
| Finds the first packet of the requested type in a complete depth-first iteration of the tree structure. More... | |
| Packet * | findPacketLabel (const std::string &label) |
| Finds the packet with the requested label in the tree or subtree for which this packet is matriarch. More... | |
| const Packet * | findPacketLabel (const std::string &label) const |
| Finds the packet with the requested label in the tree or subtree for which this packet is matriarch. More... | |
Packet Dependencies | |
| bool | isPacketEditable () const |
| Determines whether this packet can be altered without invalidating or otherwise upsetting any of its immediate children. More... | |
Cloning | |
| Packet * | clone (bool cloneDescendants=false, bool end=true) const |
| Clones this packet (and possibly its descendants), assigns to it a suitable unused label and inserts the clone into the tree as a sibling of this packet. More... | |
Packet Identification | |
| virtual PacketType | type () const =0 |
| Returns the unique integer ID representing this type of packet. More... | |
| virtual std::string | typeName () const =0 |
| Returns an English name for this type of packet. More... | |
| const std::string & | label () const |
| Returns the label associated with this individual packet. More... | |
| std::string | humanLabel () const |
| Returns the label associated with this individual packet, adjusted if necessary for human-readable output. More... | |
| std::string | adornedLabel (const std::string &adornment) const |
| Returns the label of this packet adorned with the given string. More... | |
| void | setLabel (const std::string &label) |
| Sets the label associated with this individual packet. More... | |
| std::string | fullName () const |
| Returns a descriptive text string for the packet. More... | |
Tags | |
| bool | hasTag (const std::string &tag) const |
| Determines whether this packet has the given associated tag. More... | |
| bool | hasTags () const |
| Determines whether this packet has any associated tags at all. More... | |
| bool | addTag (const std::string &tag) |
| Associates the given tag with this packet. More... | |
| bool | removeTag (const std::string &tag) |
| Removes the association of the given tag with this packet. More... | |
| void | removeAllTags () |
| Removes all associated tags from this packet. More... | |
| const std::set< std::string > & | tags () const |
| Returns the set of all tags associated with this packet. More... | |
Event Handling | |
| bool | listen (PacketListener *listener) |
| Registers the given packet listener to listen for events on this packet. More... | |
| bool | isListening (PacketListener *listener) |
| Determines whether the given packet listener is currently listening for events on this packet. More... | |
| bool | unlisten (PacketListener *listener) |
| Unregisters the given packet listener so that it no longer listens for events on this packet. More... | |
Tree Queries | |
| Packet * | parent () const |
| Determines the parent packet in the tree structure. More... | |
| Packet * | firstChild () const |
| Determines the first child of this packet in the tree structure. More... | |
| Packet * | lastChild () const |
| Determines the last child of this packet in the tree structure. More... | |
| Packet * | nextSibling () const |
| Determines the next sibling of this packet in the tree structure. More... | |
| Packet * | prevSibling () const |
| Determines the previous sibling of this packet in the tree structure. More... | |
| Packet * | root () const |
| Determines the root of the tree to which this packet belongs. More... | |
| unsigned | levelsDownTo (const Packet *descendant) const |
| Counts the number of levels between this packet and its given descendant in the tree structure. More... | |
| unsigned | levelsUpTo (const Packet *ancestor) const |
| Counts the number of levels between this packet and its given ancestor in the tree structure. More... | |
| bool | isGrandparentOf (const Packet *descendant) const |
| Determines if this packet is equal to or an ancestor of the given packet in the tree structure. More... | |
| size_t | countChildren () const |
| Returns the number of immediate children of this packet. More... | |
| size_t | countDescendants () const |
| Returns the total number of strict descendants of this packet. More... | |
| size_t | totalTreeSize () const |
| Determines the total number of packets in the tree or subtree for which this packet is matriarch. More... | |
Tree Manipulation | |
| void | insertChildFirst (Packet *child) |
| Inserts the given packet as the first child of this packet. More... | |
| void | insertChildLast (Packet *child) |
| Inserts the given packet as the last child of this packet. More... | |
| void | insertChildAfter (Packet *newChild, Packet *prevChild) |
| Inserts the given packet as a child of this packet at the given location in this packet's child list. More... | |
| void | makeOrphan () |
| Cuts this packet away from its parent in the tree structure and instead makes it matriarch of its own tree. More... | |
| void | reparent (Packet *newParent, bool first=false) |
| Cuts this packet away from its parent in the tree structure, and inserts it as a child of the given packet instead. More... | |
| void | transferChildren (Packet *newParent) |
| Cuts all of this packet's children out of the packet tree, and reinserts them as children of the given packet instead. More... | |
| void | swapWithNextSibling () |
| Swaps this packet with its next sibling in the sequence of children beneath their common parent packet. More... | |
| void | moveUp (unsigned steps=1) |
| Moves this packet the given number of steps towards the beginning of its sibling list. More... | |
| void | moveDown (unsigned steps=1) |
| Moves this packet the given number of steps towards the end of its sibling list. More... | |
| void | moveToFirst () |
| Moves this packet to be the first in its sibling list. More... | |
| void | moveToLast () |
| Moves this packet to be the last in its sibling list. More... | |
| void | sortChildren () |
| Sorts the immediate children of this packet according to their packet labels. More... | |
Searching and Iterating | |
| SubtreeIterator | begin () |
| Returns an iterator at the beginning of the range of packets in the subtree rooted at this packet. More... | |
| SubtreeIterator | end () |
| Returns an iterator beyond the end of the range of packets in the subtree rooted at this packet. More... | |
| PacketDescendants | descendants () const |
| Returns a lightweight object for iterating through all strict descendants of this packet in the packet tree. More... | |
| PacketChildren | children () const |
| Returns a lightweight object for iterating through the immediate children of this packet. More... | |
| Packet * | nextTreePacket () |
| Finds the next packet after this in a complete depth-first iteration of the entire tree structure to which this packet belongs. More... | |
| const Packet * | nextTreePacket () const |
| Finds the next packet after this in a complete depth-first iteration of the entire tree structure to which this packet belongs. More... | |
| Packet * | nextTreePacket (const std::string &type) |
| Finds the next packet after this of the requested type in a complete depth-first iteration of the entire tree structure. More... | |
| const Packet * | nextTreePacket (const std::string &type) const |
| Finds the next packet after this of the requested type in a complete depth-first iteration of the entire tree structure. More... | |
| Packet * | firstTreePacket (const std::string &type) |
| Finds the first packet of the requested type in a complete depth-first iteration of the tree structure. More... | |
| const Packet * | firstTreePacket (const std::string &type) const |
| Finds the first packet of the requested type in a complete depth-first iteration of the tree structure. More... | |
| Packet * | findPacketLabel (const std::string &label) |
| Finds the packet with the requested label in the tree or subtree for which this packet is matriarch. More... | |
| const Packet * | findPacketLabel (const std::string &label) const |
| Finds the packet with the requested label in the tree or subtree for which this packet is matriarch. More... | |
Packet Dependencies | |
| bool | isPacketEditable () const |
| Determines whether this packet can be altered without invalidating or otherwise upsetting any of its immediate children. More... | |
Cloning | |
| Packet * | clone (bool cloneDescendants=false, bool end=true) const |
| Clones this packet (and possibly its descendants), assigns to it a suitable unused label and inserts the clone into the tree as a sibling of this packet. More... | |
Constructors and Destructors | |
| Triangulation () | |
| Default constructor. More... | |
| Triangulation (const Triangulation ©) | |
| Creates a copy of the given triangulation. More... | |
| Triangulation (const Triangulation ©, bool cloneProps) | |
| Creates a new copy of the given triangulation, with the option of whether or not to clone its computed properties also. More... | |
| Triangulation (const std::string &description) | |
| "Magic" constructor that tries to find some way to interpret the given string as a triangulation. More... | |
| virtual | ~Triangulation () |
| Destroys this triangulation. More... | |
Packet Administration | |
| virtual void | writeTextShort (std::ostream &out) const override |
| Writes a short text representation of this object to the given output stream. More... | |
| virtual void | writeTextLong (std::ostream &out) const override |
| Writes a detailed text representation of this object to the given output stream. More... | |
| virtual bool | dependsOnParent () const override |
| Determines if this packet depends upon its parent. More... | |
Pentachora | |
| Pentachoron< 4 > * | newPentachoron () |
| A dimension-specific alias for newSimplex(). More... | |
| Pentachoron< 4 > * | newPentachoron (const std::string &desc) |
| A dimension-specific alias for newSimplex(). More... | |
| void | removePentachoron (Pentachoron< 4 > *tet) |
| A dimension-specific alias for removeSimplex(). More... | |
| void | removePentachoronAt (size_t index) |
| A dimension-specific alias for removeSimplexAt(). More... | |
| void | removeAllPentachora () |
| A dimension-specific alias for removeAllSimplices(). More... | |
Basic Properties | |
| long | eulerCharManifold () const |
| Returns the Euler characteristic of the corresponding compact manifold. More... | |
| bool | isIdeal () const |
| Determines if this triangulation is ideal. More... | |
| bool | isClosed () const |
| Determines if this triangulation is closed. More... | |
Algebraic Properties | |
| const AbelianGroup & | homologyH2 () const |
| Returns the second homology group for this triangulation. More... | |
Skeletal Transformations | |
| bool | intelligentSimplify () |
| Attempts to simplify the triangulation as intelligently as possible without further input. More... | |
| bool | simplifyToLocalMinimum (bool perform=true) |
| Uses all known simplification moves to reduce the triangulation monotonically to some local minimum number of pentachora. More... | |
| bool | simplifyExhaustive (int height=1, unsigned nThreads=1, ProgressTrackerOpen *tracker=0) |
| Attempts to simplify this triangulation using a slow but exhaustive search through the Pachner graph. More... | |
| template<typename Action , typename... Args> | |
| bool | retriangulate (int height, unsigned nThreads, ProgressTrackerOpen *tracker, Action &&action, Args &&... args) const |
| Explores all triangulations that can be reached from this via Pachner moves, without exceeding a given number of additional pentachora. More... | |
| bool | fiveOneMove (Vertex< 4 > *v, bool check=true, bool perform=true) |
| Deprecated function that checks the eligibility of and/or performs a 5-1 Pachner move upon the given vertex. More... | |
| bool | fourTwoMove (Edge< 4 > *e, bool check=true, bool perform=true) |
| Deprecated function that checks the eligibility of and/or performs a 4-2 move about the given edge. More... | |
| bool | threeThreeMove (Triangle< 4 > *t, bool check=true, bool perform=true) |
| Deprecated function that checks the eligibility of and/or performs a 3-3 move about the given triangle. More... | |
| bool | twoFourMove (Tetrahedron< 4 > *f, bool check=true, bool perform=true) |
| Deprecated function that checks the eligibility of and/or performs a 2-4 move about the given facet. More... | |
| bool | oneFiveMove (Pentachoron< 4 > *p, bool check=true, bool perform=true) |
| Deprecated function that checks the eligibility of and/or performs a 1-5 Pachner move upon the given pentachoron. More... | |
| bool | twoZeroMove (Triangle< 4 > *t, bool check=true, bool perform=true) |
| Checks the eligibility of and/or performs a 2-0 move about the given triangle of degree 2. More... | |
| bool | twoZeroMove (Edge< 4 > *e, bool check=true, bool perform=true) |
| Checks the eligibility of and/or performs a 2-0 move about the given edge of degree 2. More... | |
| bool | twoZeroMove (Vertex< 4 > *v, bool check=true, bool perform=true) |
| Checks the eligibility of and/or performs a 2-0 move about the given vertex of degree 2. More... | |
| bool | openBook (Tetrahedron< 4 > *t, bool check=true, bool perform=true) |
| Checks the eligibility of and/or performs a book opening move about the given tetrahedron. More... | |
| bool | shellBoundary (Pentachoron< 4 > *p, bool check=true, bool perform=true) |
| Checks the eligibility of and/or performs a boundary shelling move on the given pentachoron. More... | |
| bool | collapseEdge (Edge< 4 > *e, bool check=true, bool perform=true) |
| Checks the eligibility of and/or performs a collapse of an edge in such a way that the topology of the manifold does not change and the number of vertices of the triangulation decreases by one. More... | |
Packet Identification | |
| virtual PacketType | type () const =0 |
| Returns the unique integer ID representing this type of packet. More... | |
| virtual std::string | typeName () const =0 |
| Returns an English name for this type of packet. More... | |
| const std::string & | label () const |
| Returns the label associated with this individual packet. More... | |
| std::string | humanLabel () const |
| Returns the label associated with this individual packet, adjusted if necessary for human-readable output. More... | |
| std::string | adornedLabel (const std::string &adornment) const |
| Returns the label of this packet adorned with the given string. More... | |
| void | setLabel (const std::string &label) |
| Sets the label associated with this individual packet. More... | |
| std::string | fullName () const |
| Returns a descriptive text string for the packet. More... | |
Tags | |
| bool | hasTag (const std::string &tag) const |
| Determines whether this packet has the given associated tag. More... | |
| bool | hasTags () const |
| Determines whether this packet has any associated tags at all. More... | |
| bool | addTag (const std::string &tag) |
| Associates the given tag with this packet. More... | |
| bool | removeTag (const std::string &tag) |
| Removes the association of the given tag with this packet. More... | |
| void | removeAllTags () |
| Removes all associated tags from this packet. More... | |
| const std::set< std::string > & | tags () const |
| Returns the set of all tags associated with this packet. More... | |
Event Handling | |
| bool | listen (PacketListener *listener) |
| Registers the given packet listener to listen for events on this packet. More... | |
| bool | isListening (PacketListener *listener) |
| Determines whether the given packet listener is currently listening for events on this packet. More... | |
| bool | unlisten (PacketListener *listener) |
| Unregisters the given packet listener so that it no longer listens for events on this packet. More... | |
Tree Queries | |
| Packet * | parent () const |
| Determines the parent packet in the tree structure. More... | |
| Packet * | firstChild () const |
| Determines the first child of this packet in the tree structure. More... | |
| Packet * | lastChild () const |
| Determines the last child of this packet in the tree structure. More... | |
| Packet * | nextSibling () const |
| Determines the next sibling of this packet in the tree structure. More... | |
| Packet * | prevSibling () const |
| Determines the previous sibling of this packet in the tree structure. More... | |
| Packet * | root () const |
| Determines the root of the tree to which this packet belongs. More... | |
| unsigned | levelsDownTo (const Packet *descendant) const |
| Counts the number of levels between this packet and its given descendant in the tree structure. More... | |
| unsigned | levelsUpTo (const Packet *ancestor) const |
| Counts the number of levels between this packet and its given ancestor in the tree structure. More... | |
| bool | isGrandparentOf (const Packet *descendant) const |
| Determines if this packet is equal to or an ancestor of the given packet in the tree structure. More... | |
| size_t | countChildren () const |
| Returns the number of immediate children of this packet. More... | |
| size_t | countDescendants () const |
| Returns the total number of strict descendants of this packet. More... | |
| size_t | totalTreeSize () const |
| Determines the total number of packets in the tree or subtree for which this packet is matriarch. More... | |
Tree Manipulation | |
| void | insertChildFirst (Packet *child) |
| Inserts the given packet as the first child of this packet. More... | |
| void | insertChildLast (Packet *child) |
| Inserts the given packet as the last child of this packet. More... | |
| void | insertChildAfter (Packet *newChild, Packet *prevChild) |
| Inserts the given packet as a child of this packet at the given location in this packet's child list. More... | |
| void | makeOrphan () |
| Cuts this packet away from its parent in the tree structure and instead makes it matriarch of its own tree. More... | |
| void | reparent (Packet *newParent, bool first=false) |
| Cuts this packet away from its parent in the tree structure, and inserts it as a child of the given packet instead. More... | |
| void | transferChildren (Packet *newParent) |
| Cuts all of this packet's children out of the packet tree, and reinserts them as children of the given packet instead. More... | |
| void | swapWithNextSibling () |
| Swaps this packet with its next sibling in the sequence of children beneath their common parent packet. More... | |
| void | moveUp (unsigned steps=1) |
| Moves this packet the given number of steps towards the beginning of its sibling list. More... | |
| void | moveDown (unsigned steps=1) |
| Moves this packet the given number of steps towards the end of its sibling list. More... | |
| void | moveToFirst () |
| Moves this packet to be the first in its sibling list. More... | |
| void | moveToLast () |
| Moves this packet to be the last in its sibling list. More... | |
| void | sortChildren () |
| Sorts the immediate children of this packet according to their packet labels. More... | |
Searching and Iterating | |
| SubtreeIterator | begin () |
| Returns an iterator at the beginning of the range of packets in the subtree rooted at this packet. More... | |
| SubtreeIterator | end () |
| Returns an iterator beyond the end of the range of packets in the subtree rooted at this packet. More... | |
| PacketDescendants | descendants () const |
| Returns a lightweight object for iterating through all strict descendants of this packet in the packet tree. More... | |
| PacketChildren | children () const |
| Returns a lightweight object for iterating through the immediate children of this packet. More... | |
| Packet * | nextTreePacket () |
| Finds the next packet after this in a complete depth-first iteration of the entire tree structure to which this packet belongs. More... | |
| const Packet * | nextTreePacket () const |
| Finds the next packet after this in a complete depth-first iteration of the entire tree structure to which this packet belongs. More... | |
| Packet * | nextTreePacket (const std::string &type) |
| Finds the next packet after this of the requested type in a complete depth-first iteration of the entire tree structure. More... | |
| const Packet * | nextTreePacket (const std::string &type) const |
| Finds the next packet after this of the requested type in a complete depth-first iteration of the entire tree structure. More... | |
| Packet * | firstTreePacket (const std::string &type) |
| Finds the first packet of the requested type in a complete depth-first iteration of the tree structure. More... | |
| const Packet * | firstTreePacket (const std::string &type) const |
| Finds the first packet of the requested type in a complete depth-first iteration of the tree structure. More... | |
| Packet * | findPacketLabel (const std::string &label) |
| Finds the packet with the requested label in the tree or subtree for which this packet is matriarch. More... | |
| const Packet * | findPacketLabel (const std::string &label) const |
| Finds the packet with the requested label in the tree or subtree for which this packet is matriarch. More... | |
Packet Dependencies | |
| bool | isPacketEditable () const |
| Determines whether this packet can be altered without invalidating or otherwise upsetting any of its immediate children. More... | |
Cloning | |
| Packet * | clone (bool cloneDescendants=false, bool end=true) const |
| Clones this packet (and possibly its descendants), assigns to it a suitable unused label and inserts the clone into the tree as a sibling of this packet. More... | |
Simplices | |
| size_t | size () const |
| Returns the number of top-dimensional simplices in the triangulation. More... | |
| const std::vector< Simplex< dim > * > & | simplices () const |
| Returns all top-dimensional simplices in the triangulation. More... | |
| Simplex< dim > * | simplex (size_t index) |
| Returns the top-dimensional simplex at the given index in the triangulation. More... | |
| const Simplex< dim > * | simplex (size_t index) const |
| Returns the top-dimensional simplex at the given index in the triangulation. More... | |
| Simplex< dim > * | newSimplex () |
| Creates a new top-dimensional simplex and adds it to this triangulation. More... | |
| Simplex< dim > * | newSimplex (const std::string &desc) |
| Creates a new top-dimensional simplex with the given description and adds it to this triangulation. More... | |
| void | removeSimplex (Simplex< dim > *simplex) |
| Removes the given top-dimensional simplex from this triangulation. More... | |
| void | removeSimplexAt (size_t index) |
| Removes the top-dimensional simplex at the given index in this triangulation. More... | |
| void | removeAllSimplices () |
| Removes all simplices from the triangulation. More... | |
| void | swapContents (Triangulation< dim > &other) |
| Swaps the contents of this and the given triangulation. More... | |
| void | moveContentsTo (Triangulation< dim > &dest) |
| Moves the contents of this triangulation into the given destination triangulation, without destroying any pre-existing contents. More... | |
Skeletal Queries | |
| size_t | countComponents () const |
| Returns the number of connected components in this triangulation. More... | |
| size_t | countBoundaryComponents () const |
| Returns the number of boundary components in this triangulation. More... | |
| template<int subdim> | |
| size_t | countFaces () const |
| Returns the number of subdim-faces in this triangulation. More... | |
| std::vector< size_t > | fVector () const |
| Returns the f-vector of this triangulation, which counts the number of faces of all dimensions. More... | |
| const std::vector< Component< dim > * > & | components () const |
| Returns all connected components of this triangulation. More... | |
| const std::vector< BoundaryComponent< dim > * > & | boundaryComponents () const |
| Returns all boundary components of this triangulation. More... | |
| template<int subdim> | |
| const FaceList< dim, subdim > & | faces () const |
| Returns an object that allows iteration through and random access to all subdim-faces of this triangulation. More... | |
| Component< dim > * | component (size_t index) const |
| Returns the requested connected component of this triangulation. More... | |
| BoundaryComponent< dim > * | boundaryComponent (size_t index) const |
| Returns the requested boundary component of this triangulation. More... | |
| template<int subdim> | |
| Face< dim, subdim > * | face (size_t index) const |
| Returns the requested subdim-face of this triangulation. More... | |
Basic Properties | |
| bool | isEmpty () const |
| Determines whether this triangulation is empty. More... | |
| bool | isValid () const |
| Determines if this triangulation is valid. More... | |
| bool | hasBoundaryFacets () const |
| Determines if this triangulation has any boundary facets. More... | |
| size_t | countBoundaryFacets () const |
| Returns the total number of boundary facets in this triangulation. More... | |
| bool | isOrientable () const |
| Determines if this triangulation is orientable. More... | |
| bool | isConnected () const |
| Determines if this triangulation is connected. More... | |
| bool | isOriented () const |
| Determines if this triangulation is oriented; that is, if the vertices of its top-dimensional simplices are labelled in a way that preserves orientation across adjacent facets. More... | |
| long | eulerCharTri () const |
| Returns the Euler characteristic of this triangulation. More... | |
Algebraic Properties | |
| const GroupPresentation & | fundamentalGroup () const |
| Returns the fundamental group of this triangulation. More... | |
| void | simplifiedFundamentalGroup (GroupPresentation *newGroup) |
| Notifies the triangulation that you have simplified the presentation of its fundamental group. More... | |
| const AbelianGroup & | homology () const |
| Returns the first homology group for this triangulation. More... | |
| const AbelianGroup & | homologyH1 () const |
| Returns the first homology group for this triangulation. More... | |
Skeletal Transformations | |
| void | orient () |
| Relabels the vertices of top-dimensional simplices in this triangulation so that all simplices are oriented consistently, if possible. More... | |
| void | reflect () |
| Relabels the vertices of top-dimensional simplices in this triangulation so that all simplices reflect their orientation. More... | |
| template<int k> | |
| bool | pachner (Face< dim, k > *f, bool check=true, bool perform=true) |
| Checks the eligibility of and/or performs a (dim + 1 - k)-(k + 1) Pachner move about the given k-face. More... | |
Subdivisions, Extensions and Covers | |
| void | makeDoubleCover () |
| Converts this triangulation into its double cover. More... | |
| void | barycentricSubdivision () |
| Does a barycentric subdivision of the triangulation. More... | |
| bool | finiteToIdeal () |
| Converts each real boundary component into a cusp (i.e., an ideal vertex). More... | |
Decompositions | |
| size_t | splitIntoComponents (Packet *componentParent=nullptr, bool setLabels=true) |
| Splits a disconnected triangulation into many smaller triangulations, one for each component. More... | |
Isomorphism Testing | |
| bool | isIdenticalTo (const Triangulation< dim > &other) const |
| Determines if this triangulation is combinatorially identical to the given triangulation. More... | |
| std::unique_ptr< Isomorphism< dim > > | isIsomorphicTo (const Triangulation< dim > &other) const |
| Determines if this triangulation is combinatorially isomorphic to the given triangulation. More... | |
| std::unique_ptr< Isomorphism< dim > > | isContainedIn (const Triangulation< dim > &other) const |
| Determines if an isomorphic copy of this triangulation is contained within the given triangulation, possibly as a subcomplex of some larger component (or components). More... | |
| template<typename OutputIterator > | |
| size_t | findAllIsomorphisms (const Triangulation< dim > &other, OutputIterator output) const |
| Finds all ways in which this triangulation is combinatorially isomorphic to the given triangulation. More... | |
| template<typename OutputIterator > | |
| size_t | findAllSubcomplexesIn (const Triangulation< dim > &other, OutputIterator output) const |
| Finds all ways in which an isomorphic copy of this triangulation is contained within the given triangulation, possibly as a subcomplex of some larger component (or components). More... | |
| bool | makeCanonical () |
| Relabel the top-dimensional simplices and their vertices so that this triangulation is in canonical form. More... | |
Building Triangulations | |
| void | insertTriangulation (const Triangulation< dim > &source) |
| Inserts a copy of the given triangulation into this triangulation. More... | |
| void | insertConstruction (size_t nSimplices, const int adjacencies[][dim+1], const int gluings[][dim+1][dim+1]) |
| Inserts a given triangulation into this triangulation, where the given triangulation is described by a pair of integer arrays. More... | |
Exporting Triangulations | |
| std::string | isoSig (Isomorphism< dim > **relabelling=0) const |
| Constructs the isomorphism signature for this triangulation. More... | |
| std::string | dumpConstruction () const |
| Returns C++ code that can be used with insertConstruction() to reconstruct this triangulation. More... | |
Simplices | |
| size_t | size () const |
| Returns the number of top-dimensional simplices in the triangulation. More... | |
| const std::vector< Simplex< dim > * > & | simplices () const |
| Returns all top-dimensional simplices in the triangulation. More... | |
| Simplex< dim > * | simplex (size_t index) |
| Returns the top-dimensional simplex at the given index in the triangulation. More... | |
| const Simplex< dim > * | simplex (size_t index) const |
| Returns the top-dimensional simplex at the given index in the triangulation. More... | |
| Simplex< dim > * | newSimplex () |
| Creates a new top-dimensional simplex and adds it to this triangulation. More... | |
| Simplex< dim > * | newSimplex (const std::string &desc) |
| Creates a new top-dimensional simplex with the given description and adds it to this triangulation. More... | |
| void | removeSimplex (Simplex< dim > *simplex) |
| Removes the given top-dimensional simplex from this triangulation. More... | |
| void | removeSimplexAt (size_t index) |
| Removes the top-dimensional simplex at the given index in this triangulation. More... | |
| void | removeAllSimplices () |
| Removes all simplices from the triangulation. More... | |
| void | swapContents (Triangulation< dim > &other) |
| Swaps the contents of this and the given triangulation. More... | |
| void | moveContentsTo (Triangulation< dim > &dest) |
| Moves the contents of this triangulation into the given destination triangulation, without destroying any pre-existing contents. More... | |
Skeletal Queries | |
| size_t | countComponents () const |
| Returns the number of connected components in this triangulation. More... | |
| size_t | countBoundaryComponents () const |
| Returns the number of boundary components in this triangulation. More... | |
| template<int subdim> | |
| size_t | countFaces () const |
| Returns the number of subdim-faces in this triangulation. More... | |
| std::vector< size_t > | fVector () const |
| Returns the f-vector of this triangulation, which counts the number of faces of all dimensions. More... | |
| const std::vector< Component< dim > * > & | components () const |
| Returns all connected components of this triangulation. More... | |
| const std::vector< BoundaryComponent< dim > * > & | boundaryComponents () const |
| Returns all boundary components of this triangulation. More... | |
| template<int subdim> | |
| const FaceList< dim, subdim > & | faces () const |
| Returns an object that allows iteration through and random access to all subdim-faces of this triangulation. More... | |
| Component< dim > * | component (size_t index) const |
| Returns the requested connected component of this triangulation. More... | |
| BoundaryComponent< dim > * | boundaryComponent (size_t index) const |
| Returns the requested boundary component of this triangulation. More... | |
| template<int subdim> | |
| Face< dim, subdim > * | face (size_t index) const |
| Returns the requested subdim-face of this triangulation. More... | |
Basic Properties | |
| bool | isEmpty () const |
| Determines whether this triangulation is empty. More... | |
| bool | isValid () const |
| Determines if this triangulation is valid. More... | |
| bool | hasBoundaryFacets () const |
| Determines if this triangulation has any boundary facets. More... | |
| size_t | countBoundaryFacets () const |
| Returns the total number of boundary facets in this triangulation. More... | |
| bool | isOrientable () const |
| Determines if this triangulation is orientable. More... | |
| bool | isConnected () const |
| Determines if this triangulation is connected. More... | |
| bool | isOriented () const |
| Determines if this triangulation is oriented; that is, if the vertices of its top-dimensional simplices are labelled in a way that preserves orientation across adjacent facets. More... | |
| long | eulerCharTri () const |
| Returns the Euler characteristic of this triangulation. More... | |
Algebraic Properties | |
| const GroupPresentation & | fundamentalGroup () const |
| Returns the fundamental group of this triangulation. More... | |
| void | simplifiedFundamentalGroup (GroupPresentation *newGroup) |
| Notifies the triangulation that you have simplified the presentation of its fundamental group. More... | |
| const AbelianGroup & | homology () const |
| Returns the first homology group for this triangulation. More... | |
| const AbelianGroup & | homologyH1 () const |
| Returns the first homology group for this triangulation. More... | |
Skeletal Transformations | |
| void | orient () |
| Relabels the vertices of top-dimensional simplices in this triangulation so that all simplices are oriented consistently, if possible. More... | |
| void | reflect () |
| Relabels the vertices of top-dimensional simplices in this triangulation so that all simplices reflect their orientation. More... | |
| template<int k> | |
| bool | pachner (Face< dim, k > *f, bool check=true, bool perform=true) |
| Checks the eligibility of and/or performs a (dim + 1 - k)-(k + 1) Pachner move about the given k-face. More... | |
Subdivisions, Extensions and Covers | |
| void | makeDoubleCover () |
| Converts this triangulation into its double cover. More... | |
| void | barycentricSubdivision () |
| Does a barycentric subdivision of the triangulation. More... | |
| bool | finiteToIdeal () |
| Converts each real boundary component into a cusp (i.e., an ideal vertex). More... | |
Decompositions | |
| size_t | splitIntoComponents (Packet *componentParent=nullptr, bool setLabels=true) |
| Splits a disconnected triangulation into many smaller triangulations, one for each component. More... | |
Isomorphism Testing | |
| bool | isIdenticalTo (const Triangulation< dim > &other) const |
| Determines if this triangulation is combinatorially identical to the given triangulation. More... | |
| std::unique_ptr< Isomorphism< dim > > | isIsomorphicTo (const Triangulation< dim > &other) const |
| Determines if this triangulation is combinatorially isomorphic to the given triangulation. More... | |
| std::unique_ptr< Isomorphism< dim > > | isContainedIn (const Triangulation< dim > &other) const |
| Determines if an isomorphic copy of this triangulation is contained within the given triangulation, possibly as a subcomplex of some larger component (or components). More... | |
| template<typename OutputIterator > | |
| size_t | findAllIsomorphisms (const Triangulation< dim > &other, OutputIterator output) const |
| Finds all ways in which this triangulation is combinatorially isomorphic to the given triangulation. More... | |
| template<typename OutputIterator > | |
| size_t | findAllSubcomplexesIn (const Triangulation< dim > &other, OutputIterator output) const |
| Finds all ways in which an isomorphic copy of this triangulation is contained within the given triangulation, possibly as a subcomplex of some larger component (or components). More... | |
| bool | makeCanonical () |
| Relabel the top-dimensional simplices and their vertices so that this triangulation is in canonical form. More... | |
Building Triangulations | |
| void | insertTriangulation (const Triangulation< dim > &source) |
| Inserts a copy of the given triangulation into this triangulation. More... | |
| void | insertConstruction (size_t nSimplices, const int adjacencies[][dim+1], const int gluings[][dim+1][dim+1]) |
| Inserts a given triangulation into this triangulation, where the given triangulation is described by a pair of integer arrays. More... | |
Exporting Triangulations | |
| std::string | isoSig (Isomorphism< dim > **relabelling=0) const |
| Constructs the isomorphism signature for this triangulation. More... | |
| std::string | dumpConstruction () const |
| Returns C++ code that can be used with insertConstruction() to reconstruct this triangulation. More... | |
Static Public Member Functions | |
Constructors and Destructors | |
| static void | safeDelete (Packet *p) |
| Either destroys or orphans the given packet, according to whether it has safe pointers that currently reference it. More... | |
Constructors and Destructors | |
| static void | safeDelete (Packet *p) |
| Either destroys or orphans the given packet, according to whether it has safe pointers that currently reference it. More... | |
Constructors and Destructors | |
| static void | safeDelete (Packet *p) |
| Either destroys or orphans the given packet, according to whether it has safe pointers that currently reference it. More... | |
Constructors and Destructors | |
| static void | safeDelete (Packet *p) |
| Either destroys or orphans the given packet, according to whether it has safe pointers that currently reference it. More... | |
Constructors and Destructors | |
| static void | safeDelete (Packet *p) |
| Either destroys or orphans the given packet, according to whether it has safe pointers that currently reference it. More... | |
Constructors and Destructors | |
| static void | safeDelete (Packet *p) |
| Either destroys or orphans the given packet, according to whether it has safe pointers that currently reference it. More... | |
Constructors and Destructors | |
| static void | safeDelete (Packet *p) |
| Either destroys or orphans the given packet, according to whether it has safe pointers that currently reference it. More... | |
Constructors and Destructors | |
| static void | safeDelete (Packet *p) |
| Either destroys or orphans the given packet, according to whether it has safe pointers that currently reference it. More... | |
Constructors and Destructors | |
| static void | safeDelete (Packet *p) |
| Either destroys or orphans the given packet, according to whether it has safe pointers that currently reference it. More... | |
Constructors and Destructors | |
| static void | safeDelete (Packet *p) |
| Either destroys or orphans the given packet, according to whether it has safe pointers that currently reference it. More... | |
Constructors and Destructors | |
| static void | safeDelete (Packet *p) |
| Either destroys or orphans the given packet, according to whether it has safe pointers that currently reference it. More... | |
Constructors and Destructors | |
| static void | safeDelete (Packet *p) |
| Either destroys or orphans the given packet, according to whether it has safe pointers that currently reference it. More... | |
Constructors and Destructors | |
| static void | safeDelete (Packet *p) |
| Either destroys or orphans the given packet, according to whether it has safe pointers that currently reference it. More... | |
Constructors and Destructors | |
| static void | safeDelete (Packet *p) |
| Either destroys or orphans the given packet, according to whether it has safe pointers that currently reference it. More... | |
Constructors and Destructors | |
| static void | safeDelete (Packet *p) |
| Either destroys or orphans the given packet, according to whether it has safe pointers that currently reference it. More... | |
Static Public Attributes | |
| static constexpr int | dimension = dim |
| A compile-time constant that gives the dimension of the triangulation. More... | |
Protected Attributes | |
| MarkedVector< Simplex< dim > > | simplices_ |
| The top-dimensional simplices that form the triangulation. More... | |
| MarkedVector< BoundaryComponent< dim > > | boundaryComponents_ |
| The components that form the boundary of the triangulation. More... | |
| bool | valid_ |
| Is this triangulation valid? See isValid() for details on what this means. More... | |
| int | topologyLock_ |
| If non-zero, this will cause Triangulation<dim>::clearAllProperties() to preserve any computed properties that related to the manifold (as opposed to the specific triangulation). More... | |
File I/O | |
| bool | save (const char *filename, bool compressed=true) const |
| Saves the subtree rooted at this packet to the given Regina data file, using Regina's native XML file format. More... | |
| bool | save (std::ostream &s, bool compressed=true) const |
| Writes the subtree rooted at this packet to the given output stream, in the format of a Regina XML data file. More... | |
| void | writeXMLFile (std::ostream &out) const |
| Writes the subtree rooted at this packet to the given output stream in Regina's native XML file format. More... | |
| std::string | internalID () const |
| Returns a unique string ID that identifies this packet. More... | |
| bool | hasOwner () const |
| Indicates whether some other object in the calculation engine is responsible for ultimately destroying this object. More... | |
| void | writeXMLPacketTree (std::ostream &out) const |
| Writes a chunk of XML containing the subtree with this packet as matriarch. More... | |
Importing Triangulations | |
| static Triangulation< dim > * | fromIsoSig (const std::string &sig) |
| Recovers a full triangulation from an isomorphism signature. More... | |
| static size_t | isoSigComponentSize (const std::string &sig) |
| Deduces the number of top-dimensional simplices in a connected triangulation from its isomorphism signature. More... | |
| void | ensureSkeleton () const |
| Ensures that all "on demand" skeletal objects have been calculated. More... | |
| bool | calculatedSkeleton () const |
| Determines whether the skeletal objects and properties of this triangulation have been calculated. More... | |
| void | clearBaseProperties () |
| Clears all properties that are managed by this base class. More... | |
| void | swapBaseProperties (TriangulationBase< dim > &other) |
| Swaps all properties that are managed by this base class, including skeletal data, with the given triangulation. More... | |
| void | writeXMLBaseProperties (std::ostream &out) const |
| Writes a chunk of XML containing properties of this triangulation. More... | |
Subdivisions and Covers | |
| class | regina::Face< 4, 4 > |
| class | regina::detail::SimplexBase< 4 > |
| class | regina::detail::TriangulationBase< 4 > |
| class | regina::XMLTriangulationReader< 4 > |
| bool | idealToFinite () |
| Converts an ideal triangulation into a finite triangulation. More... | |
| static XMLPacketReader * | xmlReader (Packet *parent, XMLTreeResolver &resolver) |
| virtual Packet * | internalClonePacket (Packet *parent) const override |
| Makes a newly allocated copy of this packet. More... | |
| virtual void | writeXMLPacketData (std::ostream &out) const override |
| Writes a chunk of XML containing the data for this packet only. More... | |
Represents a 4-dimensional triangulation, typically of a 4-manifold.
This is a specialisation of the generic Triangulation class template; see the Triangulation documentation for a general overview of how the triangulation classes work.
This 4-dimensional specialisation offers significant extra functionality, including many functions specific to 4-manifolds.
A 4-manifold triangulation is built from pentachora: a pentachoron is a 4-dimensional simplex, with five vertices.
|
inherited |
The type of object being pointed to.
|
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.
|
inlineinherited |
Is there one or more SafePtr currently pointing to this object?
|
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.