Logo Search packages:      
Sourcecode: sam2p version File versions

SimBuffer::Appendable Class Reference

#include <gensi.hpp>

Inheritance diagram for SimBuffer::Appendable:

GenBuffer GenBuffer::Writable SimBuffer::Linked SimBuffer::B

List of all members.


Detailed Description

Abstract class. Example of virtual inheritance, needed because of SimBuffer::B.

Definition at line 331 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 first_sub (Sub &sub) const =0
Writableformat (char const *fmt,...)
Writableformat (slen_t n, char const *fmt,...)
virtual slen_t getLength () const =0
bool isEmpty () const
virtual void next_sub (Sub &sub) const =0
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)
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)=0
virtual char * vi_mkend (slen_t)=0
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)

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)

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

Generated by  Doxygen 1.6.0   Back to index