HiBONT.Member

* Internal Member in the HiBON class

Constructors

this
this(T x, const(char[]) key)

Construct a Member @param x = the parameter value @param key = the name of the member

Destructor

~this
~this()
Undocumented in source.

Members

Aliases

CastTypes
alias CastTypes = AliasSeq!(uint, int, ulong, long, string)
Undocumented in source.

Functions

append
void append(BinBuffer buffer)
Undocumented in source. Be warned that the author may not have intended to support it.
appendList
void appendList(BinBuffer buffer)
Undocumented in source. Be warned that the author may not have intended to support it.
by
auto by()

@return the value as HiBON Type E @throw if the member does not match the type T and HiBONException is thrown

dispose
void dispose()
Undocumented in source. Be warned that the author may not have intended to support it.
document
const(HiBONT*) document()

If the value of the Member contains a Document it returns it or else an error is asserted @return the value as a Document

get
const(T) get()

@return the value as type T @throw if the member does not match the type T and HiBONException is thrown

opCmp
int opCmp(const(Member*) b)
Undocumented in source. Be warned that the author may not have intended to support it.
opCmp
int opCmp(const(char[]) key)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(T b)
Undocumented in source. Be warned that the author may not have intended to support it.
size
size_t size()

Calculates the size in bytes of the Member @return the size in bytes

Properties

key
string key [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
key_size
size_t key_size [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
type
Type type [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
value
Value value [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

create
Member* create(T x, const(char[]) key)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta