The Pedigree Project 0.1
Classes | Public Member Functions | Private Attributes | Friends | List of all members
StaticCord< N > Class Template Reference

#include <StaticCord.h>

+ Collaboration diagram for StaticCord< N >:

Classes

class  CordIterator
 
struct  CordSegment
 
class  CordSegmentIterator
 

Public Member Functions

 StaticCord (const StaticCord &other)
 
StaticCord & operator= (const StaticCord &s)
 
void assign (const StaticCord &other)
 
void clear ()
 
size_t length () const
 
char operator[] (size_t index) const
 
String toString () const
 
void append (const char *s, size_t len=0)
 
CordIterator begin () const
 
CordIterator end () const
 
CordSegmentIterator segbegin () const
 
CordSegmentIterator segend () const
 

Private Attributes

CordSegment m_Segments [N]
 
size_t m_Length = 0
 
size_t m_NumSegments = 0
 

Friends

class CordIterator
 

Detailed Description

template<unsigned int N>
class StaticCord< N >

StaticCord is a variant of Cord which avoids allocating memory at the expense of features.

Definition at line 38 of file StaticCord.h.

Constructor & Destructor Documentation

◆ StaticCord()

template<unsigned int N>
StaticCord< N >::StaticCord ( const StaticCord< N > &  other)
inline

Definition at line 158 of file StaticCord.h.

Member Function Documentation

◆ append()

template<unsigned int N>
void StaticCord< N >::append ( const char *  s,
size_t  len = 0 
)
inline

Definition at line 211 of file StaticCord.h.

◆ assign()

template<unsigned int N>
void StaticCord< N >::assign ( const StaticCord< N > &  other)
inline

Definition at line 168 of file StaticCord.h.

◆ begin()

template<unsigned int N>
CordIterator StaticCord< N >::begin ( ) const
inline

Definition at line 225 of file StaticCord.h.

◆ clear()

template<unsigned int N>
void StaticCord< N >::clear ( )
inline

Definition at line 174 of file StaticCord.h.

◆ end()

template<unsigned int N>
CordIterator StaticCord< N >::end ( ) const
inline

Definition at line 229 of file StaticCord.h.

◆ length()

template<unsigned int N>
size_t StaticCord< N >::length ( ) const
inline

Definition at line 179 of file StaticCord.h.

◆ operator=()

template<unsigned int N>
StaticCord & StaticCord< N >::operator= ( const StaticCord< N > &  s)
inline

Definition at line 163 of file StaticCord.h.

◆ operator[]()

template<unsigned int N>
char StaticCord< N >::operator[] ( size_t  index) const
inline

Definition at line 183 of file StaticCord.h.

◆ segbegin()

template<unsigned int N>
CordSegmentIterator StaticCord< N >::segbegin ( ) const
inline

Definition at line 233 of file StaticCord.h.

◆ segend()

template<unsigned int N>
CordSegmentIterator StaticCord< N >::segend ( ) const
inline

Definition at line 237 of file StaticCord.h.

◆ toString()

template<unsigned int N>
String StaticCord< N >::toString ( ) const
inline

Definition at line 196 of file StaticCord.h.

Friends And Related Symbol Documentation

◆ CordIterator

template<unsigned int N>
friend class CordIterator
friend

Definition at line 39 of file StaticCord.h.

Member Data Documentation

◆ m_Length

template<unsigned int N>
size_t StaticCord< N >::m_Length = 0
private

Definition at line 251 of file StaticCord.h.

◆ m_NumSegments

template<unsigned int N>
size_t StaticCord< N >::m_NumSegments = 0
private

Definition at line 252 of file StaticCord.h.

◆ m_Segments

template<unsigned int N>
CordSegment StaticCord< N >::m_Segments[N]
private

Definition at line 250 of file StaticCord.h.


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