Definition at line 36 of file Om1UnitTest.cpp.
void torc::generic::VisitNet::operator() |
( |
NetSharedPtr & |
inNetPtr | ) |
const |
|
inline |
Definition at line 39 of file Om1UnitTest.cpp.
45 std::vector<PortSharedPtr> ports;
46 inNetPtr->getConnectedPorts(ports);
47 std::vector<PortSharedPtr>::const_iterator pp = ports.begin();
48 std::vector<PortSharedPtr>::const_iterator pe = ports.end();
50 const PortSharedPtr& portPtr = *pp++;
61 std::vector<PortReferenceSharedPtr> portReferences;
62 inNetPtr->getConnectedPortRefs(portReferences);
64 std::vector<PortReferenceSharedPtr>::const_iterator rp = portReferences.begin();
65 std::vector<PortReferenceSharedPtr>::const_iterator re = portReferences.end();
67 const PortReferenceSharedPtr& portRefPtr = *rp++;
68 const PortSharedPtr& portPtr = portRefPtr->getMaster();
77 BOOST_REQUIRE_EQUAL(sources, 1);
78 std::cerr <<
"Net " << inNetPtr->getName() <<
": "
79 << ports.size() <<
" ports, "
80 << portReferences.size() <<
" portRefs, "
81 << sources <<
" sources, "
boost::shared_ptr< PortReference > PortReferenceSharedPtr
boost::shared_ptr< Port > PortSharedPtr
The documentation for this class was generated from the following file: