C# Class DataNode

Inheritance: Node
Datei anzeigen Open project: imann24/cs327-bestmobilegameever Class Usage Examples

Public Properties

Property Type Description
Children List
Parent DataNode,
Value string

Public Methods

Method Description
AddChild ( DataNode, node ) : void
AddChild ( string value ) : void
DataNode ( ) : UnityEngine
DataNode ( DataNode, parent, string value ) : UnityEngine
DataNode ( string value ) : UnityEngine
Depth ( ) : int
Depth ( int currentDepth ) : int
GetFirstGrandChildValueByKey ( string key ) : string
GetGrandChildrenByKey ( string key ) : DataNode[],
GetGrandChildrenValuesByKey ( string key ) : string[]
LeafCount ( ) : int
NodeDepth ( int depth = 1 ) : int
Root ( ) : DataNode,
SearchForNodeByValue ( string value ) : DataNode,
ToString ( ) : string
initChildList ( ) : void
this ( int index ) : DataNode,
this ( string keyInChildren ) : string

Private Methods

Method Description
childValues ( DataNode, parentNode ) : string[]
maxDepthFromChildren ( int currentDepth ) : int
tryReturnFirstNonNullNode ( ) : DataNode,

Method Details

AddChild() public method

public AddChild ( DataNode, node ) : void
node DataNode,
return void

AddChild() public method

public AddChild ( string value ) : void
value string
return void

DataNode() public method

public DataNode ( ) : UnityEngine
return UnityEngine

DataNode() public method

public DataNode ( DataNode, parent, string value ) : UnityEngine
parent DataNode,
value string
return UnityEngine

DataNode() public method

public DataNode ( string value ) : UnityEngine
value string
return UnityEngine

Depth() public method

public Depth ( ) : int
return int

Depth() public method

public Depth ( int currentDepth ) : int
currentDepth int
return int

GetFirstGrandChildValueByKey() public method

public GetFirstGrandChildValueByKey ( string key ) : string
key string
return string

GetGrandChildrenByKey() public method

public GetGrandChildrenByKey ( string key ) : DataNode[],
key string
return DataNode[],

GetGrandChildrenValuesByKey() public method

public GetGrandChildrenValuesByKey ( string key ) : string[]
key string
return string[]

LeafCount() public method

public LeafCount ( ) : int
return int

NodeDepth() public method

public NodeDepth ( int depth = 1 ) : int
depth int
return int

Root() public method

public Root ( ) : DataNode,
return DataNode,

SearchForNodeByValue() public method

public SearchForNodeByValue ( string value ) : DataNode,
value string
return DataNode,

ToString() public method

public ToString ( ) : string
return string

initChildList() public method

public initChildList ( ) : void
return void

this() public method

public this ( int index ) : DataNode,
index int
return DataNode,

this() public method

public this ( string keyInChildren ) : string
keyInChildren string
return string

Property Details

Children public_oe property

public List Children
return List

Parent public_oe property

public DataNode, Parent
return DataNode,

Value public_oe property

public string Value
return string