getter.getter

Undocumented in source.
  1. enum getter;
  2. 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 ~ ";\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";

Meta