#include <CollectionMgr.h>
Public Member Functions | |
| CollectVectorInstance * | submitData (int seq, AtomIDList &i, ResizeArray< Vector > &d, int prec=2) |
Public Attributes | |
| ResizeArray< CollectVectorInstance * > | data |
|
||||||||||||||||||||
|
Definition at line 107 of file CollectionMgr.h. References AtomIDList, CollectionMgr::CollectVectorInstance::notfree(), CollectionMgr::CollectVectorInstance::reset(), and CollectionMgr::CollectVectorInstance::seq. Referenced by CollectionMgr::submitForces(), CollectionMgr::submitPositions(), and CollectionMgr::submitVelocities(). 00110 {
00111 CollectVectorInstance **c = data.begin();
00112 CollectVectorInstance **c_e = data.end();
00113 for( ; c != c_e && (*c)->seq != seq; ++c );
00114 if ( c == c_e )
00115 {
00116 c = data.begin();
00117 for( ; c != c_e && (*c)->notfree(); ++c );
00118 if ( c == c_e ) {
00119 data.add(new CollectVectorInstance);
00120 c = data.end() - 1;
00121 }
00122 (*c)->reset(seq,prec);
00123 }
00124 #ifdef MEM_OPT_VERSION
00125 if ( (*c)->append(i, oRank, d) )
00126 #else
00127 if ( (*c)->append(i,d) )
00128 #endif
00129 {
00130 return *c;
00131 }
00132 else
00133 {
00134 return 0;
00135 }
00136 }
|
|
|
Definition at line 138 of file CollectionMgr.h. |
1.3.9.1