src/ldobjectiterator.h

changeset 1186
eae8b3bce545
parent 1147
a26568aa3cce
equal deleted inserted replaced
1185:c2e0db52ea07 1186:eae8b3bce545
29 m_i (-1) 29 m_i (-1)
30 { 30 {
31 seekTillValid(); 31 seekTillValid();
32 } 32 }
33 33
34 LDObjectIterator (const QVector<LDObject*>& objs) : 34 LDObjectIterator (const ResourceVector<LDObject>& objs) :
35 m_list (objs), 35 m_list (objs),
36 m_i (-1) 36 m_i (-1)
37 { 37 {
38 seekTillValid(); 38 seekTillValid();
39 } 39 }
109 { 109 {
110 return get(); 110 return get();
111 } 111 }
112 112
113 private: 113 private:
114 const QVector<LDObject*>& m_list; 114 const ResourceVector<LDObject>& m_list;
115 int m_i; 115 int m_i;
116 }; 116 };
117 117
118 template<typename T, typename R> 118 template<typename T, typename R>
119 QVector<T*> filterByType (const R& stuff) 119 QVector<T*> filterByType (const R& stuff)

mercurial