UniNodeImpl

A UniNode implementation

Constructors

this
this(typeof(null) )

Constructs a UniNode

this
this(T value)

Constructs a UniNode

this
this(T value)

Constructs a UniNode with gc

this
this(T value)

Constructs a UniNode with gc and throw

this
this(T value)

Constructs a UniNode sequence from arguments

Members

Functions

can
bool can(Tag tag)

Check type node

get
inout(T) get()

Convert UniNode to primitive type

getMapping
inout(Node[string]) getMapping()

Convert UniNode to mapping

getOrElse
inout(T) getOrElse(T alt)

Convert UniNode to primitive type or return alternative value

getSequence
inout(Node[]) getSequence()

Convert UniNode to sequence

length
size_t length()

Returns the length sequence types

opApply
int opApply(D dg)

Iteration by Node mapping

opBinaryRight
inout(Node)* opBinaryRight(string key)

Implement operator in for mapping

opEquals
bool opEquals(const(Node) rhs)

Compares two UniNodes for equality.

opIndex
inout(Node) opIndex(size_t idx)

Implement index operator by Node array

opIndex
inout(Node) opIndex(string key)

Implement index operator by Node object

opIndexAssign
void opIndexAssign(T val, size_t idx)

Implement index assign operator by Node sequence

opIndexAssign
void opIndexAssign(T val, string key)

Implement index assign operator by Node mapping

opOpAssign
void opOpAssign(Node elem)

Implement operator ~= by UniNode array

opOpAssign
void opOpAssign(Node[] elem)

Implement operator ~= by UniNode array

opt
Nullable!(const(T)) opt()

Convert UniNode to optional primitive type

opt
Nullable!(T) opt()

Convert UniNode to optional primitive type

optMapping
Nullable!(const(Node[string])) optMapping()

Convert UniNode to optional mapping

optMapping
Nullable!(Node[string]) optMapping()

Convert UniNode to optional mapping

optSequence
Nullable!(const(Node[])) optSequence()

Convert UniNode to optional sequence

optSequence
Nullable!(Node[]) optSequence()

Convert UniNode to optional sequence

remove
void remove(string key)

Particular keys in an Node can be removed with the remove

require
Node require(string key, T val)

Inserting if not present

tag
const(Tag) tag()

Return tag Node

toHash
size_t toHash()

Returns the hash of the Node's current value.

toString
string toString()

Returns string representaion

Static functions

emptyMapping
Node emptyMapping()

Construct empty Node mapping

emptySequence
Node emptySequence()

Construct empty Node sequence

Meta