cawlign 0.0.1
Codon-aware pairwise sequence alignment
Loading...
Searching...
No Matches
VectorFP Class Reference

Public Member Functions

 VectorFP (void)
 
 ~VectorFP (void)
 
void appendValue (const cawlign_fp)
 
void appendValues (const cawlign_fp *, long)
 
void storeValue (const cawlign_fp, const unsigned long)
 
cawlign_fp value (const long idx)
 
unsigned long length (void) const
 
const cawlign_fp * values (void)
 
cawlign_fp * rvalues (void)
 

Static Public Attributes

static long vDefaultLength = 16
 
static long vDefaultBoost = 16
 

Constructor & Destructor Documentation

◆ VectorFP()

VectorFP::VectorFP ( void )

Initializes an empty vector of floating-point values with a default initial capacity.

◆ ~VectorFP()

VectorFP::~VectorFP ( void )

Frees the memory allocated for the floating-point vector data.

Member Function Documentation

◆ appendValue()

void VectorFP::appendValue ( const cawlign_fp l)

Appends a floating-point value to the VectorFP.

Adds a floating-point value to the end of the vector, growing the vector if needed.

Parameters
lThe floating-point value to append.

◆ appendValues()

void VectorFP::appendValues ( const cawlign_fp * l,
long N )

Appends multiple floating-point values to the VectorFP.

Parameters
lThe array of floating-point values to append.
NThe number of values to append.

◆ storeValue()

void VectorFP::storeValue ( const cawlign_fp v,
const unsigned long l )

Stores a floating-point value at a specific index in the VectorFP.

If the index is beyond the current capacity, the vector grows to accommodate the value.

Parameters
vThe floating-point value to store.
lThe index at which to store the value.

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