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

« back to all changes in this revision

Viewing changes to claw/impl/basic_singleton.tpp

  • 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
24
24
*/
25
25
/**
26
26
 * \file basic_singleton.tpp
27
 
 * \brief Implementation of the claw::concept::basic_singleton class.
 
27
 * \brief Implementation of the claw::pattern::basic_singleton class.
28
28
 * \author Julien Jorge
29
29
 */
30
30
 
33
33
 * \brief Get the instance of the singleton.
34
34
 */
35
35
template<class T>
36
 
T& claw::concept::basic_singleton<T>::get_instance()
 
36
T& claw::pattern::basic_singleton<T>::get_instance()
37
37
{
38
38
  static T single_instance;
39
39
 
45
45
 * \brief Constructor.
46
46
 */
47
47
template<class T>
48
 
claw::concept::basic_singleton<T>::basic_singleton()
 
48
claw::pattern::basic_singleton<T>::basic_singleton()
49
49
{
50
50
 
51
51
} // basic_singleton::basic_singleton()
55
55
 * \brief Destructor.
56
56
 */
57
57
template<class T>
58
 
claw::concept::basic_singleton<T>::~basic_singleton()
 
58
claw::pattern::basic_singleton<T>::~basic_singleton()
59
59
{
60
60
 
61
61
} // basic_singleton::~basic_singleton()