00001 #include "block.h" 00002 00003 namespace DiscreteTimeSystems { 00004 00005 Block::Block() : _in_ports(), _out_ports() 00006 { 00007 } 00008 00009 InputPort * Block::getInputPort(int n) 00010 { 00011 if (n >= _in_ports.size()) return NULL; 00012 else return _in_ports[n]; 00013 } 00014 00015 OutputPort * Block::getOutputPort(int n) 00016 { 00017 if (n >= _out_ports.size()) return NULL; 00018 else return _out_ports[n]; 00019 } 00020 00021 }
1.5.1