BranchRecord.h 453 Bytes
Newer Older
1 2
#ifndef ASSEMBLY_BRANCHRECORD_H
#define ASSEMBLY_BRANCHRECORD_H 1
Charles Plessy's avatar
Charles Plessy committed
3

4 5 6
/** Generate the sequence of this contig. */
template <typename It, typename OutIt>
void branchRecordToStr(It it, It last, OutIt out)
Charles Plessy's avatar
Charles Plessy committed
7
{
8 9 10 11 12 13 14 15
	assert(it < last);
	std::string k0 = it->first.str();
	std::copy(k0.begin(), k0.end(), out);
	out += k0.length();
	++it;
	for (; it != last; ++it) {
		*out = it->first.getLastBaseChar();
		++out;
Charles Plessy's avatar
Charles Plessy committed
16 17 18
	}
}

19 20
#include "Assembly/BranchRecordBase.h"

Charles Plessy's avatar
Charles Plessy committed
21
#endif