|
Gamgee
You miserable little maggot. I'll stove your head in!
|
Utility class to manage the memory of the cigar structure. More...
#include <cigar.h>
Public Member Functions | |
| Cigar (const std::shared_ptr< bam1_t > &sam_record) | |
| creates a Cigar object that points to htslib memory already allocated More... | |
| Cigar (const Cigar &other) | |
| creates a deep copy of a Cigar object More... | |
| Cigar (Cigar &&other) noexcept | |
| moves a Cigar object, transferring ownership of the underlying htslib memory More... | |
| Cigar & | operator= (const Cigar &other) |
| creates a deep copy of a Cigar object More... | |
| Cigar & | operator= (Cigar &&other) noexcept |
| moves a Cigar object, transferring ownership of the underlying htslib memory More... | |
| ~Cigar ()=default | |
| default destruction is sufficient, since our shared_ptr will handle deallocation More... | |
| uint32_t | operator[] (const uint32_t index) const |
| use freely as you would an array. More... | |
| uint32_t | size () const |
| number of base qualities in the container More... | |
| std::string | to_string () const |
| returns a string representation of this cigar More... | |
Static Public Member Functions | |
| static CigarOperator | cigar_op (const uint32_t cigar_element) |
| gets the operator of an individual cigar element More... | |
| static uint32_t | cigar_oplen (const uint32_t cigar_element) |
| gets the length of an individual cigar element More... | |
Utility class to manage the memory of the cigar structure.
|
explicit |
| gamgee::Cigar::Cigar | ( | const Cigar & | other | ) |
creates a deep copy of a Cigar object
|
noexcept |
moves a Cigar object, transferring ownership of the underlying htslib memory
|
default |
default destruction is sufficient, since our shared_ptr will handle deallocation
|
inlinestatic |
gets the operator of an individual cigar element
|
inlinestatic |
gets the length of an individual cigar element
creates a deep copy of a Cigar object
< check for self assignment
< shared_ptr assignment will take care of deallocating old sam record if necessary
moves a Cigar object, transferring ownership of the underlying htslib memory
| uint32_t gamgee::Cigar::operator[] | ( | const uint32_t | index | ) | const |
use freely as you would an array.
access an individual cigar element by index
|
inline |
number of base qualities in the container
| string gamgee::Cigar::to_string | ( | ) | const |
returns a string representation of this cigar
1.8.7