78 m_screen->Append( bus1 );
79 m_screen->Append( bus2 );
81 std::vector<SCH_BUS_BUS_ENTRY*> entries;
83 for(
int ii = 0; ii < 50; ++ii )
87 m_screen->Append( entry );
88 entries.push_back( entry );
91 SCH_SHEET_LIST sheets = m_schematic->BuildSheetListSortedByPageNumbers();
92 m_schematic->ConnectionGraph()->Recalculate( sheets,
true );
98 BOOST_CHECK( entry->m_connected_bus_items[0] == bus1 );
99 BOOST_CHECK( entry->m_connected_bus_items[1] == bus2 );
110 BOOST_CHECK( std::find( bus1_items.begin(), bus1_items.end(), entry ) != bus1_items.end() );
111 BOOST_CHECK( std::find( bus2_items.begin(), bus2_items.end(), entry ) != bus2_items.end() );
Class for a bus to bus entry.
void SetSize(const VECTOR2I &aSize)
const SCH_ITEM_VEC & ConnectedItems(const SCH_SHEET_PATH &aPath)
Retrieve the set of items connected to this item on the given sheet.
Segment description base class to describe items which have 2 end points (track, wire,...
void SetEndPoint(const VECTOR2I &aPosition)
A container for handling SCH_SHEET_PATH objects in a flattened hierarchy.
Handle access to a stack of flattened SCH_SHEET objects by way of a path for creating a flattened sch...
Sheet symbol placed in a schematic, and is the entry point for a sub schematic.
void SetScreen(SCH_SCREEN *aScreen)
Set the SCH_SCREEN associated with this sheet to aScreen.
bool LoadProject(const wxString &aFullPath, bool aSetActive=true)
Load a project or sets up a new project with a specified path.
PROJECT & Prj() const
A helper while we are not MDI-capable – return the one and only project.
std::vector< SCH_ITEM * > SCH_ITEM_VEC
std::unique_ptr< SCHEMATIC > m_schematic
BUS_ENTRY_CONCURRENCY_FIXTURE()
static SCH_BUS_BUS_ENTRY * make_entry(const VECTOR2I &aPos, int aDy)
BOOST_FIXTURE_TEST_CASE(BusEntryConcurrency, BUS_ENTRY_CONCURRENCY_FIXTURE)
static SCH_LINE * make_bus(const VECTOR2I &aStart, const VECTOR2I &aEnd)
BOOST_CHECK_EQUAL(ret, c.m_exp_result)
thread_pool & GetKiCadThreadPool()
Get a reference to the current thread pool.
BS::thread_pool thread_pool
VECTOR2< int32_t > VECTOR2I