28 const Eigen::Vector3d& r) {
29 assert(this->
FindPair(&seg1, &seg2) ==
nullptr &&
30 "Critical bug: pair already exists");
43 std::vector<QMPair::data> dataVec(
size);
47 (
pairs_[i]->WriteData(dataVec[i]));
51 delete[] data.pair_type;
56 const std::vector<Segment>& segments) {
64 std::vector<QMPair::data> dataVec(table.
numRows());
std::vector< QMPair * > pairs_
QMPair * FindPair(const Segment *e1, const Segment *e2)
CptTable openTable(const std::string &name)
CptTable openTable(const std::string &name, std::size_t nRows, bool compact=false)
void write(void *buffer, const std::size_t &startIdx, const std::size_t &endIdx)
void read(void *buffer, const std::size_t &startIdx, const std::size_t &endIdx)
void ReadFromCpt(CheckpointReader &r, const std::vector< Segment > &segments)
void WriteToCpt(CheckpointWriter &w) const
QMPair & Add(const Segment &seg1, const Segment &seg2, const Eigen::Vector3d &r)
base class for all analysis tools