using namespace BamTools::Internal;
using namespace std;
+// ctor
SamHeader::SamHeader(const string& headerText)
: Version("")
, SortOrder("")
parser.Parse(headerText);
}
+// copy ctor
+SamHeader::SamHeader(const SamHeader& other)
+ : Version(other.Version)
+ , SortOrder(other.SortOrder)
+ , GroupOrder(other.GroupOrder)
+ , Sequences(other.Sequences)
+ , ReadGroups(other.ReadGroups)
+ , ProgramName(other.ProgramName)
+ , ProgramVersion(other.ProgramVersion)
+ , ProgramCommandLine(other.ProgramCommandLine)
+{ }
+
+// dtor
SamHeader::~SamHeader(void) {
Clear();
}
// ctor & dtor
public:
explicit SamHeader(const std::string& headerText = "");
+ explicit SamHeader(const SamHeader& other);
~SamHeader(void);
// query/modify entire SamHeader at once
, SequencingTechnology("")
{ }
+// copy ctor
+SamReadGroup::SamReadGroup(const SamReadGroup& other)
+ : ID(other.ID)
+ , Sample(other.Sample)
+ , Library(other.Library)
+ , Description(other.Description)
+ , PlatformUnit(other.PlatformUnit)
+ , PredictedInsertSize(other.PredictedInsertSize)
+ , SequencingCenter(other.SequencingCenter)
+ , ProductionDate(other.ProductionDate)
+ , SequencingTechnology(other.SequencingTechnology)
+{ }
+
// dtor
SamReadGroup::~SamReadGroup(void) {
Clear();
public:
SamReadGroup(void);
SamReadGroup(const std::string& id);
+ explicit SamReadGroup(const SamReadGroup& other);
~SamReadGroup(void);
// public methods
// ctor
SamReadGroupDictionary::SamReadGroupDictionary(void) { }
+// copy ctor
+SamReadGroupDictionary::SamReadGroupDictionary(const SamReadGroupDictionary& other)
+ : m_data(other.m_data)
+{ }
+
// dtor
SamReadGroupDictionary::~SamReadGroupDictionary(void) {
m_data.clear();
// ctor & dtor
public:
SamReadGroupDictionary(void);
+ explicit SamReadGroupDictionary(const SamReadGroupDictionary& other);
~SamReadGroupDictionary(void);
// query/modify read group data
, Species("")
{ }
+// copy ctor
+SamSequence::SamSequence(const SamSequence& other)
+ : Name(other.Name)
+ , Length(other.Length)
+ , AssemblyID(other.AssemblyID)
+ , Checksum(other.Checksum)
+ , URI(other.URI)
+ , Species(other.Species)
+{ }
+
// dtor
SamSequence::~SamSequence(void) {
Clear();
// ctor & dtor
public:
SamSequence(const std::string& name = "");
+ explicit SamSequence(const SamSequence& other);
~SamSequence(void);
// public methods
+// ***************************************************************************
+// SamSequenceDictionary.cpp (c) 2010 Derek Barnett
+// Marth Lab, Department of Biology, Boston College
+// All rights reserved.
+// ---------------------------------------------------------------------------
+// Last modified: 23 December 2010 (DB)
+// ---------------------------------------------------------------------------
+// Provides container operations for collection of sequence entries
+// *************************************************************************
+
#include <api/SamSequenceDictionary.h>
using namespace BamTools;
// ctor
SamSequenceDictionary::SamSequenceDictionary(void) { }
+// copy ctor
+SamSequenceDictionary::SamSequenceDictionary(const SamSequenceDictionary& other)
+ : m_data(other.m_data)
+{ }
+
// dtor
SamSequenceDictionary::~SamSequenceDictionary(void) {
m_data.clear();
// ctor & dtor
public:
SamSequenceDictionary(void);
+ explicit SamSequenceDictionary(const SamSequenceDictionary& other);
~SamSequenceDictionary(void);
// query/modify sequence data