Node

Base tree node class

Constructors

this
this(string name, bool isRoot)
Undocumented in source.
this
this(string name, Node parent)
Undocumented in source.

Members

Functions

getAtIndex
Node getAtIndex(size_t index)

Retrieve child node by the index

getNode
Node getNode(string relativePath)

Find node relative to this node by the path

insert
void insert(Node object)

Insert node to the children

optNode
Node optNode(string path, Node defaultVal)
Undocumented in source. Be warned that the author may not have intended to support it.
updatePath
void updatePath()

Update path relative to root

Mixins

__anonymous
mixin Accessors
Undocumented in source.

Properties

children
Array!Node children [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
length
size_t length [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
name
string name [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
name
string name [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
parent
Node parent [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
path
string path [@property getter]

Path of node relative to the root

Variables

inherit
Node inherit;
Undocumented in source.
isRoot
bool isRoot;

If true then node is the root

p_children
Array!Node p_children;
Undocumented in source.
p_name
string p_name;
Undocumented in source.
p_parent
Node p_parent;
Undocumented in source.
p_path
string p_path;
Undocumented in source.

Mixed In Members

From mixin Accessors

getObjectNode
alias getObjectNode = getTypedNode!(ObjectNode)
Undocumented in source.
getParameterNode
alias getParameterNode = getTypedNode!(Parameter)
Undocumented in source.
getValueNode
alias getValueNode = getTypedNode!(Value)
Undocumented in source.
getNumberValueNode
alias getNumberValueNode = getTypedNode!(NumberValue)
Undocumented in source.
getStringValueNode
alias getStringValueNode = getTypedNode!(StringValue)
Undocumented in source.
getIdentifierValueNode
alias getIdentifierValueNode = getTypedNode!(IdentifierValue)
Undocumented in source.
getBooleanValueNode
alias getBooleanValueNode = getTypedNode!(BooleanValue)
Undocumented in source.
getArrayValueNode
alias getArrayValueNode = getTypedNode!(ArrayValue)
Undocumented in source.
optObjectNode
alias optObjectNode = optTypedNode!(ObjectNode)
Undocumented in source.
optParameterNode
alias optParameterNode = optTypedNode!(Parameter)
Undocumented in source.
optValueNode
alias optValueNode = optTypedNode!(Value)
Undocumented in source.
optNumberValueNode
alias optNumberValueNode = optTypedNode!(NumberValue)
Undocumented in source.
optStringValueNode
alias optStringValueNode = optTypedNode!(StringValue)
Undocumented in source.
optIdentifierValueNode
alias optIdentifierValueNode = optTypedNode!(IdentifierValue)
Undocumented in source.
optBooleanValueNode
alias optBooleanValueNode = optTypedNode!(BooleanValue)
Undocumented in source.
optArrayValueNode
alias optArrayValueNode = optTypedNode!(ArrayValue)
Undocumented in source.
getNumber
alias getNumber = getTypedValue!(float, NumberValue)
Undocumented in source.
getBoolean
alias getBoolean = getTypedValue!(bool, BooleanValue)
Undocumented in source.
getString
alias getString = getTypedValue!(string, StringValue)
Undocumented in source.
getIdentifier
alias getIdentifier = getTypedValue!(string, IdentifierValue)
Undocumented in source.
optNumber
alias optNumber = optTypedValue!(float, NumberValue)
Undocumented in source.
optBoolean
alias optBoolean = optTypedValue!(bool, BooleanValue)
Undocumented in source.
optString
alias optString = optTypedValue!(string, StringValue)
Undocumented in source.
optIdentifier
alias optIdentifier = optTypedValue!(string, IdentifierValue)
Undocumented in source.
getUTF32String
dstring getUTF32String(string path)
Undocumented in source. Be warned that the author may not have intended to support it.
getInteger
int getInteger(string path)
Undocumented in source. Be warned that the author may not have intended to support it.
optUTF32String
dstring optUTF32String(string path, dstring defaultVal)
Undocumented in source. Be warned that the author may not have intended to support it.
optInteger
int optInteger(string path, int defaultVal)
Undocumented in source. Be warned that the author may not have intended to support it.
getVec2f
alias getVec2f = getVecValue!(float, 2)
Undocumented in source.
getVec3f
alias getVec3f = getVecValue!(float, 3)
Undocumented in source.
getVec4f
alias getVec4f = getVecValue!(float, 4)
Undocumented in source.
getVec2i
alias getVec2i = getVecValue!(int, 2)
Undocumented in source.
getVec3i
alias getVec3i = getVecValue!(int, 3)
Undocumented in source.
getVec4i
alias getVec4i = getVecValue!(int, 4)
Undocumented in source.
getVec2ui
alias getVec2ui = getVecValue!(uint, 2)
Undocumented in source.
getVec3ui
alias getVec3ui = getVecValue!(uint, 3)
Undocumented in source.
getVec4ui
alias getVec4ui = getVecValue!(uint, 4)
Undocumented in source.
optVec2f
alias optVec2f = optVecValue!(float, 2)
Undocumented in source.
optVec3f
alias optVec3f = optVecValue!(float, 3)
Undocumented in source.
optVec4f
alias optVec4f = optVecValue!(float, 4)
Undocumented in source.
optVec2i
alias optVec2i = optVecValue!(int, 2)
Undocumented in source.
optVec3i
alias optVec3i = optVecValue!(int, 3)
Undocumented in source.
optVec4i
alias optVec4i = optVecValue!(int, 4)
Undocumented in source.
optVec2ui
alias optVec2ui = optVecValue!(uint, 2)
Undocumented in source.
optVec3ui
alias optVec3ui = optVecValue!(uint, 3)
Undocumented in source.
optVec4ui
alias optVec4ui = optVecValue!(uint, 4)
Undocumented in source.
getNormColor
vec4 getNormColor(string path)

Retrieve normilized color to 1 i.e. r/255, g/255, b/255, a/100.

getEnum
T getEnum(string path)

Retrieve enum with type T value from found node by path

optEnum
T optEnum(string path, T defaultVal)

Retrieve optional enum with type T value from found node by path if node was not found then it will return defaultVal

Meta