source: cpp/frams/vm/classes/genoobj.h @ 138

Last change on this file since 138 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
10extern ParamEntry geno_paramtab[];
11
12class GenoObj: public Geno
13{
14  public:
15#define STATRICKCLASS GenoObj
16PARAMGETDEF(isvalid);
17PARAMGETDEF(genotype);
18PARAMGETDEF(name);
19PARAMSETDEF(name);
20PARAMGETDEF(autoname);
21PARAMGETDEF(info);
22PARAMSETDEF(info);
23PARAMGETDEF(format);
24PARAMGETDEF(string);
25PARAMPROCDEF(p_getconvert);
26PARAMGETDEF(f0genotype);
27PARAMPROCDEF(p_new);
28PARAMPROCDEF(p_newfrom);
29PARAMPROCDEF(p_newfromstring);
30#undef STATRICKCLASS
31
32static ExtObject makeStaticObject(Geno* g);
33static ExtObject makeDynamicObject(Geno* g);
34static ExtObject makeDynamicObjectAndDecRef(Geno* g);
35static Geno* fromObject(const ExtValue& v);
36static ParamInterface* getInterface();
37
38static Param& getStaticParam();
39static Param& getDynamicParam();
40};
41
42#endif
43
44
45
Note: See TracBrowser for help on using the repository browser.