MyCaffe
1.12.2.41
Deep learning software for Windows C# programmers.
|
The PropertyTree class implements a simple property tree similar to the ptree in Boost. More...
Public Member Functions | |
PropertyTree () | |
The constructor. More... | |
void | Put (string str, string strVal) |
Add a new property string value. More... | |
void | Put (string str, double dfVal) |
Add a new property numeric value. More... | |
void | AddChild (string str, PropertyTree pt) |
Add a new child to the Property tree. More... | |
Property | Get (string strName) |
Retrieves a property at the current level of the tree. More... | |
List< Property > | GetChildren (string strName) |
Retrieves all properties with the given key at the current level of the tree. More... | |
void | Clear () |
Clear all nodes and values from the tree. More... | |
string | ToJson () |
Converts the property tree to a Json representation. More... | |
Properties | |
List< PropertyTree > | Children [get] |
Returns a list of all child property trees within the tree. More... | |
The PropertyTree class implements a simple property tree similar to the ptree in Boost.
Definition at line 12 of file PropertyTree.cs.
MyCaffe.common.PropertyTree.PropertyTree | ( | ) |
The constructor.
Definition at line 20 of file PropertyTree.cs.
void MyCaffe.common.PropertyTree.AddChild | ( | string | str, |
PropertyTree | pt | ||
) |
Add a new child to the Property tree.
str | Specifies the key name of the child. |
pt | Specifies the property child tree. |
Definition at line 55 of file PropertyTree.cs.
void MyCaffe.common.PropertyTree.Clear | ( | ) |
Clear all nodes and values from the tree.
Definition at line 92 of file PropertyTree.cs.
Property MyCaffe.common.PropertyTree.Get | ( | string | strName | ) |
Retrieves a property at the current level of the tree.
strName | Specifies the name of the property. |
Definition at line 68 of file PropertyTree.cs.
List< Property > MyCaffe.common.PropertyTree.GetChildren | ( | string | strName | ) |
Retrieves all properties with the given key at the current level of the tree.
strName | Specifies the name of the children. |
Definition at line 81 of file PropertyTree.cs.
void MyCaffe.common.PropertyTree.Put | ( | string | str, |
double | dfVal | ||
) |
Add a new property numeric value.
str | Specifies the key. |
dfVal | Specifies the numeric value. |
Definition at line 42 of file PropertyTree.cs.
void MyCaffe.common.PropertyTree.Put | ( | string | str, |
string | strVal | ||
) |
Add a new property string value.
str | Specifies the key. |
strVal | Specifies the string value. |
Definition at line 29 of file PropertyTree.cs.
string MyCaffe.common.PropertyTree.ToJson | ( | ) |
Converts the property tree to a Json representation.
THIS METHOD IS NOT COMPLETE YET.
Definition at line 123 of file PropertyTree.cs.
|
get |
Returns a list of all child property trees within the tree.
Definition at line 101 of file PropertyTree.cs.