Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

CollectionMgr::CollectVectorInstance Class Reference

#include <CollectionMgr.h>

List of all members.

Public Member Functions

 CollectVectorInstance (void)
void free ()
int notfree ()
void reset (int s, int p)
int append (AtomIDList &a, ResizeArray< Vector > &d)

Public Attributes

int seq
AtomIDList aid
int precisions
ResizeArray< Vectordata
ResizeArray< FloatVectorfdata


Constructor & Destructor Documentation

CollectionMgr::CollectVectorInstance::CollectVectorInstance void   )  [inline]
 

Definition at line 44 of file CollectionMgr.h.

00044 : seq(-10) { ; }


Member Function Documentation

int CollectionMgr::CollectVectorInstance::append AtomIDList a,
ResizeArray< Vector > &  d
[inline]
 

Definition at line 60 of file CollectionMgr.h.

References ResizeArray< Elem >::add(), AtomIDList, and ResizeArray< Elem >::size().

00061     {
00062       int size = a.size();
00063       for( int i = 0; i < size; ++i )
00064       {
00065         aid.add(a[i]);
00066         if ( precisions & 2 ) data.add(d[i]);
00067         if ( precisions & 1 ) fdata.add(d[i]);
00068       }
00069       return ( ! --remaining );
00070     }

void CollectionMgr::CollectVectorInstance::free  )  [inline]
 

Definition at line 46 of file CollectionMgr.h.

Referenced by CollectionMgr::submitPositions(), and CollectionMgr::submitVelocities().

00046 { seq = -10; }

int CollectionMgr::CollectVectorInstance::notfree  )  [inline]
 

Definition at line 47 of file CollectionMgr.h.

Referenced by CollectionMgr::CollectVectorSequence::submitData().

00047 { return ( seq != -10 ); }

void CollectionMgr::CollectVectorInstance::reset int  s,
int  p
[inline]
 

Definition at line 49 of file CollectionMgr.h.

References NAMD_bug(), PatchMap::numHomePatches(), and PatchMap::Object().

Referenced by CollectionMgr::CollectVectorSequence::submitData().

00049                              {
00050       if ( s == -10 ) NAMD_bug("seq == free in CollectionMgr");
00051       seq = s;
00052       precisions = p;
00053       remaining = PatchMap::Object()->numHomePatches();
00054       aid.resize(0);
00055       data.resize(0);
00056       fdata.resize(0);
00057     }


Member Data Documentation

AtomIDList CollectionMgr::CollectVectorInstance::aid
 

Definition at line 73 of file CollectionMgr.h.

Referenced by CollectionMgr::submitPositions(), and CollectionMgr::submitVelocities().

ResizeArray<Vector> CollectionMgr::CollectVectorInstance::data
 

Definition at line 75 of file CollectionMgr.h.

Referenced by CollectionMgr::submitPositions(), and CollectionMgr::submitVelocities().

ResizeArray<FloatVector> CollectionMgr::CollectVectorInstance::fdata
 

Definition at line 76 of file CollectionMgr.h.

Referenced by CollectionMgr::submitPositions().

int CollectionMgr::CollectVectorInstance::precisions
 

Definition at line 74 of file CollectionMgr.h.

int CollectionMgr::CollectVectorInstance::seq
 

Definition at line 72 of file CollectionMgr.h.

Referenced by CollectionMgr::CollectVectorSequence::submitData(), CollectionMgr::submitPositions(), and CollectionMgr::submitVelocities().


The documentation for this class was generated from the following file:
Generated on Mon Nov 23 04:59:31 2009 for NAMD by  doxygen 1.3.9.1