Provides access to an ID tagged portion of the DNA. More...
#include <dnaview.h>
Public Member Functions | |
DNAView (const DNA *dna, ID id) | |
constructs a view based on provided ID | |
~DNAView (void) | |
destructor; | |
bool | isValid (void) const |
tell if this structure is valid or not | |
qreal | value (int i) const |
get the value at index i | |
ID | identificator (void) const |
the unique ID of the component | |
const DNA * | source (void) const |
the source DNA |
Protected Member Functions | |
int | begin (void) const |
index of the first value | |
int | count (void) const |
number of values | |
void | setIdentificator (ID id) |
set the unique ID of the component | |
void | setBegin (int val) |
set index of the first value | |
void | setCount (int val) |
set number of values | |
void | setDNA (const DNA *d) |
set the source DNA |
Friends | |
class | DNA |
Provides access to an ID tagged portion of the DNA.
DNAView::DNAView | ( | const DNA * | dna, |
ID | id | ||
) |
constructs a view based on provided ID
If the ID is not present in the DNA structure the view will be invalid.
dna | where to look |
id | the ID to search |