| Constructors and Destructor
| CBNSLink ()
Default Constructor
| | CBNSLink (CBNSNode* pParentNode, CBNSNode* pChildNode, bool bIsDirected = true)
Constructor with three parameters
| virtual | ~CBNSLink ()
Destructor
|
|
| Out Functions
string | GetLabel ()
Returns the Label of the Link
| CBNSNode* | GetParent ()
Returns the pointer to the parent node
| CBNSNode* | GetChild ()
Returns the pointer to the child node
|
|
| In Functions
void | SetDirected (bool bDirected)
Sets the link to bDirected
| void | SetLabel (string sLabel)
Sets the label of the link to sLabel
| void | SetParent (CBNSNode* pParentNode)
Sets the parent node of the link to pParentNode
| void | SetChild ( CBNSNode* pChildNode)
Sets the child node of the link to pChildNode
|
|
| Other Utility Functions
bool | IsDirected ()
Returns true if the link is directed
| bool | IsConnected (CBNSNode* pNode)
Returns true if pNode is either a parent node or a child node
| bool | IsParent (CBNSNode* pNode)
Returns true if pNode is a parent node
| bool | IsChild (CBNSNode* pNode)
Returns true if pNode is a child node
| void | PrintLink ()
Prints the information of the link to the console
|
|
| Overloaded Operators
void | operator= (CBNSLink & cLink)
Assignment Operator
| bool | operator== (CBNSLink & cLink)
Comparison Operator
| bool | operator > (CBNSLink & cLink)
Greater than Operator
| bool | operator < (CBNSLink & cLink)
Less than Operator
|
|
| Friend Functions
friend ostream& | operator<< (ostream & stream, CBNSLink& cLink)
Stream insertion operator
| friend void | PrintLinkSet (const CBNSSet<CBNSLink*> linkSet)
Prints the contents in the linkSet
|
|