C# Class Castle.MicroKernel.SubSystems.Naming.BinaryTreeComponentName

Exibir arquivo Open project: nats/castle-1.0.3-mono Class Usage Examples

Public Methods

Method Description
Add ( ComponentName name, IHandler handler ) : void
BinaryTreeComponentName ( ) : System
Contains ( ComponentName name ) : bool
GetHandler ( ComponentName name ) : IHandler
GetHandlers ( ComponentName name ) : IHandler[]
Remove ( ComponentName name ) : void

Private Methods

Method Description
FindNode ( ComponentName name ) : TreeNode
FindSuccessor ( TreeNode node ) : TreeNode

Method finds the next biggest node It assumes Add puts lesser nodes on the right

PromoteNode ( TreeNode oldNode, TreeNode promoted ) : void
Remove ( TreeNode node ) : void
RemoveBinaryTreeNode ( TreeNode node ) : void
ReplaceNode ( TreeNode oldNode, TreeNode newNode ) : void
Visit ( TreeNode node, ArrayList list ) : void

Method Details

Add() public method

public Add ( ComponentName name, IHandler handler ) : void
name ComponentName
handler IHandler
return void

BinaryTreeComponentName() public method

public BinaryTreeComponentName ( ) : System
return System

Contains() public method

public Contains ( ComponentName name ) : bool
name ComponentName
return bool

GetHandler() public method

public GetHandler ( ComponentName name ) : IHandler
name ComponentName
return IHandler

GetHandlers() public method

public GetHandlers ( ComponentName name ) : IHandler[]
name ComponentName
return IHandler[]

Remove() public method

public Remove ( ComponentName name ) : void
name ComponentName
return void