Last change
on this file since 50 was
5,
checked in by sz, 16 years ago
|
added the GDK (Genotype Development Kit)
|
File size:
775 bytes
|
Rev | Line | |
---|
[5] | 1 | // This file is a part of Framsticks GDK library. |
---|
| 2 | // Copyright (C) 2002-2006 Szymon Ulatowski. See LICENSE.txt for details. |
---|
| 3 | // Refer to http://www.frams.alife.pl/ for further information. |
---|
| 4 | |
---|
| 5 | #ifndef _NEUROFACTORY_H_ |
---|
| 6 | #define _NEUROFACTORY_H_ |
---|
| 7 | |
---|
| 8 | #include "modelparts.h" |
---|
| 9 | |
---|
| 10 | class NeuroImpl; |
---|
| 11 | |
---|
| 12 | class NeuroFactory |
---|
| 13 | { |
---|
| 14 | public: |
---|
| 15 | static NeuroImpl* setImplementation(NeuroClass *nc,NeuroImpl *ni,bool deleteold=1); |
---|
| 16 | static NeuroImpl* setImplementation(const SString& classname,NeuroImpl *ni,bool deleteold=1); |
---|
| 17 | static class NeuroImpl* createNeuroImpl(Neuro *n) |
---|
| 18 | {NeuroClass *nc=n->getClass(); if (!nc) return 0; return createNeuroImpl(nc);} |
---|
| 19 | static class NeuroImpl* createNeuroImpl(NeuroClass *nc); |
---|
| 20 | |
---|
| 21 | static int used; |
---|
| 22 | static void setImplementation(); |
---|
| 23 | static void freeImplementation(); |
---|
| 24 | }; |
---|
| 25 | |
---|
| 26 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.