#include <ResizeArray.h>
Inheritance diagram for ResizeArray< Elem >:

Public Types | |
| typedef Elem * | iterator |
| typedef const Elem * | const_iterator |
Public Member Functions | |
| iterator | begin (void) |
| iterator | end (void) |
| const_iterator | const_begin (void) const |
| const_iterator | const_end (void) const |
| ResizeArray (void) | |
| ResizeArray (int s) | |
| ResizeArray (ResizeArray< Elem > &ra) | |
| ResizeArray (const ResizeArray< Elem > *ra) | |
| ResizeArray (Elem **array, int arraySize, int allocSize=0) | |
| virtual | ~ResizeArray (void) |
| ResizeArray< Elem > & | operator= (ResizeArray< Elem > &ra) |
| void | setParams (int s, float growthFactor) |
| void | resize (int i) |
| void | clear () |
| void | setall (const Elem &elem) |
| int | add (const Elem &elem) |
| int | del (int index, int num=1) |
| int | insert (const Elem &elem, int index) |
| Elem & | item (int i) |
| Elem & | operator[] (int index) |
| const Elem & | operator[] (int index) const |
| int | size (void) const |
| int | find (const Elem &e) const |
Protected Attributes | |
| ResizeArrayRaw< Elem > * | rep |
Friends | |
| class | ResizeArrayIter<Elem> |
|
|||||
|
Definition at line 36 of file ResizeArray.h. |
|
|||||
|
Definition at line 33 of file ResizeArray.h. |
|
||||||||||
|
Definition at line 41 of file ResizeArray.h. 00041 {
00042 rep = new ResizeArrayRaw<Elem>();
00043 rep->refCount = 1;
00044 }
|
|
||||||||||
|
Definition at line 47 of file ResizeArray.h. 00047 {
00048 rep = new ResizeArrayRaw<Elem>();
00049 rep->resize(s);
00050 rep->refCount = 1;
00051 }
|
|
||||||||||
|
Definition at line 54 of file ResizeArray.h.
|
|
||||||||||
|
Definition at line 60 of file ResizeArray.h. 00060 {
00061 rep = new ResizeArrayRaw<Elem>(*(ra->rep));
00062 rep->refCount = 1;
00063 }
|
|
||||||||||||||||||||
|
Definition at line 66 of file ResizeArray.h. 00066 {
00067 rep = new ResizeArrayRaw<Elem>(array, arraySize, allocSize);
00068 rep->refCount = 1;
00069 }
|
|
||||||||||
|
Definition at line 71 of file ResizeArray.h. 00071 {
00072 if (!--rep->refCount) delete rep;
00073 }
|
|
||||||||||
|
||||||||||
|
|||||||||
|
Definition at line 95 of file ResizeArray.h. Referenced by ParallelIOMgr::createHomePatches(), ParallelIOMgr::integrateMigratedAtoms(), ParallelIOMgr::migrateAtomsMGrp(), outputProxyTree(), ParallelIOMgr::sendAtomsToHomePatchProcs(), and ComputeMgr::updateLocalComputes3(). 00095 { rep->clear(); }
|
|
||||||||||
|
Definition at line 37 of file ResizeArray.h. Referenced by HomePatch::addForceToMomentum(). 00037 { return rep->array; }
|
|
||||||||||
|
Definition at line 38 of file ResizeArray.h.
|
|
||||||||||||||||
|
Definition at line 112 of file ResizeArray.h. Referenced by SortedArray< PatchElem >::del(), HomePatch::doAtomMigration(), GlobalMasterIMD::get_vmd_forces(), and HomePatch::unregisterProxy(). 00112 {
00113 return(rep->del(index,num));
00114 }
|
|
||||||||||
|
||||||||||
|
Definition at line 140 of file ResizeArray.h. Referenced by HomePatch::buildSpanningTree(), and ProxyMgr::buildSpanningTree0(). 00140 { return rep->find(e); }
|
|
||||||||||||||||
|
Definition at line 117 of file ResizeArray.h. Referenced by ComputePmeMgr::initialize(), UniqueSortedArray< Elem >::insert(), and SortedArray< Elem >::insert(). 00117 {
00118 rep->ins(elem,index);
00119 return (index);
00120 }
|
|
||||||||||
|
Definition at line 123 of file ResizeArray.h. Referenced by GlobalMasterTest::calculate(), GlobalMasterIMD::calculate(), ProxyMgr::recvNodeAwareSpanningTree(), and ComputeNonbondedCUDA::requirePatch(). 00123 {
00124 i = ( i < 0 ? 0 : i );
00125 if ((i+1) > size())
00126 resize(i+1);
00127 return rep->array[i];
00128 }
|
|
||||||||||
|
Definition at line 76 of file ResizeArray.h. Referenced by SortableResizeArray< PatchElem >::operator=(). 00076 {
00077 if ( !(--rep->refCount) )
00078 delete rep;
00079 rep = ra.rep;
00080 rep->refCount++;
00081 return (*this);
00082 }
|
|
||||||||||
|
Definition at line 132 of file ResizeArray.h. 00132 { return rep->array[index]; }
|
|
||||||||||
|
Definition at line 131 of file ResizeArray.h. 00131 { return rep->array[index]; }
|
|
||||||||||
|
||||||||||
|
Definition at line 98 of file ResizeArray.h. Referenced by HomePatch::buildSpanningTree(), ProxyMgr::buildSpanningTree0(), GlobalMasterTcl::calculate(), Patch::positionsReady(), GlobalMasterServer::recvData(), and HomePatch::setGBISIntrinsicRadii(). 00098 {
00099 iterator i = begin();
00100 iterator e = end();
00101 for ( ; i != e; ++i ) *i = elem;
00102 }
|
|
||||||||||||||||
|
Definition at line 85 of file ResizeArray.h. Referenced by ParallelIOMgr::initialize(). 00085 {
00086 rep->setResizeParams(s, growthFactor);
00087 }
|
|
||||||||||
|
|||||
|
Definition at line 26 of file ResizeArray.h. |
|
|||||
|
Definition at line 29 of file ResizeArray.h. Referenced by ResizeArrayIter< PatchElem >::operator *(), ResizeArrayIter< PatchElem >::operator->(), ResizeArray< AngleElem >::operator=(), and ResizeArray< AngleElem >::ResizeArray(). |
1.3.9.1