ESyS-Particle
2.2
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
handle.h
Go to the documentation of this file.
1
2
// //
3
// Copyright (c) 2003-2013 by The University of Queensland //
4
// Earth Systems Science Computational Centre (ESSCC) //
5
// http://www.uq.edu.au/esscc //
6
// //
7
// Primary Business: Brisbane, Queensland, Australia //
8
// Licensed under the Open Software License version 3.0 //
9
// http://www.opensource.org/licenses/osl-3.0.php //
10
// //
12
13
#ifndef __HANDLE_H
14
#define __HANDLE_H
15
16
//--- project includes ---
17
#include "
handle_exception.h
"
18
25
template
<
typename
T>
26
class
T_Handle
27
{
28
private
:
29
T*
m_rep
;
30
int
*
m_count
;
31
32
public
:
33
T_Handle
(T*);
34
T_Handle
(
const
T_Handle
&);
35
~T_Handle
();
36
37
T_Handle
&
operator=
(
const
T_Handle
&);
38
inline
T*
operator->
() {
return
m_rep
;};
39
inline
T&
operator*
(){
return
*
m_rep
;};
40
//void destroy();
41
};
42
43
#include "
handle.hpp
"
44
45
#endif // __HANDLE_H
ntable
src
handle.h
Generated on Mon May 6 2013 23:26:30 for ESyS-Particle by
1.8.3.1