Skip to content

Commit

Permalink
Make progcontainer a child class
Browse files Browse the repository at this point in the history
  • Loading branch information
bkille committed Jul 10, 2023
1 parent 0ce0c7d commit b440e04
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/map/include/base_types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -225,12 +225,9 @@ namespace skch
, seqName(id) { }
};

struct InputSeqProgContainer
struct InputSeqProgContainer : InputSeqContainer
{
seqno_t seqCounter; //sequence counter
offset_t len; //sequence length
std::string seq; //sequence string
std::string seqName; //sequence id
using InputSeqContainer::InputSeqContainer;
progress_meter::ProgressMeter& progress; //progress meter (shared)


Expand All @@ -241,10 +238,7 @@ namespace skch
* @param[in] len length of sequence
*/
InputSeqProgContainer(const std::string& s, const std::string& id, seqno_t seqcount, progress_meter::ProgressMeter& pm)
: seqCounter(seqcount)
, len(s.length())
, seq(s)
, seqName(id)
: InputSeqContainer(s, id, seqcount)
, progress(pm) { }
};

Expand Down

0 comments on commit b440e04

Please sign in to comment.