Program Listing for File edge.hpp¶
↰ Return to documentation for file (fwdpp/ts/edge.hpp)
//Copied from fwdpy11_arg_example.
//Author: KRT
//License: GPL3+
#ifndef FWDPP_TS_EDGE_HPP
#define FWDPP_TS_EDGE_HPP
#include <tuple>
#include "definitions.hpp"
namespace fwdpp
{
namespace ts
{
struct edge
{
double left;
double right;
table_index_t parent;
table_index_t child;
};
inline bool
operator==(const edge& a, const edge& b)
{
return std::tie(a.parent, a.child, a.left, a.right)
== std::tie(b.parent, b.child, b.left, b.right);
}
} // namespace ts
} // namespace fwdpp
#endif