MFMv2.0.10
Movable Feast Machine Simulator 2.0.10
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Element_Xtal_R12.h
Go to the documentation of this file.
1 /* -*- mode:C++ -*-
2  Element_Xtal_R12.h Right-tipped, knight's-J-move crystal
3  Copyright (C) 2014 The Regents of the University of New Mexico. All rights reserved.
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Lesser General Public
7  License as published by the Free Software Foundation; either
8  version 2.1 of the License, or (at your option) any later version.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with this library; if not, write to the Free Software
17  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
18  USA
19 */
20 
27 #ifndef ELEMENT_XTAL_R12_H
28 #define ELEMENT_XTAL_R12_H
29 
30 #include "Element.h"
31 #include "EventWindow.h"
32 #include "ElementTable.h"
33 #include "Element_Xtal_L12.h"
34 #include "itype.h"
35 
36 namespace MFM
37 {
38 
39 #define ELT_VERSION 1
40 
41  template <class CC>
43  {
44  // Extract short names for parameter types
45  typedef typename CC::ATOM_TYPE T;
46 
47  public:
48 
49  static Element_Xtal_R12 THE_INSTANCE;
50 
51  Element_Xtal_R12() : Element_Xtal_L12<CC>(MFM_UUID_FOR("XtalR12", ELT_VERSION))
52  {
54  Element<CC>::SetName("R1,2 crystal");
55  }
56 
57  virtual u32 GetSymI(T &atom, EventWindow<CC>& window) const
58  {
59  return (u32) PSYM_FLIPY;
60  }
61  };
62 
63  template <class CC>
65 
66 }
67 
68 #endif /* ELEMENT_XTAL_R12_H */
void SetName(const char *name)
Definition: Element.h:209
void SetAtomicSymbol(const char *symbol)
Definition: Element.h:193
Definition: Element_Xtal_R12.h:42
Definition: Element_Xtal_L12.h:42
Definition: ElementTable.h:43