subversion uses Id instead of Header
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@760 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
parent
9b473fd7f2
commit
a35442b5d1
53 changed files with 122 additions and 65 deletions
|
@ -1,3 +1,5 @@
|
|||
// $Id$
|
||||
|
||||
#define USE_SEQUENCE
|
||||
|
||||
#include <cassert>
|
||||
|
|
|
@ -8,6 +8,9 @@
|
|||
// for any purpose. It is provided "as is" without express or implied warranty.
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// $Id$
|
||||
|
||||
|
||||
// Show an example of a Loki policy that uses DeletableSingleton.
|
||||
//
|
||||
// Expected output:
|
||||
|
|
|
@ -7,7 +7,8 @@
|
|||
// for any purpose. It is provided "as is" without express or implied warranty.
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// $Header$
|
||||
// $Id$
|
||||
|
||||
|
||||
//#define CLASS_LEVEL_THERADING
|
||||
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
// For more information, see http://www.boost.org
|
||||
|
||||
// $Id$
|
||||
|
||||
|
||||
#include <functional>
|
||||
|
|
|
@ -9,12 +9,11 @@
|
|||
// suitability of this software for any purpose. It is provided "as is"
|
||||
// without express or implied warranty.
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// $Header$
|
||||
|
||||
#ifndef LOKI_THREAD_H_
|
||||
#define LOKI_THREAD_H_
|
||||
|
||||
// $Id$
|
||||
|
||||
#include <loki/Threads.h>
|
||||
#include <vector>
|
||||
|
||||
|
|
|
@ -10,7 +10,8 @@
|
|||
// without express or implied warranty.
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// $Header$
|
||||
// $Id$
|
||||
|
||||
|
||||
#define LOKI_CLASS_LEVEL_THREADING
|
||||
|
||||
|
|
|
@ -8,6 +8,9 @@
|
|||
// for any purpose. It is provided "as is" without express or implied warranty.
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// $Id$
|
||||
|
||||
|
||||
// This is an example of using the SetLongevity function for both
|
||||
// singletons and globally and locally defined dynamically allocated
|
||||
// objects.
|
||||
|
|
|
@ -7,6 +7,9 @@
|
|||
// for any purpose. It is provided "as is" without express or implied warranty.
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// $Id$
|
||||
|
||||
|
||||
#include <iostream>
|
||||
|
||||
#include <loki/Singleton.h>
|
||||
|
|
|
@ -10,7 +10,8 @@
|
|||
// without express or implied warranty.
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// $Header$
|
||||
// $Id$
|
||||
|
||||
|
||||
// define to test the OrderedStatic template
|
||||
#define TEST_ORDERED_STATIC
|
||||
|
|
|
@ -10,7 +10,8 @@
|
|||
// without express or implied warranty.
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// $Header$
|
||||
// $Id$
|
||||
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning (disable: 4512)
|
||||
|
|
|
@ -10,7 +10,8 @@
|
|||
// without express or implied warranty.
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// $Header:
|
||||
// $Id$
|
||||
|
||||
|
||||
#include <loki/Pimpl.h>
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
// without express or implied warranty.
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// $Header:
|
||||
// $Id$
|
||||
|
||||
|
||||
#include <loki/Pimpl.h>
|
||||
|
|
|
@ -12,7 +12,8 @@
|
|||
#ifndef CLASSLIST_H
|
||||
#define CLASSLIST_H
|
||||
|
||||
// $Header$
|
||||
// $Id$
|
||||
|
||||
|
||||
#include <string>
|
||||
|
||||
|
|
|
@ -10,7 +10,8 @@
|
|||
// without express or implied warranty.
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// $Header$
|
||||
// $Id$
|
||||
|
||||
|
||||
#include "foo.h"
|
||||
#include <iostream>
|
||||
|
|
|
@ -12,7 +12,8 @@
|
|||
#ifndef LOKI_FOO_H
|
||||
#define LOKI_FOO_H
|
||||
|
||||
// $Header$
|
||||
// $Id$
|
||||
|
||||
|
||||
#include "classlist.h"
|
||||
|
||||
|
|
|
@ -10,7 +10,8 @@
|
|||
// without express or implied warranty.
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// $Header$
|
||||
// $Id$
|
||||
|
||||
|
||||
#include <iostream>
|
||||
|
||||
|
|
|
@ -9,12 +9,13 @@
|
|||
//
|
||||
// This software is provided "as is" without express or implied warranty.
|
||||
//
|
||||
// Last update: September 16, 2002
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef ABSTRACTFACTORYTEST_H
|
||||
#define ABSTRACTFACTORYTEST_H
|
||||
|
||||
// $Id$
|
||||
|
||||
|
||||
#include <memory>
|
||||
#include <typeinfo>
|
||||
#include <loki/AbstractFactory.h>
|
||||
|
|
|
@ -9,12 +9,13 @@
|
|||
//
|
||||
// This software is provided "as is" without express or implied warranty.
|
||||
//
|
||||
// Last update: September 16, 2002
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef ASSOCVECTORTEST_H
|
||||
#define ASSOCVECTORTEST_H
|
||||
|
||||
// $Id$
|
||||
|
||||
|
||||
#include <cstdio>
|
||||
#include <cstdlib>
|
||||
#include <ctime>
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// $Id$
|
||||
|
||||
//DataGeneratorsTest.h
|
||||
|
||||
|
||||
|
|
|
@ -12,12 +12,11 @@
|
|||
// This software is provided "as is" without express or implied warranty.
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// $Header$
|
||||
|
||||
#ifndef FACTORYPARMTEST_H
|
||||
#define FACTORYPARMTEST_H
|
||||
|
||||
// $Id$
|
||||
|
||||
|
||||
#ifdef ENABLE_NEW_FACTORY_CODE
|
||||
|
||||
|
|
|
@ -9,12 +9,13 @@
|
|||
//
|
||||
// This software is provided "as is" without express or implied warranty.
|
||||
//
|
||||
// Last update: September 16, 2002
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef FACTORYTEST_H
|
||||
#define FACTORYTEST_H
|
||||
|
||||
// $Id$
|
||||
|
||||
|
||||
#include <loki/Factory.h>
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -11,12 +11,12 @@
|
|||
// This software is provided "as is" without express or implied warranty.
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// $Header:
|
||||
|
||||
#ifndef FUNCTORTEST_H
|
||||
#define FUNCTORTEST_H
|
||||
|
||||
// $Id$
|
||||
|
||||
|
||||
#include <loki/Functor.h>
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -9,12 +9,13 @@
|
|||
//
|
||||
// This software is provided "as is" without express or implied warranty.
|
||||
//
|
||||
// Last update: September 16, 2002
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef SEQUENCETEST_H
|
||||
#define SEQUENCETEST_H
|
||||
|
||||
// $Id$
|
||||
|
||||
|
||||
#include <loki/Sequence.h>
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -9,12 +9,13 @@
|
|||
//
|
||||
// This software is provided "as is" without express or implied warranty.
|
||||
//
|
||||
// Last update: September 16, 2002
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef SINGLETONTEST_H
|
||||
#define SINGLETONTEST_H
|
||||
|
||||
// $Id$
|
||||
|
||||
|
||||
#include <cassert>
|
||||
#include <loki/Singleton.h>
|
||||
#include "UnitTest.h"
|
||||
|
|
|
@ -9,12 +9,13 @@
|
|||
//
|
||||
// This software is provided "as is" without express or implied warranty.
|
||||
//
|
||||
// Last update: September 16, 2002
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef SMALLOBJECTTEST_H
|
||||
#define SMALLOBJECTTEST_H
|
||||
|
||||
// $Id$
|
||||
|
||||
|
||||
#include <cstdlib>
|
||||
#include <loki/SmallObj.h>
|
||||
#include "UnitTest.h"
|
||||
|
|
|
@ -10,12 +10,12 @@
|
|||
// This software is provided "as is" without express or implied warranty.
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// $Header:
|
||||
|
||||
#ifndef SMARTPTRTEST_H
|
||||
#define SMARTPTRTEST_H
|
||||
|
||||
// $Id$
|
||||
|
||||
|
||||
#include "UnitTest.h"
|
||||
#include <loki/SmartPtr.h>
|
||||
#include <cassert>
|
||||
|
|
|
@ -11,7 +11,8 @@
|
|||
//
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// $Header$
|
||||
// $Id$
|
||||
|
||||
|
||||
#ifdef __INTEL_COMPILER
|
||||
# pragma warning(disable: 111 193 304 383 444 488 981 1418)
|
||||
|
|
|
@ -10,10 +10,12 @@
|
|||
// This software is provided "as is" without express or implied warranty.
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef THREADSTEST_H
|
||||
#define THREADSTEST_H
|
||||
|
||||
// $Id$
|
||||
|
||||
|
||||
#include <loki/Threads.h>
|
||||
#include "UnitTest.h"
|
||||
|
||||
|
|
|
@ -9,12 +9,13 @@
|
|||
//
|
||||
// This software is provided "as is" without express or implied warranty.
|
||||
//
|
||||
// Last update: September 16, 2002
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef TYPEMANIPTEST_H
|
||||
#define TYPEMANIPTEST_H
|
||||
|
||||
// $Id$
|
||||
|
||||
|
||||
#include <loki/TypeManip.h>
|
||||
#include "UnitTest.h"
|
||||
|
||||
|
|
|
@ -9,12 +9,13 @@
|
|||
//
|
||||
// This software is provided "as is" without express or implied warranty.
|
||||
//
|
||||
// Last update: September 16, 2002
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef TYPETRAITSTEST_H
|
||||
#define TYPETRAITSTEST_H
|
||||
|
||||
// $Id$
|
||||
|
||||
|
||||
#include <loki/TypeTraits.h>
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
// Loki TypeTraits test program
|
||||
// Kalle Rutanen
|
||||
// 25.9.2005
|
||||
// Kalle Rutanen 25.9.2005
|
||||
//
|
||||
// $Id$
|
||||
//
|
||||
//
|
||||
// Some type sets
|
||||
// --------------
|
||||
|
|
|
@ -9,12 +9,13 @@
|
|||
//
|
||||
// This software is provided "as is" without express or implied warranty.
|
||||
//
|
||||
// Last update: September 16, 2002
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef TYPELISTTEST_H
|
||||
#define TYPELISTTEST_H
|
||||
|
||||
// $Id$
|
||||
|
||||
|
||||
#include <loki/Typelist.h>
|
||||
#include <loki/Sequence.h>
|
||||
|
||||
|
|
|
@ -9,11 +9,12 @@
|
|||
//
|
||||
// This software is provided "as is" without express or implied warranty.
|
||||
//
|
||||
// Last update: September 16, 2002
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
#ifndef LOKI_UNITTEST_H
|
||||
#define LOKI_UNITTEST_H
|
||||
|
||||
// $Id$
|
||||
|
||||
#ifndef UNITTEST_H
|
||||
#define UNITTEST_H
|
||||
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
|
|
@ -9,7 +9,8 @@
|
|||
// warranty.
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// $Header$
|
||||
// $Id$
|
||||
|
||||
|
||||
#include <loki/SafeFormat.h>
|
||||
#include <iostream>
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
// without express or implied warranty.
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// $Header$
|
||||
// $Id$
|
||||
|
||||
|
||||
#include <loki/ScopeGuard.h>
|
||||
|
|
|
@ -10,6 +10,8 @@
|
|||
// without express or implied warranty.
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// $Id$
|
||||
|
||||
|
||||
#include <iostream>
|
||||
|
||||
|
|
|
@ -8,6 +8,9 @@
|
|||
// for any purpose. It is provided "as is" without express or implied warranty.
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// $Id$
|
||||
|
||||
|
||||
// A singleton LogClass object that resurrects itself after
|
||||
// it has been automatically destroyed during program
|
||||
// termination. When a dead-reference to the LogClass
|
||||
|
|
|
@ -10,7 +10,8 @@
|
|||
// without express or implied warranty.
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// $Header$
|
||||
// $Id$
|
||||
|
||||
|
||||
/*
|
||||
|
||||
|
|
|
@ -10,7 +10,8 @@
|
|||
// without express or implied warranty.
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// $Header:
|
||||
// $Id$
|
||||
|
||||
|
||||
#include "foo.h"
|
||||
#include <iostream>
|
||||
|
|
|
@ -12,7 +12,8 @@
|
|||
#ifndef LOKI_FOO_H
|
||||
#define LOKI_FOO_H
|
||||
|
||||
// $Header:
|
||||
// $Id$
|
||||
|
||||
|
||||
#include "foo_export.h"
|
||||
|
||||
|
|
|
@ -12,6 +12,9 @@
|
|||
#ifndef FOO_FOO_EXPORT_H
|
||||
#define FOO_FOO_EXPORT_H
|
||||
|
||||
// $Id$
|
||||
|
||||
|
||||
#include <loki/LokiExport.h>
|
||||
|
||||
#if (defined(FOO_MAKE_DLL) && defined(FOO_DLL)) || \
|
||||
|
|
|
@ -10,7 +10,8 @@
|
|||
// without express or implied warranty.
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// $Header:
|
||||
// $Id$
|
||||
|
||||
|
||||
#include "singletondll.h"
|
||||
|
||||
|
|
|
@ -12,7 +12,8 @@
|
|||
#ifndef LOKI_SINGLETONDLL_H
|
||||
#define LOKI_SINGLETONDLL_H
|
||||
|
||||
// $Header:
|
||||
// $Id$
|
||||
|
||||
|
||||
#include "singletondll_export.h"
|
||||
|
||||
|
|
|
@ -12,6 +12,9 @@
|
|||
#ifndef SINGLETONDLL_SINGLETONDLL_EXPORT_H
|
||||
#define SINGLETONDLL_SINGLETONDLL_EXPORT_H
|
||||
|
||||
// $Id$
|
||||
|
||||
|
||||
#include <loki/LokiExport.h>
|
||||
|
||||
#if (defined(SINGLETONDLL_MAKE_DLL) && defined(SINGLETONDLL_DLL)) || \
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
for how well your compiler can handle Loki.
|
||||
*/
|
||||
|
||||
// $Header$
|
||||
// $Id$
|
||||
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
|
|
@ -11,7 +11,8 @@
|
|||
// without express or implied warranty.
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// $Header$
|
||||
// $Id$
|
||||
|
||||
|
||||
//#define LOKI_CLASS_LEVEL_THREADING
|
||||
//#define LOKI_OBJECT_LEVEL_THREADING
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
// without express or implied warranty.
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// $Header$
|
||||
// $Id$
|
||||
|
||||
|
||||
#include <loki/SmallObj.h>
|
||||
|
|
|
@ -9,12 +9,11 @@
|
|||
// suitability of this software for any purpose. It is provided "as is"
|
||||
// without express or implied warranty.
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// $Header$
|
||||
|
||||
#ifndef LOKI_TEST_TIMER_H
|
||||
#define LOKI_TEST_TIMER_H
|
||||
|
||||
// $Id$
|
||||
|
||||
|
||||
#include <ctime>
|
||||
#include <iostream>
|
||||
|
|
|
@ -10,7 +10,8 @@
|
|||
// without express or implied warranty.
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// $Header$
|
||||
// $Id$
|
||||
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
// without express or implied warranty.
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// $Header$
|
||||
// $Id$
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
|
|
|
@ -10,7 +10,8 @@
|
|||
// without express or implied warranty.
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// $Header$
|
||||
// $Id$
|
||||
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
|
|
|
@ -10,7 +10,8 @@
|
|||
// without express or implied warranty.
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// $Header$
|
||||
// $Id$
|
||||
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
|
|
|
@ -10,7 +10,8 @@
|
|||
// without express or implied warranty.
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// $Header$
|
||||
// $Id$
|
||||
|
||||
|
||||
#ifdef _MSC_VER
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue