Candidate_v1.7.0
        stable
      
      
        
          | Last change
 on this file since e9f307 was             f01769, checked in by Frederik Heber <heber@…>, 10 years ago | 
        
          | 
Replaced World::getAtom() wherever possible by const version.
 some AtomSet member functions now have const atom ptr instead of atom ptr.
molecule can return const and non-const AtomSet.
added FromIdToConstAtom to allow iterate through atoms in molecule (which
are stored by id, not by ptr) in const fashion.
in molecule::isInMolecule() is now const, ::CopyMolecule..() is non-const
(because copying involves father atom who is stored non-const).
 | 
        
          | 
              
Property                 mode
 set to                 100644 | 
        
          | File size:
            1.4 KB | 
      
      
| Line |  | 
|---|
| 1 | /* | 
|---|
| 2 | * RepeatBoxAction.def | 
|---|
| 3 | * | 
|---|
| 4 | *  Created on: Aug 26, 2010 | 
|---|
| 5 | *      Author: heber | 
|---|
| 6 | */ | 
|---|
| 7 |  | 
|---|
| 8 | // all includes and forward declarations necessary for non-integral types below | 
|---|
| 9 | #include "LinearAlgebra/RealSpaceMatrix.hpp" | 
|---|
| 10 | #include <set> | 
|---|
| 11 | #include <vector> | 
|---|
| 12 |  | 
|---|
| 13 | class molecule; | 
|---|
| 14 |  | 
|---|
| 15 | #include "LinearAlgebra/defs.hpp" | 
|---|
| 16 | #include "Parameters/Validators/DummyValidator.hpp" | 
|---|
| 17 | #include "Parameters/Validators/STLVectorValidator.hpp" | 
|---|
| 18 |  | 
|---|
| 19 | // i.e. there is an integer with variable name Z that can be found in | 
|---|
| 20 | // ValueStorage by the token "Z" -> first column: int, Z, "Z" | 
|---|
| 21 | // "undefine" if no parameters are required, use (NOPARAM_DEFAULT) for each (undefined) default value | 
|---|
| 22 | #define paramtypes (std::vector< unsigned int >) | 
|---|
| 23 | #define paramtokens ("repeat-box") | 
|---|
| 24 | #define paramdescriptions ("number of copies to create per axis") | 
|---|
| 25 | #undef paramdefaults | 
|---|
| 26 | #define paramreferences (Repeater) | 
|---|
| 27 | #define paramvalids \ | 
|---|
| 28 | (STLVectorValidator< std::vector< unsigned int > >(NDIM, NDIM)) | 
|---|
| 29 |  | 
|---|
| 30 | #define statetypes (RealSpaceMatrix)(std::set< molecule *>) | 
|---|
| 31 | #define statereferences (olddomain)(oldmolecules) | 
|---|
| 32 |  | 
|---|
| 33 | // some defines for all the names, you may use ACTION, STATE and PARAMS | 
|---|
| 34 | #define CATEGORY World | 
|---|
| 35 | #define MENUNAME "world" | 
|---|
| 36 | #define MENUPOSITION 8 | 
|---|
| 37 | #define ACTIONNAME RepeatBox | 
|---|
| 38 | #define TOKEN "repeat-box" | 
|---|
| 39 |  | 
|---|
| 40 |  | 
|---|
| 41 | // finally the information stored in the ActionTrait specialization | 
|---|
| 42 | #define DESCRIPTION "create periodic copies of the simulation box per axis" | 
|---|
| 43 | #define SHORTFORM "d" | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.