/[escript]/trunk/escript/src/Pointers.h
ViewVC logotype

Contents of /trunk/escript/src/Pointers.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2005 - (show annotations)
Mon Nov 10 01:21:39 2008 UTC (10 years, 10 months ago) by jfenwick
File MIME type: text/plain
File size: 959 byte(s)
Bringing all changes across from schroedinger.
(Note this does not mean development is done, just that it will happen
on the trunk for now).
If anyone notices any problems please contact me.


1
2 /*******************************************************
3 *
4 * Copyright (c) 2003-2008 by University of Queensland
5 * Earth Systems Science Computational Center (ESSCC)
6 * http://www.uq.edu.au/esscc
7 *
8 * Primary Business: Queensland, Australia
9 * Licensed under the Open Software License version 3.0
10 * http://www.opensource.org/licenses/osl-3.0.php
11 *
12 *******************************************************/
13
14 #ifndef POINTERS_H_2008
15 #define POINTERS_H_2008
16
17 /** \file Pointers.h
18 \brief Typedefs and macros for reference counted storage.
19 */
20
21 // The idea is that we should be able to easily switch between shared_ptr and intrusive_ptr if required
22
23 // Where to find the base class which supplies refcounting
24 #define REFCOUNT_BASE_FILE <boost/enable_shared_from_this.hpp>
25 // The name of the class to extend
26 #define REFCOUNT_BASE_CLASS(x) boost::enable_shared_from_this<x>
27
28
29 #define POINTER_WRAPPER_CLASS(x) boost::shared_ptr<x>
30
31
32 #include REFCOUNT_BASE_FILE
33
34
35 #endif

  ViewVC Help
Powered by ViewVC 1.1.26