~ubuntu-branches/ubuntu/oneiric/libclaw/oneiric

« back to all changes in this revision

Viewing changes to claw/basic_singleton.hpp

  • Committer: Bazaar Package Importer
  • Author(s): Julien Jorge
  • Date: 2010-12-23 20:55:14 UTC
  • mfrom: (4.2.1 sid)
  • Revision ID: james.westby@ubuntu.com-20101223205514-s10m6ywla7s4ttqf
Tags: 1.6.1-3
UploadĀ inĀ sid

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
  CLAW is a free library without any particular aim but being useful to 
5
5
  anyone.
6
6
 
7
 
  Copyright (C) 2005-2008 Julien Jorge
 
7
  Copyright (C) 2005-2010 Julien Jorge
8
8
 
9
9
  This library is free software; you can redistribute it and/or
10
10
  modify it under the terms of the GNU Lesser General Public
34
34
 
35
35
namespace claw
36
36
{
37
 
  namespace concept
 
37
  namespace pattern
38
38
  {
39
39
    /**
40
40
     * \brief A (really) basic implementation of the singleton design pattern.
41
41
     * \author Julien Jorge
42
42
     */
43
43
    template<class T>
44
 
    class basic_singleton : public non_copyable
 
44
    class basic_singleton:
 
45
      public non_copyable
45
46
    {
46
47
    public:
47
48
      static T& get_instance();
51
52
      ~basic_singleton();
52
53
 
53
54
    }; // basic_singleton
54
 
  } // namespace concept
 
55
  } // namespace pattern
55
56
} // namespace claw
56
57
 
57
58
#include <claw/impl/basic_singleton.tpp>