From a879f37ff944cd7bf502f4e3520b7da3d8faf39b Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Wed, 22 Jan 2014 14:28:34 +0000 Subject: variable arrays working correctly --- NT/src/rotor.h | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'NT/src/rotor.h') diff --git a/NT/src/rotor.h b/NT/src/rotor.h index 96a89ef..68473af 100644 --- a/NT/src/rotor.h +++ b/NT/src/rotor.h @@ -126,9 +126,10 @@ namespace Rotor { for (auto node:nodes){ if (node.first==input){ if (connect(node.second)) { - std::cerr<<"connecting '"<::Get()<<"' input to '"<::Get()<<"' input to '"<<(dynamic_cast*>(connection))->get_type()<<"' "<::Get()<<"'' input to '"<::Get()<<"'' input to '"<*>(connection))->get_type()<<"'"<*>(connection))->get_type()<<"' node ("<*>(connection))->get_output(frame)<*>(connection))->get_output(frame); } + //else std::cerr<<"variable: returning default"< &nodes){ - for (auto v:values){ - v.create_connection(nodes); - } + //for (auto v:values){ //weirdly does not work even though it seems to! maybe it returns a copy of of the object? + // v.create_connection(nodes); + //} + for (uint32_t i=0;iwhich){ + //std::cerr<<"array: requested value "<>& get_values(){return values;}; + uint32_t get_number(){return values.size();}; protected: std::vector> values; T value; -- cgit v1.2.3