1 #ifndef CORE_SharedPointersList_CPP 2 #define CORE_SharedPointersList_CPP 29 typename vector<boost::shared_ptr<T> >::iterator iVector=
mVector.begin();
30 typename vector<boost::shared_ptr<Q> >::const_iterator iCpy=cpy.
begin();
31 typename vector<boost::shared_ptr<Q> >::const_iterator eCpy=cpy.
end();
42 typename vector<boost::shared_ptr<T> >::const_iterator iVector=
mVector.begin();
43 while (iVector!=
mVector.end()) {
44 if ((*iVector).get()==&obj)
return true;
53 typename vector<boost::shared_ptr<T> >::iterator iVector=
mVector.begin();
55 if ((*iVector).get()==&obj) {
67 if (index>=
size())
return false;
68 typename vector<boost::shared_ptr<T> >::iterator p=
mVector.begin()+index;
77 typename vector<boost::shared_ptr<T> >::iterator pi=
mVector.begin()+i;
78 typename vector<boost::shared_ptr<T> >::iterator pj=
mVector.begin()+j;
87 typename vector<boost::shared_ptr<T> >::iterator p=
mVector.begin()+index;
88 if (index>
size())
return false;
106 typename vector<boost::shared_ptr<T> >::iterator ei=
mVector.end();
107 typename vector<boost::shared_ptr<T> >::iterator bi=
mVector.begin();
122 typename vector<boost::shared_ptr<T> >::iterator p=
mVector.begin()+oldSize;
123 typename vector<boost::shared_ptr<Q> >::const_iterator q=array.
begin();
124 typename vector<boost::shared_ptr<Q> >::const_iterator eq=array.
end();
137 typename vector<T*>::iterator ivs=vs.begin();
138 typename vector<boost::shared_ptr<T> >::iterator p=
mVector.begin();
151 typename vector<const T*>::iterator ivs=vs.begin();
152 typename vector<boost::shared_ptr<T> >::const_iterator p=
mVector.begin();
void copy(const CORE_SharedPointersList< Q > &cpy)
New copy constructor of a shared pointers list.
Definition: CORE_SharedPointersList.hpp:26
tUIndex getSize() const
return the size of the array
Definition: CORE_SharedPointersList.h:258
vector< boost::shared_ptr< T > > mVector
Definition: CORE_SharedPointersList.h:13
tBoolean set(const tUIndex &i, boost::shared_ptr< T > obj)
set the pointer at the index i
Definition: CORE_SharedPointersList.hpp:95
class CORE_SharedPointersList is a list of shared pointers
Definition: CORE_SharedPointersList.h:11
void clear()
clear the array
Definition: CORE_SharedPointersList.h:221
tBoolean removeAtIndex(const tUIndex &i)
remove the pointer at index i
Definition: CORE_SharedPointersList.hpp:66
vector< boost::shared_ptr< T > >::const_iterator end() const
get iterator
Definition: CORE_SharedPointersList.h:311
void add(boost::shared_ptr< T > obj)
add an element at the end
Definition: CORE_SharedPointersList.h:134
tBoolean insert(const tUIndex &i, boost::shared_ptr< T > obj)
insert the pointer at index i the old element i become the element i+1
Definition: CORE_SharedPointersList.hpp:84
#define tBoolean
Definition: types.h:139
void merge(const CORE_SharedPointersList< Q > &array)
merge the array in this
Definition: CORE_SharedPointersList.hpp:118
virtual ~CORE_SharedPointersList()
destroy an array of T*
Definition: CORE_SharedPointersList.hpp:19
vector< boost::shared_ptr< T > >::const_iterator begin() const
get iterator
Definition: CORE_SharedPointersList.h:300
void reverse()
reverse the vector
Definition: CORE_SharedPointersList.hpp:105
void permute(const tUIndex &i, const tUIndex &j)
permute
Definition: CORE_SharedPointersList.hpp:76
CORE_SharedPointersList()
internal constructor of a shared pointers list
Definition: CORE_SharedPointersList.hpp:7
void getValues(vector< T *> &vs)
get values
Definition: CORE_SharedPointersList.hpp:133
tBoolean remove()
remove the last pointer
Definition: CORE_SharedPointersList.h:199
#define tUIndex
Definition: types.h:126
tBoolean exists(boost::shared_ptr< T > obj) const
exists
Definition: CORE_SharedPointersList.h:263
abstract base class for most classes.
Definition: CORE_Object.h:53
tUIndex size() const
return the size of the array
Definition: CORE_SharedPointersList.h:255
void setSize(const tUIndex &n)
set the size of the shared pointers list
Definition: CORE_SharedPointersList.h:87