-
Notifications
You must be signed in to change notification settings - Fork 0
/
.template.hpp
executable file
·56 lines (37 loc) · 1.25 KB
/
.template.hpp
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
//-----------------------------------------------------------------------------
#ifndef VBG_${ROOT}_hpp__
#define VBG_${ROOT}_hpp__
//-----------------------------------------------------------------------------
#include <iostream>
#include <memory>
#include <vector>
//-----------------------------------------------------------------------------
namespace vbg
{
class $root
{
public:
typedef std::shared_ptr<$root> Ptr;
typedef std::vector<${root}::Ptr> Vector;
public:
// Constructor and destructors
$root();
~$root(); // make destructors virtual when necessary only
// Private data access functions
// General public Functions
// Public operators
// Public friend functions and classes
friend std::ostream& operator<<(std::ostream& out, const $root& obj);
public:
//$root(const $root& obj) = delete; // or default
//$root& operator=(const $root& rhs) = delete;
//$root($root&& obj) = delete;
//$root& operator=($root&& rhs) = delete;
private:
//int operator==(const $root& rhs) const;
//int operator<(const $root& rhs) const;
private:
};
} // namespace vbg
//-----------------------------------------------------------------------------
#endif // vbg_${ROOT}_H__