Logo Search packages:      
Sourcecode: sam2p version File versions

SimBuffer::Linked Class Reference

#include <gensi.hpp>

Inheritance diagram for SimBuffer::Linked:

SimBuffer::Appendable GenBuffer GenBuffer::Writable

List of all members.


Detailed Description

A one-way linked list of flat strings. Quickest for long memory appends. Does memory management.

Definition at line 351 of file gensi.hpp.


Public Types

typedef void(* block_char_t )(char c, void *data)
typedef void(* block_sub_t )(char const *beg, slen_t len, void *data)

Public Member Functions

int cmp (char const *s2) const
virtual int cmp (char const *s2, slen_t len) const
virtual int cmp (GenBuffer const &s2) const
virtual slen_t copyRange (char *to, slen_t cfrom, slen_t clen) const
void each_char (block_char_t block, void *data) const
virtual void each_sub (block_sub_t block, void *data) const =0
virtual void each_sub (block_sub_t block, void *data) const
virtual void first_sub (Sub &sub) const
Writableformat (char const *fmt,...)
Writableformat (slen_t n, char const *fmt,...)
virtual slen_t getLength () const
bool isEmpty () const
 Linked (char const *)
 Linked (GenBuffer const &other)
virtual void next_sub (Sub &sub) const
virtual operator void * () const
virtual bool operator! () const
Writableoperator<< (bool b)
Writableoperator<< (unsigned long n)
Writableoperator<< (unsigned int n)
Writableoperator<< (unsigned short n)
Writableoperator<< (signed long n)
Writableoperator<< (signed int n)
Writableoperator<< (signed short n)
Writableoperator<< (void const *)
Writableoperator<< (char const *)
Writableoperator<< (char c)
Writableoperator<< (GenBuffer const &b)
Linkedoperator= (Linked const &other)
Linkedoperator= (GenBuffer const &other)
void prepend (char const *, slen_t)
bool toBool (bool &dst)
bool toCString (char *&dst)
bool toInteger (signed int &i)
bool toInteger (unsigned int &i)
bool toInteger (signed short &i)
bool toInteger (unsigned short &i)
bool toInteger (signed long &dst)
bool toInteger (unsigned long &dst)
virtual Writablevformat (char const *fmt, va_list ap)
virtual Writablevformat (slen_t n, char const *fmt, va_list ap)
virtual char * vi_mkbeg (slen_t len)
virtual char * vi_mkend (slen_t len)
virtual void vi_putcc (char c)
virtual void vi_write (char const *, slen_t)
void write_num (unsigned long n, unsigned zdigits)
void write_num (unsigned long n)
void write_num (signed long n)

Static Public Member Functions

static unsigned hexc2n (char c)
static int nocase_memcmp (char const *a, char const *s, slen_t slen)
static bool nocase_strbegins (char const *a, char const *with)
static int nocase_strcmp (char const *a, char const *b)
static bool parseBool (char const *s, slen_t slen)
static bool strbegins (char const *a, char const *with)
static void tolower_memcpy (char *dst, char const *s, slen_t slen)
static void toupper_memcpy (char *dst, char const *s, slen_t slen)

Public Attributes

Node * first
Node * last

Static Protected Member Functions

static void iter_char_sub (char const *beg, slen_t len, void *data)
static void iter_write_sub (char const *beg, slen_t len, void *data)

Friends

bool operator!= (const GenBuffer &s1, const char *s2)
bool operator!= (const char *s1, const GenBuffer &s2)
bool operator!= (const GenBuffer &s1, const GenBuffer &s2)
bool operator< (const GenBuffer &s1, const char *s2)
bool operator< (const char *s1, const GenBuffer &s2)
bool operator< (const GenBuffer &s1, const GenBuffer &s2)
bool operator<= (const GenBuffer &s1, const char *s2)
bool operator<= (const char *s1, const GenBuffer &s2)
bool operator<= (const GenBuffer &s1, const GenBuffer &s2)
bool operator== (const GenBuffer &s1, const char *s2)
bool operator== (const char *s1, const GenBuffer &s2)
bool operator== (const GenBuffer &s1, const GenBuffer &s2)
bool operator> (const GenBuffer &s1, const char *s2)
bool operator> (const char *s1, const GenBuffer &s2)
bool operator> (const GenBuffer &s1, const GenBuffer &s2)
bool operator>= (const GenBuffer &s1, const char *s2)
bool operator>= (const char *s1, const GenBuffer &s2)
bool operator>= (const GenBuffer &s1, const GenBuffer &s2)

Classes

struct  Node

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

Generated by  Doxygen 1.6.0   Back to index