File: CmpAlignmentImpl.hpp

package info (click to toggle)
pbseqlib 0~20161219-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 5,924 kB
  • ctags: 5,123
  • sloc: cpp: 82,727; makefile: 305; python: 239; sh: 8
file content (6 lines) | stat: -rw-r--r-- 240 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6

template<typename T_Field>
void CmpAlignment::StoreField(std::string fieldName, T_Field* fieldValues, DSLength length) {
    fields[fieldName].resize(length);
    memcpy(&fields[fieldName][0], fieldValues, length * sizeof(T_Field));
}