CHROMA
spin_insertion.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! @file
3  * @brief Spin insertions
4  */
5 
6 #ifndef __spin_insertion_h__
7 #define __spin_insertion_h__
8 
9 #include "chromabase.h"
10 
11 namespace Chroma
12 {
13  //! Base class for spin insertion
14  /*! @ingroup hadron
15  *
16  * Supports insertion into quarks
17  */
18  template<typename T>
20  {
21  public:
22  //! Virtual destructor to help with cleanup;
23  virtual ~SpinInsertion() {}
24 
25  //! Insert into the quark
26  /*!
27  * \param obj Object to insert ( Read )
28  *
29  * \return spin inserted object
30  */
31  virtual T operator()(const T& obj) const = 0;
32  };
33 
34 }
35 
36 
37 #endif
Primary include file for CHROMA library code.
Base class for spin insertion.
virtual T operator()(const T &obj) const =0
Insert into the quark.
virtual ~SpinInsertion()
Virtual destructor to help with cleanup;.
Handle< MapObject< int, EVPair< LatticeColorVector > > > obj
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
LinOpSysSolverMGProtoClover::T T