april  1.0.0
...
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
april::DNAView Class Reference

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 DNAsource (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

Detailed Description

Provides access to an ID tagged portion of the DNA.

Constructor & Destructor Documentation

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.

Parameters
dnawhere to look
idthe ID to search

The documentation for this class was generated from the following files: