00001 00011 #include "ConnectionIterator.h" 00012 00016 ConnectionIterator::ConnectionIterator() 00017 { 00018 theThreadSpecificRandomEngine.init(); 00019 m_rnd_eng =theThreadSpecificRandomEngine.get(); 00020 00021 last_conn_idx.first = last_conn_idx.second = 0; 00022 last_conn_valid=false; 00023 } 00024 00025 00026 ConnectionIterator::~ConnectionIterator() 00027 { 00028 } 00029 00030 00031 bool ConnectionIterator::getIdx(size_t &src_idx, size_t &dst_idx ) 00032 { 00033 src_idx = last_conn_idx.first; 00034 dst_idx = last_conn_idx.second; 00035 00036 return last_conn_valid; 00037 }