Web Analytics Made Easy - Statcounter
Skip to content

Class SBCGraphArcCollection#

ClassList > SBCGraphArcCollection

This class describes a collection of graph arcs. More...

  • #include <SBCGraphArcCollection.hpp>

Inherits the following classes: SBPointerList< SBCGraphNode, SBCGraphArc >

Classes#

Type Name
class iterator
class reverse_iterator

Public Functions#

Type Name
SBCGraphArcCollection (SBCGraphNode * graphNode)
Constructs a graph arc collection owned by the specified graph node.
iterator begin ()
Returns a begin iterator to arcs.
iterator end ()
Returns an end iterator to arcs.
SBCGraphNode * getGraphNodeOwner () const
Returns the graph node which owns the graph arc collection.
reverse_iterator rbegin ()
Returns a reverse begin iterator to arcs.
reverse_iterator rend ()
Returns a reverse end iterator to arcs.
virtual ~SBCGraphArcCollection ()
Destroys the graph arc collection.

Protected Attributes#

Type Name
SBCGraphNode * graphNodeOwner
The graph node which owns the graph arc collection.

Detailed Description#

Short name: SBGraphArcCollection

Public Functions Documentation#

function SBCGraphArcCollection#

Constructs a graph arc collection owned by the specified graph node.

explicit SBCGraphArcCollection::SBCGraphArcCollection (
    SBCGraphNode * graphNode
) 

Parameters:

  • g Pointer to the graph node that will own this collection.

function begin#

Returns a begin iterator to arcs.

iterator SBCGraphArcCollection::begin () 

Returns an iterator to the first graph arc in the collection.

Returns:

Iterator pointing to the first arc.


function end#

Returns an end iterator to arcs.

iterator SBCGraphArcCollection::end () 

Returns an iterator to the end of the collection (past-the-last arc).

Returns:

End iterator.


function getGraphNodeOwner#

Returns the graph node which owns the graph arc collection.

SBCGraphNode * SBCGraphArcCollection::getGraphNodeOwner () const

Returns the graph node that owns this collection.

Returns:

Pointer to the owning SBCGraphNode.


function rbegin#

Returns a reverse begin iterator to arcs.

reverse_iterator SBCGraphArcCollection::rbegin () 

Returns a reverse iterator to the last graph arc in the collection.

Returns:

Reverse iterator pointing to the last arc.


function rend#

Returns a reverse end iterator to arcs.

reverse_iterator SBCGraphArcCollection::rend () 

Returns a reverse iterator to the element before the first (past-the-beginning).

Returns:

Reverse end iterator.


function ~SBCGraphArcCollection#

Destroys the graph arc collection.

virtual SBCGraphArcCollection::~SBCGraphArcCollection () 


Protected Attributes Documentation#

variable graphNodeOwner#

The graph node which owns the graph arc collection.

SBCGraphNode* SBCGraphArcCollection::graphNodeOwner;