39 inline virtual void removeRange(size_type,size_type);
40 inline virtual T* removeSingle(
int idx,
bool kporder=
true );
42 inline virtual T* removeAndTake(
int idx,
bool kporder=
true );
44 inline virtual T* replace(
int idx, T*);
53 template <
class T>
inline 58 template <
class T>
inline 63 template <
class T>
inline 72 template <
class T>
inline 76 { this->
vec_.
erase( (
void*)ptr );
delete ptr; }
81 template <
class T>
inline 91 template <
class T>
inline 94 const int sz = os.
size();
99 for (
int idx=0; idx<sz; idx++ )
104 template <
class T>
inline 113 template <
class T>
inline 121 template <
class T>
inline 124 for (
int idx=(
int)i1; idx<=i2; idx++ )
129 template <
class T>
inline virtual void removeRange(size_type, size_type)
Definition: manobjectset.h:122
virtual void removeRange(size_type from, size_type to)
Definition: objectset.h:477
virtual void erase()
Definition: manobjectset.h:37
virtual T * replace(size_type idx, T *)
Definition: objectset.h:390
virtual T * replace(int idx, T *)
Definition: manobjectset.h:114
void erase()
Definition: vectoraccess.h:78
virtual T * removeSingle(size_type, bool keep_order=true)
Definition: objectset.h:460
size_type size() const
Definition: objectset.h:50
bool append(TypeSetBase< T, I > &to, const TypeSetBase< S, J > &from)
append allowing a different type to be merged into set
Definition: typeset.h:198
Set of pointers to objects.
Definition: commontypes.h:32
ManagedObjectSet()
Definition: manobjectset.h:30
virtual bool isManaged() const
Definition: objectset.h:46
int size_type
Definition: manobjectset.h:27
virtual ManagedObjectSet< T > & operator-=(T *)
Definition: manobjectset.h:73
virtual void append(const ObjectSet< T > &)
Definition: manobjectset.h:92
virtual bool isManaged() const
Definition: manobjectset.h:35
void deepCopy(ObjectSet< T > &to, const ObjectSet< S > &from)
fill an ObjectSet with copies of the objects in the other set.
Definition: objectset.h:147
void removeRange(ODSET &inst, size_type start, size_type stop)
Removes a range from the set.
Definition: odset.h:57
bool setCapacity(I sz, bool withmargin)
Definition: vectoraccess.h:155
T object_type
Definition: manobjectset.h:28
virtual T * removeAndTake(int idx, bool kporder=true)
Definition: manobjectset.h:130
virtual ~ManagedObjectSet()
Definition: manobjectset.h:59
VectorAccess< void *, size_type > vec_
Definition: objectset.h:93
#define mClass(module)
Definition: commondefs.h:164
ObjectSet where the objects contained are owned by this set.
Definition: manobjectset.h:23
ManagedObjectSet< T > & operator=(const ObjectSet< T > &)
Definition: manobjectset.h:64
virtual T * removeSingle(int idx, bool kporder=true)
Definition: manobjectset.h:105
void deepErase(ObjectSet< T > &os)
empty the ObjectSet deleting all objects pointed to.
Definition: objectset.h:118