#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 87 of file CollectionMgr.h. References AtomIDList, ResizeArray< Elem >::begin(), ResizeArray< Elem >::end(), CollectionMgr::CollectVectorInstance::notfree(), CollectionMgr::CollectVectorInstance::reset(), and CollectionMgr::CollectVectorInstance::seq. Referenced by CollectionMgr::submitPositions(), and CollectionMgr::submitVelocities(). 00089 {
00090 CollectVectorInstance **c = data.begin();
00091 CollectVectorInstance **c_e = data.end();
00092 for( ; c != c_e && (*c)->seq != seq; ++c );
00093 if ( c == c_e )
00094 {
00095 c = data.begin();
00096 for( ; c != c_e && (*c)->notfree(); ++c );
00097 if ( c == c_e ) {
00098 data.add(new CollectVectorInstance);
00099 c = data.end() - 1;
00100 }
00101 (*c)->reset(seq,prec);
00102 }
00103 if ( (*c)->append(i,d) )
00104 {
00105 return *c;
00106 }
00107 else
00108 {
00109 return 0;
00110 }
00111 }
|
|
|
Definition at line 113 of file CollectionMgr.h. |
1.3.9.1