Skip to content

Commit

Permalink
Removes custom constructors in graph.h.
Browse files Browse the repository at this point in the history
Former-commit-id: 6b770a8
  • Loading branch information
samhorsfield96 committed Jun 23, 2021
1 parent 12fd2eb commit 0483539
Showing 1 changed file with 0 additions and 47 deletions.
47 changes: 0 additions & 47 deletions src/graph.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,53 +10,6 @@

class Graph {
public:
// constructors
// default constructor
Graph()
{
cout << "Graph default constructor" << endl;
};

// copy
Graph(const Graph & rhs)
{
std::cout << "Graph copy constructor" << std::endl;
_GraphVector = rhs._GraphVector;
};
// copy operator
Graph & operator = (const Graph & rhs)
{
std::cout << "Graph copy operator" << std::endl;
if(this != &rhs)
{
_GraphVector = rhs._GraphVector;
}
return *this;
};

// move
Graph(const Graph && rhs) noexcept
{
std::cout << "Graph move constructor" << std::endl;
_GraphVector = std::move(rhs._GraphVector);
};
// move operator
Graph & operator = (const Graph && rhs) noexcept
{
std::cout << "Graph move operator" << std::endl;
if(this != &rhs)
{
_GraphVector = std::move(rhs._GraphVector);
}
return *this;
};

// destructor
~Graph()
{
std::cout << "Graph destructor" << std::endl;
};

// build new bifrost graph and index
GraphTuple build (const std::string& infile1,
const int kmer,
Expand Down

0 comments on commit 0483539

Please sign in to comment.