Changeset 932 for cpp/frams/neuro/neuroimpl.h
- Timestamp:
- 05/28/20 18:00:45 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/neuro/neuroimpl.h
r721 r932 1 1 // This file is a part of Framsticks SDK. http://www.framsticks.com/ 2 // Copyright (C) 1999-20 18Maciej Komosinski and Szymon Ulatowski.2 // Copyright (C) 1999-2020 Maciej Komosinski and Szymon Ulatowski. 3 3 // See LICENSE.txt for details. 4 4 … … 82 82 , ChannelSpace *ch = 0 83 83 #endif 84 84 ); 85 85 ~NeuroNetImpl(); 86 86 void simulateNeuroNet(); … … 223 223 virtual int lateinit() { return 1; } 224 224 /** calculate 'newstate - implementation dependent */ 225 virtual void go() {}225 virtual void go() {} 226 226 /** for neurons doing some physical actions (called each simulation step when nnspeed!=1.0) */ 227 virtual void goPhysics() {}227 virtual void goPhysics() {} 228 228 229 229 int getSimOrder() { return simorder; } … … 287 287 PARAMGETDEF(cstate) { arg1->setDouble(neuro->state); } 288 288 PARAMSETDEF(cstate) { setCurrentState(arg1->getDouble()); return 0; } 289 PARAMGETDEF(hold) { arg1->setInt((neuro->flags &(Neuro::HoldState)) ? 1 : 0); }290 PARAMSETDEF(hold) { neuro->flags = (neuro->flags &~Neuro::HoldState) | (arg1->getInt() ? Neuro::HoldState : 0); return 0; }289 PARAMGETDEF(hold) { arg1->setInt((neuro->flags & (Neuro::HoldState)) ? 1 : 0); } 290 PARAMSETDEF(hold) { neuro->flags = (neuro->flags & ~Neuro::HoldState) | (arg1->getInt() ? Neuro::HoldState : 0); return 0; } 291 291 PARAMGETDEF(channels) { arg1->setInt(getChannelCount()); } 292 292 PARAMSETDEF(channels) { setChannelCount(arg1->getInt()); return 0; }
Note: See TracChangeset
for help on using the changeset viewer.