19 #include <boost/test/unit_test.hpp>
23 namespace architecture {
25 BOOST_AUTO_TEST_SUITE(architecture)
40 conn.
mSinks.push_back(&pin2);
41 conn.
mSinks.push_back(&pin3);
44 PrimitiveElementPinPtrVector::const_iterator p = sinks.begin();
45 BOOST_CHECK_EQUAL(*p++, &pin2);
46 BOOST_CHECK_EQUAL(*p++, &pin3);
47 BOOST_CHECK(p == sinks.end());
50 BOOST_AUTO_TEST_SUITE_END()
const PrimitiveElementPin * mSourcePtr
Pointer to the source primitive element pin.
const PrimitiveElementPinPtrVector & getSinks(void) const
Returns a vector of pointers to the sink primitive element pins.
BOOST_AUTO_TEST_CASE(ArcUnitTest)
Unit test for the Arc class.
const PrimitiveElementPin * getSourcePtr(void) const
Returns a pointer to the source primitive element pin.
PrimitiveElementPinPtrVector mSinks
Vector of pointers to the sink primitive element pins.
Encapsulation of a PrimitiveDef internal connection. This class is analogous to a permanent net with...
Header for the PrimitiveConn class.
Encapsulation of a primitive element pin's name, flags, and element pointer. Primitive element pins ...
std::vector< const PrimitiveElementPin * > PrimitiveElementPinPtrVector
Vector of constant PrimitiveElementPin pointers.