Last change
on this file since 151 was
138,
checked in by sz, 11 years ago
|
genetic operator example - frams/_demos/genooper_test.cpp
|
-
Property svn:eol-style set to
native
|
File size:
1.0 KB
|
Line | |
---|
1 | // This file is a part of the Framsticks GDK. |
---|
2 | // Copyright (C) 2002-2014 Maciej Komosinski and Szymon Ulatowski. See LICENSE.txt for details. |
---|
3 | // Refer to http://www.framsticks.com/ for further information. |
---|
4 | |
---|
5 | #ifndef _GENOOBJ_H_ |
---|
6 | #define _GENOOBJ_H_ |
---|
7 | |
---|
8 | #include <frams/genetics/geno.h> |
---|
9 | |
---|
10 | extern ParamEntry geno_paramtab[]; |
---|
11 | |
---|
12 | class GenoObj: public Geno |
---|
13 | { |
---|
14 | public: |
---|
15 | #define STATRICKCLASS GenoObj |
---|
16 | PARAMGETDEF(isvalid); |
---|
17 | PARAMGETDEF(genotype); |
---|
18 | PARAMGETDEF(name); |
---|
19 | PARAMSETDEF(name); |
---|
20 | PARAMGETDEF(autoname); |
---|
21 | PARAMGETDEF(info); |
---|
22 | PARAMSETDEF(info); |
---|
23 | PARAMGETDEF(format); |
---|
24 | PARAMGETDEF(string); |
---|
25 | PARAMPROCDEF(p_getconvert); |
---|
26 | PARAMGETDEF(f0genotype); |
---|
27 | PARAMPROCDEF(p_new); |
---|
28 | PARAMPROCDEF(p_newfrom); |
---|
29 | PARAMPROCDEF(p_newfromstring); |
---|
30 | #undef STATRICKCLASS |
---|
31 | |
---|
32 | static ExtObject makeStaticObject(Geno* g); |
---|
33 | static ExtObject makeDynamicObject(Geno* g); |
---|
34 | static ExtObject makeDynamicObjectAndDecRef(Geno* g); |
---|
35 | static Geno* fromObject(const ExtValue& v); |
---|
36 | static ParamInterface* getInterface(); |
---|
37 | |
---|
38 | static Param& getStaticParam(); |
---|
39 | static Param& getDynamicParam(); |
---|
40 | }; |
---|
41 | |
---|
42 | #endif |
---|
43 | |
---|
44 | |
---|
45 | |
---|
Note: See
TracBrowser
for help on using the repository browser.