diff options
| author | Tim Redfern <tim@eclectronics.org> | 2014-01-19 22:56:26 +0000 |
|---|---|---|
| committer | Tim Redfern <tim@eclectronics.org> | 2014-01-19 22:56:26 +0000 |
| commit | 3606861884c15b8f6bfe37b804f6195ddf13d1a1 (patch) | |
| tree | 045f70132e8782fac4c5448e661d7f9ae6a4043c /NT/src/rotor.h | |
| parent | ce528aa299501ecab63018f91b937766ffbc95be (diff) | |
json initialisers all done
Diffstat (limited to 'NT/src/rotor.h')
| -rw-r--r-- | NT/src/rotor.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/NT/src/rotor.h b/NT/src/rotor.h index 9228388..ef90eb6 100644 --- a/NT/src/rotor.h +++ b/NT/src/rotor.h @@ -143,8 +143,8 @@ namespace Rotor { } return false; } - void add(int num=1){ - for (int i=0;i<num;i++) values.push_back(T()); + void add(std::string _name="",bool _connectable=true,int num=1){ + for (int i=0;i<num;i++) values.push_back(Variable_type<T>(_name,_connectable)); } bool connect(int which,Node* target){ if (values.size()>which){ |
