1#ifndef __STRINGBUFFER__
2#define __STRINGBUFFER__
15 unsigned long sLength, saLength;
64 unsigned long length(
void)
const {
return sLength; }
83 char setChar(
const long i,
const char c) {
95 char getChar(
const long i)
const {
return sData[i]; }
107 static long sbDefaultLength, sbDefaultBoost;
120 unsigned long vLength, vaLength;
153 void storeValue(
const cawlign_fp,
const unsigned long);
160 cawlign_fp
value(
const long idx) {
return vData[idx]; }
166 unsigned long length(
void)
const {
return vLength; }
172 const cawlign_fp *
values (
void) {
return vData;}
180 static long vDefaultLength, vDefaultBoost;
193 unsigned long vLength, vaLength;
236 void remove(
const unsigned long);
243 void storeValue(
const long,
const unsigned long);
268 long value(
const long idx)
const;
274 unsigned long length(
void)
const {
return vLength; }
276 const long * rvalues (
void)
const {
return vData;}
278 static long vDefaultLength, vDefaultBoost;
A simple string buffer class that allows for dynamic resizing.
Definition stringBuffer.h:12
void swap(StringBuffer &)
Swap the contents of this string buffer with another.
Definition stringBuffer.cc:44
char setChar(const long i, const char c)
Set a character at a specific index.
Definition stringBuffer.h:83
char * getString(void) const
Get the underlying C string.
Definition stringBuffer.h:34
void appendChar(const char)
Append a character to the string buffer.
Definition stringBuffer.cc:84
char getChar(const long i) const
Get a character at a specific index.
Definition stringBuffer.h:95
void reset_length(unsigned long newL)
Reset the length of the string buffer.
Definition stringBuffer.h:70
StringBuffer(void)
Construct a new String Buffer object.
Definition stringBuffer.cc:27
void detach(void)
Detach the underlying C string from the string buffer.
Definition stringBuffer.h:105
void resetString(void)
Reset the string buffer to an empty state.
Definition stringBuffer.cc:136
void flip(void)
Flip the string buffer in place.
Definition stringBuffer.cc:58
void appendBuffer(const char *, const long=-1)
Append a C string to the string buffer.
Definition stringBuffer.cc:106
unsigned long length(void) const
Get the length of the string buffer.
Definition stringBuffer.h:64
~StringBuffer(void)
Destroy the String Buffer object.
Definition stringBuffer.cc:74
A simple vector class for floating point numbers that allows for dynamic resizing.
Definition stringBuffer.h:116
cawlign_fp value(const long idx)
Get a value at a specific index.
Definition stringBuffer.h:160
unsigned long length(void) const
Get the length of the vector.
Definition stringBuffer.h:166
const cawlign_fp * values(void)
Get the underlying C array.
Definition stringBuffer.h:172
~VectorFP(void)
Destroy the VectorFP object.
Definition stringBuffer.cc:377
void storeValue(const cawlign_fp, const unsigned long)
Store a value at a specific index.
Definition stringBuffer.cc:440
VectorFP(void)
Construct a new VectorFP object.
Definition stringBuffer.cc:365
cawlign_fp * rvalues(void)
Get the underlying C array.
Definition stringBuffer.h:178
void appendValue(const cawlign_fp)
Append a value to the vector.
Definition stringBuffer.cc:389
void appendValues(const cawlign_fp *, long)
Append multiple values to the vector.
Definition stringBuffer.cc:410
void appendVector(const Vector &)
Append another vector to this vector.
Definition stringBuffer.cc:211
void storeVector(const Vector &, const unsigned long)
Store another vector at a specific index.
Definition stringBuffer.cc:266
void storeValue(const long, const unsigned long)
Store a value at a specific index.
Definition stringBuffer.cc:227
long extractMin(VectorFP &)
Extract the minimum value from a VectorFP object.
Definition stringBuffer.cc:299
void swap(Vector &)
Swap the contents of this vector with another.
Definition stringBuffer.cc:163
void appendValue(const long)
Append a value to the vector.
Definition stringBuffer.cc:191
void resetVector(void)
Reset the vector to an empty state.
Definition stringBuffer.cc:357
unsigned long length(void) const
Get the length of the vector.
Definition stringBuffer.h:274
Vector(void)
Construct a new Vector object.
Definition stringBuffer.cc:147
~Vector(void)
Destroy the Vector object.
Definition stringBuffer.cc:177
long value(const long idx) const
Get a value at a specific index.
Definition stringBuffer.cc:249
void remove(const unsigned long)
Remove a value at a specific index.
Definition stringBuffer.cc:281
void sort(void)
Sort the vector in place.
Definition stringBuffer.cc:345