KiCad PCB EDA Suite
|
Provide an abstract interface of a DRC_ITEM* list manager. More...
#include <drc.h>
Public Member Functions | |
virtual void | DeleteAllItems ()=0 |
Function DeleteAllItems removes and deletes all the items in the list. More... | |
virtual const DRC_ITEM * | GetItem (int aIndex)=0 |
Function GetItem retrieves a DRC_ITEM by pointer. More... | |
virtual void | DeleteItem (int aIndex)=0 |
Function DeleteAllItems removes and deletes desired item from the list. More... | |
virtual int | GetCount ()=0 |
Function GetCount returns the number of items in the list. More... | |
virtual | ~DRC_ITEM_LIST () |
Provide an abstract interface of a DRC_ITEM* list manager.
The details of the actual list architecture are hidden from the caller. Any class that implements this interface can then be used by a DRCLISTBOX class without it knowing the actual architecture of the list.
|
inlinevirtual |
|
pure virtual |
Function DeleteAllItems removes and deletes all the items in the list.
Implemented in DRC_LIST_UNCONNECTED, and DRC_LIST_MARKERS.
Referenced by DRCLISTBOX::DeleteAllItems().
|
pure virtual |
Function DeleteAllItems removes and deletes desired item from the list.
aIndex | The 0 based index into the list of the desired item which is to be deleted. |
Implemented in DRC_LIST_UNCONNECTED, and DRC_LIST_MARKERS.
Referenced by DRCLISTBOX::DeleteItem().
|
pure virtual |
Function GetCount returns the number of items in the list.
Implemented in DRC_LIST_UNCONNECTED, and DRC_LIST_MARKERS.
Referenced by DRCLISTBOX::DeleteItem(), and DRCLISTBOX::SetList().
|
pure virtual |
Function GetItem retrieves a DRC_ITEM by pointer.
The actual item remains owned by the list container.
aIndex | The 0 based index into the list of the desired item. |
Implemented in DRC_LIST_UNCONNECTED, and DRC_LIST_MARKERS.
Referenced by DRCLISTBOX::GetItem(), and DRCLISTBOX::OnGetItem().