Ignore:
Timestamp:
01/27/15 23:13:10 (9 years ago)
Author:
Maciej Komosinski
Message:

Improved documentation (for Param flags in particular)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/param/param.h

    r286 r316  
    1818
    1919// ParamInterface flags:
    20 #define PARAM_READONLY  1
    21 #define PARAM_DONTSAVE  2
    22 #define PARAM_SETLEVEL(x) (((x)&3)<<2)
    23 #define PARAM_LEVEL(x) (((x)>>2)&3)
    24 #define PARAM_USERREADONLY 16
    25 #define PARAM_USERHIDDEN 32
    26 // for mutableparam (private!)
    27 #define MUTPARAM_ALLOCENTRY 64
    28 #define MUTPARAM_ALLOCDATA 128
    29 #define PARAM_NOSTATIC 256
    30 #define PARAM_CONST 512
    31 #define PARAM_CANOMITNAME 1024
    32 #define PARAM_DONTLOAD  2048
    33 #define PARAM_NOISOLATION       4096
    34 #define PARAM_DEPRECATED        8192
     20#define PARAM_READONLY       1  //< Param is not able to change this member
     21#define PARAM_DONTSAVE       2  //< Param will not save this member
     22#define PARAM_SETLEVEL(x) (((x)&3)<<2)  //< internal use
     23#define PARAM_LEVEL(x)    (((x)>>2)&3)  //< internal use
     24#define PARAM_USERREADONLY  16  //< GUI should not change this member (even if Param can)
     25#define PARAM_USERHIDDEN    32  //< GUI should not display this member
     26#define MUTPARAM_ALLOCENTRY 64  //< for mutableparam (private!)
     27#define MUTPARAM_ALLOCDATA 128  //< for mutableparam (private!)
     28#define PARAM_NOSTATIC  256     //< (FramScript) don't access this member in a static object (ClassName.field)
     29#define PARAM_CONST     512     //< (FramScript) constant value
     30#define PARAM_CANOMITNAME 1024  //< affects Param::save2()/load2() - for example one-liners in f0 genetic encoding
     31#define PARAM_DONTLOAD    2048  //< Param::load() skips this field
     32#define PARAM_NOISOLATION 4096  //< don't use proxy object in master/slave interactions
     33#define PARAM_DEPRECATED  8192  //< this member is deprecated
    3534
    3635typedef int32_t paInt;
Note: See TracChangeset for help on using the changeset viewer.