Skip to content

Commit 0483539

Browse files
Removes custom constructors in graph.h.
Former-commit-id: 6b770a8
1 parent 12fd2eb commit 0483539

File tree

1 file changed

+0
-47
lines changed

1 file changed

+0
-47
lines changed

src/graph.h

Lines changed: 0 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -10,53 +10,6 @@
1010

1111
class Graph {
1212
public:
13-
// constructors
14-
// default constructor
15-
Graph()
16-
{
17-
cout << "Graph default constructor" << endl;
18-
};
19-
20-
// copy
21-
Graph(const Graph & rhs)
22-
{
23-
std::cout << "Graph copy constructor" << std::endl;
24-
_GraphVector = rhs._GraphVector;
25-
};
26-
// copy operator
27-
Graph & operator = (const Graph & rhs)
28-
{
29-
std::cout << "Graph copy operator" << std::endl;
30-
if(this != &rhs)
31-
{
32-
_GraphVector = rhs._GraphVector;
33-
}
34-
return *this;
35-
};
36-
37-
// move
38-
Graph(const Graph && rhs) noexcept
39-
{
40-
std::cout << "Graph move constructor" << std::endl;
41-
_GraphVector = std::move(rhs._GraphVector);
42-
};
43-
// move operator
44-
Graph & operator = (const Graph && rhs) noexcept
45-
{
46-
std::cout << "Graph move operator" << std::endl;
47-
if(this != &rhs)
48-
{
49-
_GraphVector = std::move(rhs._GraphVector);
50-
}
51-
return *this;
52-
};
53-
54-
// destructor
55-
~Graph()
56-
{
57-
std::cout << "Graph destructor" << std::endl;
58-
};
59-
6013
// build new bifrost graph and index
6114
GraphTuple build (const std::string& infile1,
6215
const int kmer,

0 commit comments

Comments
 (0)