Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/handle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include "handlegraph/util.hpp"

#include <vector>
#include <limits>

/** \file handle.cpp
* Implement handle graph utility methods, oprtators, and default implementations.
Expand Down Expand Up @@ -123,6 +124,10 @@ bool operator!=(const occurrence_handle_t& a, const occurrence_handle_t& b) {
return !(a == b);
}

/// Define the null handle.
const handle_t null_handle = as_handle(std::numeric_limits<uint64_t>::max());


}


3 changes: 3 additions & 0 deletions src/include/handlegraph/types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ bool operator==(const occurrence_handle_t& a, const occurrence_handle_t& b);
/// Define inequality on occurrence handles
bool operator!=(const occurrence_handle_t& a, const occurrence_handle_t& b);

/// represents a null handle
extern const handle_t null_handle;

}

// Hashes need to be in the std namespace
Expand Down