C# Class AddressMatch.AddrSet

显示文件 Open project: pwq1989/AddressMatch Class Usage Examples

Public Properties

Property Type Description
AddrGraph Graph
DiskFilePath string
DumpDirectory string

Public Methods

Method Description
AddrSet ( int a ) : System
Delete ( GraphNode node ) : bool

Delete a node from graph

Dump ( ) : bool

Dump to Disk, location is default directory.

FindGNodeListInHashTable ( string name ) : List

Find node with specific name in HashTable

FindNodeInHashTable ( string name ) : State

Find node with specific name in HashTable

ForwardSearchNode ( Predicate p, GraphNode sourceNode ) : List

Search matched node with single source node through specific delegate, from up to bottom.

ForwardSearchNode ( Predicate p, IList sourceNodeList ) : List

Search matched node (multi-source) through specific delegate, from up to bottom.

GetCurrentReadCount ( ) : int
GetInstance ( ) : AddrSet
GetRWlock ( ) : ReaderWriterLockSlim
GetWaitingReadCount ( ) : int
GetWaitingWriteCount ( ) : int
Insert ( GraphNode NewNode, GraphNode FatherNode ) : bool

Insert a node into graph

ReName ( GraphNode node, string name ) : bool

Rename a node in graph

RetrievalGraph ( Predicate p ) : List

Retrieval the graph from root, Depth-First Traversal

Private Methods

Method Description
AddrSet ( ) : System
AppendTableNodeList ( TableNode head, TableNode node ) : void
MultiMatchInNext ( Predicate p, GraphNode node, List &result ) : void
_ResumeFromDisk ( ) : bool
getFileNameToDump ( ) : string
init ( ) : void

Method Details

AddrSet() public method

public AddrSet ( int a ) : System
a int
return System

Delete() public method

Delete a node from graph
public Delete ( GraphNode node ) : bool
node GraphNode The node to be deleted
return bool

Dump() public method

Dump to Disk, location is default directory.
public Dump ( ) : bool
return bool

FindGNodeListInHashTable() public method

Find node with specific name in HashTable
public FindGNodeListInHashTable ( string name ) : List
name string name of node
return List

FindNodeInHashTable() public method

Find node with specific name in HashTable
public FindNodeInHashTable ( string name ) : State
name string name of node
return State

ForwardSearchNode() public method

Search matched node with single source node through specific delegate, from up to bottom.
public ForwardSearchNode ( Predicate p, GraphNode sourceNode ) : List
p Predicate find matched node in condition supported predicate delegate
sourceNode GraphNode
return List

ForwardSearchNode() public method

Search matched node (multi-source) through specific delegate, from up to bottom.
public ForwardSearchNode ( Predicate p, IList sourceNodeList ) : List
p Predicate find matched node in condition supported predicate delegate
sourceNodeList IList
return List

GetCurrentReadCount() public method

public GetCurrentReadCount ( ) : int
return int

GetInstance() public static method

public static GetInstance ( ) : AddrSet
return AddrSet

GetRWlock() public method

public GetRWlock ( ) : ReaderWriterLockSlim
return System.Threading.ReaderWriterLockSlim

GetWaitingReadCount() public method

public GetWaitingReadCount ( ) : int
return int

GetWaitingWriteCount() public method

public GetWaitingWriteCount ( ) : int
return int

Insert() public method

Insert a node into graph
public Insert ( GraphNode NewNode, GraphNode FatherNode ) : bool
NewNode GraphNode The node to be inserted
FatherNode GraphNode The node's father node
return bool

ReName() public method

Rename a node in graph
public ReName ( GraphNode node, string name ) : bool
node GraphNode The node to be renamed
name string new name
return bool

RetrievalGraph() public method

Retrieval the graph from root, Depth-First Traversal
public RetrievalGraph ( Predicate p ) : List
p Predicate find matched node in condition supported predicate delegate
return List

Property Details

AddrGraph public_oe static_oe property

public static Graph,AddressMatch AddrGraph
return Graph

DiskFilePath public_oe static_oe property

public static string DiskFilePath
return string

DumpDirectory public_oe static_oe property

public static string DumpDirectory
return string