CHROMA
named_objmap.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! \file
3  * \brief Named object function std::map
4  */
5 
6 #ifndef __named_objmap_h__
7 #define __named_objmap_h__
8 
9 #include "singleton.h"
10 #include "named_obj.h"
11 #include "chromabase.h"
12 
13 namespace Chroma
14 {
15 
16  // Turn into a Singleton. Create with CreateUsingNew
17  // Has NoDestroy lifetime, as it may be needed for
18  // the destruction policy is No Destroy, so the
19  // Singleton is not cleaned up on exit. This is so
20  // that static objects can refer to it with confidence
21  // in their own destruction, not having to worry that
22  // atexit() may have destroyed the allocator before
23  // the static objects need to feed memory.
24  /*! \ingroup inlineio */
25  typedef SingletonHolder<NamedObjectMap,
26  QDP::CreateUsingNew,
27  QDP::NoDestroy,
28  QDP::SingleThreaded> TheNamedObjMap;
29 
30 } // end namespace Chroma
31 
32 
33 #endif
Primary include file for CHROMA library code.
SingletonHolder< NamedObjectMap, QDP::CreateUsingNew, QDP::NoDestroy, QDP::SingleThreaded > TheNamedObjMap
Definition: named_objmap.h:28
Named object support.
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
Singleton support.