Changeset 240 for cpp/frams/vm/classes
- Timestamp:
- 04/30/14 20:25:32 (11 years ago)
- Location:
- cpp/frams/vm/classes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/vm/classes/3dobject.cpp
r229 r240 26 26 {"sub",0,PARAM_NOSTATIC,"subtract","p(oXYZ)",PROCEDURE(p_subvec),"Note: it does not return a new object, just modifies the existing one"}, 27 27 {"scale",0,PARAM_NOSTATIC,"multiply by scalar","p(f)",PROCEDURE(p_scale),}, 28 {"length",0,PARAM_READONLY +PARAM_NOSTATIC,"length","f",GETONLY(length),},28 {"length",0,PARAM_READONLY | PARAM_NOSTATIC,"length","f",GETONLY(length),}, 29 29 {"normalize",0,PARAM_NOSTATIC,"normalize","p()",PROCEDURE(p_normalize),"scales the vector length to 1.0"}, 30 {"toString",0,PARAM_READONLY +PARAM_NOSTATIC,"textual form","s",GETONLY(toString),},31 {"toVector",0,PARAM_READONLY +PARAM_NOSTATIC,"vector of [x,y,z]","oVector",GETONLY(toVector),},30 {"toString",0,PARAM_READONLY | PARAM_NOSTATIC,"textual form","s",GETONLY(toString),}, 31 {"toVector",0,PARAM_READONLY | PARAM_NOSTATIC,"vector of [x,y,z]","oVector",GETONLY(toVector),}, 32 32 {"rotate",0,PARAM_NOSTATIC,"rotate using Orient object","p(oOrient)",PROCEDURE(p_rotate),}, 33 33 {"revRotate",0,PARAM_NOSTATIC,"reverse rotate using Orient object","p(oOrient)",PROCEDURE(p_revrotate),}, … … 229 229 {"zz",1,PARAM_NOSTATIC,"orientation.z.z","f",FIELD(o.z.z),}, 230 230 231 {"x",0,PARAM_NOSTATIC +PARAM_READONLY,"x vector","oXYZ",GETONLY(x),},232 {"y",0,PARAM_NOSTATIC +PARAM_READONLY,"y vector","oXYZ",GETONLY(y),},233 {"z",0,PARAM_NOSTATIC +PARAM_READONLY,"z vector","oXYZ",GETONLY(z),},231 {"x",0,PARAM_NOSTATIC | PARAM_READONLY,"x vector","oXYZ",GETONLY(x),}, 232 {"y",0,PARAM_NOSTATIC | PARAM_READONLY,"y vector","oXYZ",GETONLY(y),}, 233 {"z",0,PARAM_NOSTATIC | PARAM_READONLY,"z vector","oXYZ",GETONLY(z),}, 234 234 235 235 {"new",0,0,"create new Orient object","p oOrient()",PROCEDURE(p_new),}, 236 236 {"newFromVector",0,0,"create new Orient object","p oOrient(oVector)",PROCEDURE(p_newFromVector),}, 237 {"toVector",0,PARAM_READONLY +PARAM_NOSTATIC,"vector representation","oVector",GETONLY(toVector),"for serialization"},237 {"toVector",0,PARAM_READONLY | PARAM_NOSTATIC,"vector representation","oVector",GETONLY(toVector),"for serialization"}, 238 238 {"clone",0,PARAM_NOSTATIC,"create new Orient object","p oOrient()",PROCEDURE(p_clone),}, 239 239 {"set",0,PARAM_NOSTATIC,"copy from another Orient object","p(oOrient)",PROCEDURE(p_set),}, … … 470 470 {"newO",0,0,"create new reference","p",PROCEDURE(p_newO),"(for internal use only) use &variablename to create Ref objects.",}, 471 471 {"copyFrom",0,0,"copy the reference","p(oRef)",PROCEDURE(p_copyFrom),"make the reference point to the same target,"}, 472 {"toString",0,PARAM_READONLY +PARAM_NOSTATIC,"textual form","s",GETONLY(toString),},472 {"toString",0,PARAM_READONLY | PARAM_NOSTATIC,"textual form","s",GETONLY(toString),}, 473 473 {0,0,0,}, 474 474 }; -
cpp/frams/vm/classes/collectionobj.cpp
r197 r240 19 19 "Example:\nvar v=Vector.new();\nv.add(123); v.add(\"string\");",}, 20 20 {"clear",0,PARAM_NOSTATIC,"clear data","p()",PROCEDURE(p_clear),}, 21 {"size",0,PARAM_READONLY +PARAM_NOSTATIC,"element count","d",GETONLY(size),},21 {"size",0,PARAM_READONLY | PARAM_NOSTATIC,"element count","d",GETONLY(size),}, 22 22 {"remove",0,PARAM_NOSTATIC,"remove at position","p(d position)",PROCEDURE(p_remove),}, 23 23 {"get",0,PARAM_NOSTATIC,"get value at position","p x(d position)",PROCEDURE(p_get),}, … … 25 25 {"add",0,PARAM_NOSTATIC,"append at the end","p(x value)",PROCEDURE(p_add),}, 26 26 {"find",0,PARAM_NOSTATIC,"find","p d(x value)",PROCEDURE(p_find),"returns the element index or -1 if not found"}, 27 {"avg",0,PARAM_READONLY +PARAM_NOSTATIC,"average","f",GETONLY(avg)},28 {"stdev",0,PARAM_READONLY +PARAM_NOSTATIC,"standard deviation","f",GETONLY(stdev),"=sqrt(sum((element[i]-avg)^2)/(size-1)) which is estimated population std.dev. from sample std.dev."},29 {"toString",0,PARAM_READONLY +PARAM_NOSTATIC,"textual form","s",GETONLY(toString),},27 {"avg",0,PARAM_READONLY | PARAM_NOSTATIC,"average","f",GETONLY(avg)}, 28 {"stdev",0,PARAM_READONLY | PARAM_NOSTATIC,"standard deviation","f",GETONLY(stdev),"=sqrt(sum((element[i]-avg)^2)/(size-1)) which is estimated population std.dev. from sample std.dev."}, 29 {"toString",0,PARAM_READONLY | PARAM_NOSTATIC,"textual form","s",GETONLY(toString),}, 30 30 {"new",0,0,"create new Vector","p oVector()",STATICPROCEDURE(p_new),}, 31 31 {"sort",0,PARAM_NOSTATIC,"sort elements (in place)","p(o comparator)",PROCEDURE(p_sort),"comparator can be null, giving the \"natural\" sorting order (depending on element type), otherwise it must be a function reference obtained by the \"function FUNCTIONNAME\" operator.\n\nExample:\nfunction compareLastDigit(a,b) {return (a%10)<(b%10);}\nvar v=[16,23,35,42,54,61];\nv.sort(function compareLastDigit);"}, 32 {"iterator",0,PARAM_NOSTATIC +PARAM_READONLY,"iterator","o",GETONLY(iterator),},32 {"iterator",0,PARAM_NOSTATIC | PARAM_READONLY,"iterator","o",GETONLY(iterator),}, 33 33 {0,0,0,}, 34 34 }; … … 44 44 "var i;\nfor(i=0;i<d.size;i++) Simulator.print(d.getKey(i)+\" is \"+d.get(i));",}, 45 45 {"clear",0,PARAM_NOSTATIC,"clear data","p()",PROCEDURE(p_clear),}, 46 {"size",0,PARAM_NOSTATIC +PARAM_READONLY,"element count","d",GETONLY(size),},46 {"size",0,PARAM_NOSTATIC | PARAM_READONLY,"element count","d",GETONLY(size),}, 47 47 {"remove",0,PARAM_NOSTATIC,"remove named or indexed element","p(x key)",PROCEDURE(p_remove),}, 48 48 {"get",0,PARAM_NOSTATIC,"get named or indexed element","p x(x key)",PROCEDURE(p_get),}, … … 51 51 {"find",0,PARAM_NOSTATIC,"find","p s(x value)",PROCEDURE(p_find),"returns the element key or null if not found"}, 52 52 {"new",0,0,"create new Dictionary","p oDictionary()",STATICPROCEDURE(p_new),}, 53 {"toString",0,PARAM_READONLY +PARAM_NOSTATIC,"textual form","s",GETONLY(toString),},53 {"toString",0,PARAM_READONLY | PARAM_NOSTATIC,"textual form","s",GETONLY(toString),}, 54 54 {0,0,0,}, 55 55 }; … … 442 442 { 443 443 {"VectorIterator",1,2,"VectorIterator","VectorIterator"}, 444 {"next",0,PARAM_READONLY +PARAM_NOSTATIC,"next","d 0 1",GETONLY(next),},445 {"value",0,PARAM_READONLY +PARAM_NOSTATIC,"value","x",GETONLY(value),},444 {"next",0,PARAM_READONLY | PARAM_NOSTATIC,"next","d 0 1",GETONLY(next),}, 445 {"value",0,PARAM_READONLY | PARAM_NOSTATIC,"value","x",GETONLY(value),}, 446 446 {0,0,0,}, 447 447 }; -
cpp/frams/vm/classes/genoobj.cpp
r222 r240 13 13 {"Geno",1,14,"Geno","All information about a single genotype.\nThis is a genetics-only object which does not contain any performance data. See also: Genotype class"}, 14 14 {"name",0,PARAM_NOSTATIC,"Name","s 0 40",GETSET(name),}, 15 {"rawgenotype",0,PARAM_NOSTATIC +PARAM_READONLY,"Raw genotype","s 1",GETONLY(genotype),"Genotype, excluding the format specifier"},15 {"rawgenotype",0,PARAM_NOSTATIC | PARAM_READONLY,"Raw genotype","s 1",GETONLY(genotype),"Genotype, excluding the format specifier"}, 16 16 {"info",0,PARAM_NOSTATIC,"Info","s 1",GETSET(info),"Additional information or comments",}, 17 {"format",0,PARAM_NOSTATIC +PARAM_READONLY,"Format","d",GETONLY(format),"Genotype format",},18 {"genotype",0,PARAM_NOSTATIC +PARAM_READONLY,"Genotype","s 1",GETONLY(string),},19 {"isValid",0,PARAM_NOSTATIC +PARAM_READONLY,"Valid","d 0 1",GETONLY(isvalid),},17 {"format",0,PARAM_NOSTATIC | PARAM_READONLY,"Format","d",GETONLY(format),"Genotype format",}, 18 {"genotype",0,PARAM_NOSTATIC | PARAM_READONLY,"Genotype","s 1",GETONLY(string),}, 19 {"isValid",0,PARAM_NOSTATIC | PARAM_READONLY,"Valid","d 0 1",GETONLY(isvalid),}, 20 20 {"getConverted",0,PARAM_NOSTATIC,"get converted genotype","p oGeno(d format)",PROCEDURE(p_getconvert),}, 21 {"f0genotype",0,PARAM_NOSTATIC +PARAM_READONLY,"f0 genotype","s 1",GETONLY(f0genotype),"converted to f0 genotype",},21 {"f0genotype",0,PARAM_NOSTATIC | PARAM_READONLY,"f0 genotype","s 1",GETONLY(f0genotype),"converted to f0 genotype",}, 22 22 {"new",0,0,"create new empty object","p oGeno()",PROCEDURE(p_new),}, 23 23 {"newFromString",0,0,"create new object from supplied string argument","p oGeno(s genotype)",PROCEDURE(p_newfromstring),}, 24 24 {"newFrom",0,0,"create new object","p oGeno(s genotype,d format,s name,s description)",PROCEDURE(p_newfrom),}, 25 {"autoname",0,PARAM_NOSTATIC +PARAM_READONLY,"Autogenerated name","s",GETONLY(autoname),},26 {"toVector",0,PARAM_READONLY +PARAM_NOSTATIC,"serialization support","oVector",GETONLY(toVector),},25 {"autoname",0,PARAM_NOSTATIC | PARAM_READONLY,"Autogenerated name","s",GETONLY(autoname),}, 26 {"toVector",0,PARAM_READONLY | PARAM_NOSTATIC,"serialization support","oVector",GETONLY(toVector),}, 27 27 {"newFromVector",0,0,"serialization support","p oGeno(oVector)",PROCEDURE(p_newfromvector),}, 28 28 {0,0,0,},
Note: See TracChangeset
for help on using the changeset viewer.