|
Gamgee
You miserable little maggot. I'll stove your head in!
|
Utility class to handle the memory management of the sam record object for a read base qualities. More...
#include <base_quals.h>
Public Member Functions | |
| BaseQuals (const std::shared_ptr< bam1_t > &sam_record) | |
| creates a BaseQuals object that points to htslib memory already allocated More... | |
| BaseQuals (const BaseQuals &other) | |
| creates a deep copy of a BaseQuals object More... | |
| BaseQuals (BaseQuals &&other)=default | |
| BaseQuals & | operator= (const BaseQuals &other) |
| creates a deep copy of a BaseQuals object More... | |
| BaseQuals & | operator= (BaseQuals &&other)=default |
| ~BaseQuals ()=default | |
| Default destruction is sufficient, since our shared_ptr will handle deallocation. More... | |
| uint8_t | operator[] (const uint32_t index) const |
| use freely as you would an array. More... | |
| uint8_t & | operator[] (const uint32_t index) |
| use freely as you would an array More... | |
| uint32_t | size () const |
| number of base qualities in the container More... | |
| bool | operator== (const BaseQuals &other) const |
| check for equality with another BaseQuals object More... | |
| bool | operator!= (const BaseQuals &other) const |
| check for inequality with another BaseQuals object More... | |
| std::string | to_string () const |
| produce a string representation of the base qualities in this object More... | |
Friends | |
| class | SamBuilder |
| builder needs access to the internals in order to build efficiently More... | |
Utility class to handle the memory management of the sam record object for a read base qualities.
|
explicit |
| gamgee::BaseQuals::BaseQuals | ( | const BaseQuals & | other | ) |
creates a deep copy of a BaseQuals object
|
default |
|
default |
Default destruction is sufficient, since our shared_ptr will handle deallocation.
| bool gamgee::BaseQuals::operator!= | ( | const BaseQuals & | other | ) | const |
creates a deep copy of a BaseQuals object
< shared_ptr assignment will take care of deallocating old sam record if necessary
| bool gamgee::BaseQuals::operator== | ( | const BaseQuals & | other | ) | const |
| uint8_t gamgee::BaseQuals::operator[] | ( | const uint32_t | index | ) | const |
use freely as you would an array.
access an individual base quality by index
| uint8_t & gamgee::BaseQuals::operator[] | ( | const uint32_t | index | ) |
use freely as you would an array
access and/or modify an individual base quality by index
|
inline |
number of base qualities in the container
| std::string gamgee::BaseQuals::to_string | ( | ) | const |
produce a string representation of the base qualities in this object
|
friend |
builder needs access to the internals in order to build efficiently
1.8.8