The Pedigree Project  0.1
Classes | Public Member Functions | Private Attributes | Friends | List of all members
Cord Class Reference
+ Collaboration diagram for Cord:

Classes

class  CordIterator
 
struct  CordSegment
 

Public Member Functions

 Cord (const Cord &other)
 
Cordoperator= (const Cord &s)
 
bool operator== (const char *s) const
 
bool operator== (const Cord &s) const
 
bool operator== (const String &s) const
 
void reserve (size_t segments)
 
void assign (const Cord &other)
 
void clear ()
 
size_t length () const
 
String toString () const
 
char operator[] (size_t index) const
 
void append (const char *s, size_t len=0)
 
void prepend (const char *s, size_t len=0)
 
CordIterator begin () const
 
CordIterator end () const
 

Private Attributes

Vector< CordSegmentm_Segments
 
size_t m_Length = 0
 

Friends

class CordIterator
 

Detailed Description

Definition at line 33 of file Cord.h.

Member Function Documentation

char Cord::operator[] ( size_t  index) const
Todo:
should this be more crashy?

Definition at line 89 of file Cord.cc.

void Cord::reserve ( size_t  segments)

Pre-reserve the given number of segments. Useful if the segment count is known in advance to avoid vector resizes.

Definition at line 44 of file Cord.cc.


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