Simpatico  v1.10
CellTag.h
1 #ifndef MCMD_CELL_TAG_H
2 #define MCMD_CELL_TAG_H
3 
4 /*
5 * Simpatico - Simulation Package for Polymeric and Molecular Liquids
6 *
7 * Copyright 2010 - 2017, The Regents of the University of Minnesota
8 * Distributed under the terms of the GNU General Public License.
9 */
10 
11 namespace McMd
12 {
13 
27  class CellTag
28  {
29 
30  public:
31 
33  static const int NullIndex = -1;
34 
36  int cellId;
37 
39  int cellPos;
40 
43  { clear(); }
44 
46  void clear()
47  {
48  cellId = NullIndex;
49  cellPos = NullIndex;
50  }
51 
52  };
53 
54 }
55 #endif
void clear()
Set CellTag to empty/unused state.
Definition: CellTag.h:46
int cellId
Cell index of Cell containing associated Atom.
Definition: CellTag.h:36
int cellPos
Array index of Atom pointer in a Cell::part_ array.
Definition: CellTag.h:39
Location of the pointer to a particular Atom in a CellList.
Definition: CellTag.h:27
static const int NullIndex
Null (unknown) value for cellId and cellPos.
Definition: CellTag.h:33
Single-processor Monte Carlo (MC) and molecular dynamics (MD).
CellTag()
Default constructor.
Definition: CellTag.h:42