C# Class Smrf.NodeXL.Core.VertexCollection

Represents a collection of vertices.
This is a collection of objects that implement the IVertex interface. You can add vertices to the collection, remove them, access a vertex, and enumerate all vertices.
Inheritance: NodeXLBase, IVertexCollection
ファイルを表示 Open project: 2014-sed-team3/term-project Class Usage Examples

Protected Properties

Property Type Description
m_oLinkedList LinkedList
m_oParentGraph IGraph

Public Methods

Method Description
Add ( ) : IVertex
Add ( IVertex vertex ) : void
AssertValid ( ) : void
Clear ( ) : void
Contains ( IVertex vertex ) : System.Boolean
Contains ( Int32 id ) : System.Boolean
Contains ( String name ) : System.Boolean
CopyTo ( IVertex array, Int32 index ) : void
Find ( Int32 id, IVertex &vertex ) : System.Boolean
Find ( String name, IVertex &vertex ) : System.Boolean
GetEnumerator ( ) : IEnumerator
GetReverseEnumerable ( ) : IEnumerable
Remove ( IVertex vertex ) : System.Boolean
Remove ( Int32 id ) : System.Boolean
Remove ( String name ) : System.Boolean
ToString ( ) : String
VertexCollection ( IGraph parentGraph ) : System

Initializes a new instance of the VertexCollection class.

Protected Methods

Method Description
Find ( System.Boolean bByID, Int32 iID, String sName, LinkedListNode &oLinkedListNode ) : System.Boolean
Remove ( LinkedListNode oLinkedListNode ) : void

Private Methods

Method Description
System ( ) : System.Collections.IEnumerator

Method Details

Add() public method

public Add ( ) : IVertex
return IVertex

Add() public method

public Add ( IVertex vertex ) : void
vertex IVertex
return void

AssertValid() public method

public AssertValid ( ) : void
return void

Clear() public method

public Clear ( ) : void
return void

Contains() public method

public Contains ( IVertex vertex ) : System.Boolean
vertex IVertex
return System.Boolean

Contains() public method

public Contains ( Int32 id ) : System.Boolean
id System.Int32
return System.Boolean

Contains() public method

public Contains ( String name ) : System.Boolean
name String
return System.Boolean

CopyTo() public method

public CopyTo ( IVertex array, Int32 index ) : void
array IVertex
index System.Int32
return void

Find() protected method

protected Find ( System.Boolean bByID, Int32 iID, String sName, LinkedListNode &oLinkedListNode ) : System.Boolean
bByID System.Boolean
iID System.Int32
sName String
oLinkedListNode LinkedListNode
return System.Boolean

Find() public method

public Find ( Int32 id, IVertex &vertex ) : System.Boolean
id System.Int32
vertex IVertex
return System.Boolean

Find() public method

public Find ( String name, IVertex &vertex ) : System.Boolean
name String
vertex IVertex
return System.Boolean

GetEnumerator() public method

public GetEnumerator ( ) : IEnumerator
return IEnumerator

GetReverseEnumerable() public method

public GetReverseEnumerable ( ) : IEnumerable
return IEnumerable

Remove() public method

public Remove ( IVertex vertex ) : System.Boolean
vertex IVertex
return System.Boolean

Remove() public method

public Remove ( Int32 id ) : System.Boolean
id System.Int32
return System.Boolean

Remove() public method

public Remove ( String name ) : System.Boolean
name String
return System.Boolean

Remove() protected method

protected Remove ( LinkedListNode oLinkedListNode ) : void
oLinkedListNode LinkedListNode
return void

ToString() public method

public ToString ( ) : String
return String

VertexCollection() public method

Initializes a new instance of the VertexCollection class.
public VertexCollection ( IGraph parentGraph ) : System
parentGraph IGraph /// The that owns this collection. ///
return System

Property Details

m_oLinkedList protected_oe property

protected LinkedList m_oLinkedList
return LinkedList

m_oParentGraph protected_oe property

protected IGraph m_oParentGraph
return IGraph