All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
storePiece.h
Go to the documentation of this file.
1 /* storePiece.h
2  */
3 #ifndef _STORE_PIECE_VECTOR_H
4 #define _STORE_PIECE_VECTOR_H
6 namespace osl
7 {
8  namespace effect_action
9  {
13  struct StorePiece
14  {
15  PieceVector *store;
16  explicit StorePiece(PieceVector *s) : store(s)
17  {
18  }
19  template<Player P,Ptype Type>
20  void doActionPtype(Piece p, Square pos)
21  {
22  doAction<P>(p, pos);
23  }
24  template<Player P>
26  {
27  store->push_back(p);
28  }
29  };
30  } // namespace effect_action
31 } // namespace osl
32 #endif // _STORE_PIECE_VECTOR_H
33 // ;;; Local Variables:
34 // ;;; mode:c++
35 // ;;; c-basic-offset:2
36 // ;;; End: