mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
SCH_REFERENCE_LIST: add some iterator support
This commit is contained in:
parent
ab1dccd6b3
commit
20fe14c91f
@ -598,6 +598,21 @@ public:
|
||||
|
||||
friend class BACK_ANNOTATION;
|
||||
|
||||
typedef std::vector<SCH_REFERENCE>::iterator iterator;
|
||||
typedef std::vector<SCH_REFERENCE>::const_iterator const_iterator;
|
||||
|
||||
iterator begin() { return m_flatList.begin(); }
|
||||
|
||||
iterator end() { return m_flatList.end(); }
|
||||
|
||||
const_iterator begin() const { return m_flatList.begin(); }
|
||||
|
||||
const_iterator end() const { return m_flatList.end(); }
|
||||
|
||||
iterator erase( iterator position ) { return m_flatList.erase( position ); }
|
||||
|
||||
iterator erase( iterator first, iterator last ) { return m_flatList.erase( first, last ); }
|
||||
|
||||
private:
|
||||
static bool sortByRefAndValue( const SCH_REFERENCE& item1, const SCH_REFERENCE& item2 );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user