Logo Search packages:      
Sourcecode: sam2p version File versions

SimBuffer::Fixed Class Reference

#include <gensi.hpp>

Inheritance diagram for SimBuffer::Fixed:

SimBuffer::Flat GenBuffer

List of all members.


Detailed Description

A flat buffer of fixed length. Not particularly useful, try SimBuffer::B instead.

Definition at line 310 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

char const * begin_ () const
int cmp (char const *s2) const
virtual int cmp (GenBuffer const &s2) const
virtual int cmp (char const *s2, slen_t len) const
virtual int cmp (Flat 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
char const * end_ () const
slen_t findFirst (char const *s, slen_t slen) const
slen_t findFirst (char const c) const
slen_t findLast (char const c) const
virtual void first_sub (Sub &sub) const
 Fixed (slen_t len_)
virtual char getAt0 (slen_t idx, char fallback='\0')
char const * getCString () const
virtual slen_t getLength () const
bool isEmpty () const
virtual void next_sub (Sub &sub) const
virtual operator void * () const
virtual bool operator! () const
char const * operator() () const
char const & operator[] (slendiff_t idx) const
bool toBool (bool &dst)
void toChar (char &ret) const
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)

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)

Protected Attributes

const char * beg
slen_t len

Private Member Functions

Fixedoperator= (Fixed const &)

Friends

class B
bool operator!= (const GenBuffer &s1, const char *s2)
bool operator!= (const char *s1, const GenBuffer &s2)
bool operator!= (const GenBuffer &s1, const GenBuffer &s2)
B operator+ (const Flat &s1, const char *s2)
B operator+ (const char *s1, const Flat &s2)
B operator+ (const Flat &s1, const Flat &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 file:

Generated by  Doxygen 1.6.0   Back to index