-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.template.H
executable file
·58 lines (38 loc) · 1.42 KB
/
.template.H
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
//-----------------------------------------------------------------------------
#ifndef JVT_${ROOT}_H__
#define JVT_${ROOT}_H__
//-----------------------------------------------------------------------------
static const char vcsId_${root}_H[] = "${vcMagic}";
//-----------------------------------------------------------------------------
#include <iostream>
#include <jvt/BaseLib/IntrusivePtr.H>
#include <vector>
//-----------------------------------------------------------------------------
namespace jvt
{
class $root : virtual public IntrusivePtr<$root>
{
public:
typedef boost::intrusive_ptr<$root> Ptr;
typedef std::vector<${root}::Ptr> Vector;
public:
// Constructor and destructors
$root();
virtual ~$root(); // Always make destructors virtual
// Private data access functions
// General public Functions
// Public operators
// Public friend functions and classes
friend std::ostream& operator<<(std::ostream& out, const $root& obj);
private:
// The copy constructor and assignment operator are declared private to
// keep the compiler from generating them.
$root(const $root& obj);
$root& operator=(const $root& rhs);
int operator==(const $root& rhs) const;
int operator<(const $root& rhs) const;
private:
};
} // namespace jvt
//-----------------------------------------------------------------------------
#endif // JVT_${ROOT}_H__