Able
Askowl Base Library Enabler
Askowl.Trees Class Reference

Tree Container More...

Inheritance diagram for Askowl.Trees:

Classes

class  Node
 

Public Member Functions

Trees Root ()
 Set here to root More...
 
Trees To (string path)
 Walk the path, failing if a branch or leaf is unavailable More...
 
Trees Next (string path)
 See To More...
 
Trees Add (string path)
 Walk the path creating new segments as needed More...
 
void Dispose ()
 Dispose of the branch node here More...
 
IDisposable Anchor (string path="")
 Mark here so wec an return to it More...
 
override string ToString ()
 

Public Attributes

bool Found => !Failed
  //#TBD#// More...
 
bool IsRoot => here == root
 Set if here is root More...
 
string Name => here?.Name
 Name of node here More...
 
long Long => IsNumber ? integer : 0
 Long value of the leaf here More...
 
double Double => IsNumber ? floatingPoint : 0
 Double value of the leaf here More...
 
bool Boolean => Value.ToLower()[0] == 't'
 Boolean value of the leaf here More...
 
bool IsNull => (Value == null) || (Value.ToLower() == "null")
 The leaf here is a null reference More...
 
object [] Children => here.Branch.Keys
 List of strings being the names of keys for branches under here More...
 
object FirstChild => here.Branch.First
 First branch under here More...
 
object NextChild => here.Branch.Next
 Second branch under here More...
 

Static Public Attributes

static Trees Instance => Cache<Trees>.Instance
 Fetch a cached Trees instance More...
 

Properties

bool Failed [get]
 Set if last search did not succeed More...
 
object Leaf [get, set]
  More...
 
string Value [get, set]
 Leaf value here (null if last walk failed) More...
 
bool IsNumber [get]
  More...
 
object this[object key] [get, set]
 Get or set the leaf value of a named branch under here More...
 
string Key [get]
 The path to here as a string More...
 

Detailed Description

Tree Container

Definition at line 9 of file Trees.cs.

Member Function Documentation

◆ Add()

Trees Askowl.Trees.Add ( string  path)

◆ Anchor()

IDisposable Askowl.Trees.Anchor ( string  path = "")

Mark here so wec an return to it

Definition at line 206 of file Trees.cs.

◆ Dispose()

void Askowl.Trees.Dispose ( )

Dispose of the branch node here

Definition at line 197 of file Trees.cs.

◆ Next()

Trees Askowl.Trees.Next ( string  path)

◆ Root()

Trees Askowl.Trees.Root ( )

Set here to root

Definition at line 121 of file Trees.cs.

◆ To()

◆ ToString()

override string Askowl.Trees.ToString ( )

Member Data Documentation

◆ Boolean

bool Askowl.Trees.Boolean => Value.ToLower()[0] == 't'

Boolean value of the leaf here

Definition at line 176 of file Trees.cs.

◆ Children

object [] Askowl.Trees.Children => here.Branch.Keys

◆ Double

double Askowl.Trees.Double => IsNumber ? floatingPoint : 0

Double value of the leaf here

Definition at line 173 of file Trees.cs.

◆ FirstChild

object Askowl.Trees.FirstChild => here.Branch.First

First branch under here

Definition at line 191 of file Trees.cs.

◆ Found

bool Askowl.Trees.Found => !Failed

//#TBD#//

Definition at line 115 of file Trees.cs.

◆ Instance

Trees Askowl.Trees.Instance => Cache<Trees>.Instance
static

Fetch a cached Trees instance

Definition at line 109 of file Trees.cs.

◆ IsNull

bool Askowl.Trees.IsNull => (Value == null) || (Value.ToLower() == "null")

The leaf here is a null reference

Definition at line 179 of file Trees.cs.

◆ IsRoot

bool Askowl.Trees.IsRoot => here == root

Set if here is root

Definition at line 118 of file Trees.cs.

◆ Long

long Askowl.Trees.Long => IsNumber ? integer : 0

Long value of the leaf here

Definition at line 170 of file Trees.cs.

◆ Name

string Askowl.Trees.Name => here?.Name

Name of node here

Definition at line 138 of file Trees.cs.

◆ NextChild

object Askowl.Trees.NextChild => here.Branch.Next

Second branch under here

Definition at line 194 of file Trees.cs.

Property Documentation

◆ Failed

bool Askowl.Trees.Failed
get

Set if last search did not succeed

Definition at line 112 of file Trees.cs.

◆ IsNumber

bool Askowl.Trees.IsNumber
get

Definition at line 152 of file Trees.cs.

◆ Key

string Askowl.Trees.Key
get

The path to here as a string

Definition at line 216 of file Trees.cs.

◆ Leaf

object Askowl.Trees.Leaf
getset

Definition at line 141 of file Trees.cs.

◆ this[object key]

object Askowl.Trees.this[object key]
getset

◆ Value

string Askowl.Trees.Value
getset

The documentation for this class was generated from the following file: