From a31d487dd9474567bc12a0af7c9031350f1e192a Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Sat, 11 Jan 2014 21:32:17 +0000 Subject: input array logic --- NT/src/rotor.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'NT/src/rotor.h') diff --git a/NT/src/rotor.h b/NT/src/rotor.h index e64095c..0b728ac 100644 --- a/NT/src/rotor.h +++ b/NT/src/rotor.h @@ -81,9 +81,14 @@ namespace Rotor { } T value; }; - template class Variable_array: public Variable_type { + class Variable_array: public Variable { public: Variable_array(){}; + std::vector values; + }; + template class Variable_array_type: public Variable_array { + public: + Variable_array_type(){}; void add(int num=1){ for (int i=0;i(false); return (dynamic_cast*>(vars[name])); } - template Variable_array* create_array(std::string name){ - vars[name]=new Variable_array(); - return (dynamic_cast*>(vars[name])); + template Variable_array_type* create_array(std::string name){ + vars[name]=new Variable_array_type(); + return (dynamic_cast*>(vars[name])); } }; -- cgit v1.2.3