replace tabs

git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@567 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
syntheticpp 2006-02-28 10:31:01 +00:00
parent c80e88d8c0
commit 4b98d7cc4b

View file

@ -52,7 +52,7 @@ namespace Loki
#ifndef LOKI_MAKE_DLL #ifndef LOKI_MAKE_DLL
void LOKI_C_CALLING_CONVENTION_QUALIFIER AtExitFn(); // declaration needed below void LOKI_C_CALLING_CONVENTION_QUALIFIER AtExitFn(); // declaration needed below
#else #else
void LOKI_EXPORT AtExitFn(); void LOKI_EXPORT AtExitFn();
#endif #endif
class LifetimeTracker; class LifetimeTracker;
@ -838,33 +838,33 @@ namespace Loki
/// \class Singleton /// \class Singleton
/// ///
/// \ingroup SingletonGroup /// \ingroup SingletonGroup
///
/// Convenience template to implement a getter function for a singleton object.
/// Often needed in a shared library which hosts singletons.
///
/// \par Usage
///
/// see test/SingletonDll
/// ///
//////////////////////////////////////////////////////////////////////////////// /// Convenience template to implement a getter function for a singleton object.
/// Often needed in a shared library which hosts singletons.
///
/// \par Usage
///
/// see test/SingletonDll
///
////////////////////////////////////////////////////////////////////////////////
template<class T> template<class T>
class Singleton class Singleton
{ {
public: public:
static T& Instance(); static T& Instance();
}; };
/// \def LOKI_SINGLETON_INSTANCE_DEFINITION(SHOLDER) /// \def LOKI_SINGLETON_INSTANCE_DEFINITION(SHOLDER)
/// Convenience macro for the definition of the static Instance member function /// Convenience macro for the definition of the static Instance member function
/// Put this macro called with a SingletonHolder typedef into your cpp file. /// Put this macro called with a SingletonHolder typedef into your cpp file.
#define LOKI_SINGLETON_INSTANCE_DEFINITION(SHOLDER) \ #define LOKI_SINGLETON_INSTANCE_DEFINITION(SHOLDER) \
\ \
SHOLDER::ObjectType& ::Loki::Singleton<SHOLDER::ObjectType>::Instance() \ SHOLDER::ObjectType& ::Loki::Singleton<SHOLDER::ObjectType>::Instance() \
{ \ { \
return SHOLDER::Instance(); \ return SHOLDER::Instance(); \
} }
} // namespace Loki } // namespace Loki
@ -883,6 +883,9 @@ namespace Loki
#endif // SINGLETON_INC_ #endif // SINGLETON_INC_
// $Log$ // $Log$
// Revision 1.27 2006/02/28 10:31:01 syntheticpp
// replace tabs
//
// Revision 1.26 2006/02/28 10:30:17 syntheticpp // Revision 1.26 2006/02/28 10:30:17 syntheticpp
// add singleton object getter function template // add singleton object getter function template
// //