getter.getter

Undocumented in source.
  1. enum getter;
    template getter(string writeAccess, varType, string name, varType initialValue = varType.init)
    static if(is(varType.init))
    enum getter = writeAccess ~ " " ~ fixAATypeName(varType.stringof) ~ " _" ~ name ~ (initialValue.stringof == varType.init.stringof ? "" : "=" ~ initialValue.stringof) ~ ";\n" ~ "@property " ~ writeAccess ~ " " ~ fixAATypeName(varType.stringof) ~ " " ~ name ~ "(" ~ fixAATypeName(varType.stringof) ~ " _NEW_VAL_) {_" ~ name ~ "=_NEW_VAL_;return _" ~ name ~ ";}\n" ~ "@property public " ~ fixAATypeName(varType.stringof) ~ " " ~ name ~ "() {return _" ~ name ~ ";}\n";
  2. enum getter;
  3. template getter(varType, string name, varType initialValue = varType.init)

Meta