CollectionMgr::CollectVectorSequence Class Reference

#include <CollectionMgr.h>

List of all members.

Public Member Functions

CollectVectorInstancesubmitData (int seq, AtomIDList &i, ResizeArray< Vector > &d, int prec=2)

Public Attributes

ResizeArray< CollectVectorInstance * > data


Detailed Description

Definition at line 100 of file CollectionMgr.h.


Member Function Documentation

CollectVectorInstance* CollectionMgr::CollectVectorSequence::submitData ( int  seq,
AtomIDList i,
ResizeArray< Vector > &  d,
int  prec = 2 
) [inline]

Definition at line 107 of file CollectionMgr.h.

References data, CollectionMgr::CollectVectorInstance::notfree(), and CollectionMgr::CollectVectorInstance::seq.

Referenced by 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     }


Member Data Documentation

ResizeArray<CollectVectorInstance*> CollectionMgr::CollectVectorSequence::data

Definition at line 138 of file CollectionMgr.h.

Referenced by submitData().


The documentation for this class was generated from the following file:
Generated on Wed Nov 22 01:17:19 2017 for NAMD by  doxygen 1.4.7