class Itk::Buffer: public SubString

String Buffer for repeated I/O purpose.

継承:


public メンバ
[more]SString original
original buffer area

public メンバ関数
[more]Bool alloc(const UInt l, Bool forcep = True)
allocate specifiled size l.
[more]void clear()
clear and rewind the buffer.
[more]void rewindRead()
rewind only read pointer
[more]void rewindWrite()
rewind only write pointer
[more]UInt size() const
get the size of the allocated area
[more]Buffer& operator=(const Buffer& src)
assign the value from the source.
[more]Buffer& set(const Buffer& src)
set the value from the src
[more]Buffer& set(const SubString& src)
set the value from the src
[more]SubString used() const
get used area as a SubString.
[more]UInt usedLength() const
get length of used area.
[more]SubString body() const
get body area as a SubString.
[more]UInt bodyLength() const
get the length of the body area.
[more]SubString rest() const
get rest area as a SubString.
[more]UInt restLength() const
get the length of the rest area.
[more]char putCharSafe(const char c)
put a character safely.
[more]istrstream* newIStrStream()
make a new istrstream for the buffer
[more]void deleteIStrStream(istrstream * istr)
destroy the istrstream developped by newIStrStream()
[more]ostrstream* newOStrStream()
make a new ostrstream for the buffer
[more]void deleteOStrStream(ostrstream * ostr)
destroy the istrstream developped by newOStrStream()
[more]void describe(ostream& o, Bool detailp = True) const
describe the buffer


継承SubString:

public メンバ
ostatic SubString null

public メンバ関数
oSubString& operator= (const SubString& s)
oSubString& operator= (char* s)
oSubString& operator= (const char * s)
oBool eq(const SubString& r) const
oBool equal(const SubString& r) const
oBool operator== (const SubString& r) const
oBool operator== (const char* ref) const
ostatic Bool less(const SubString & str0, const SubString & str1)
ostatic Bool greater(const SubString & str0, const SubString & str1)
ostatic Bool lessequal(const SubString & str0, const SubString & str1)
ostatic Bool greaterequal(const SubString & str0, const SubString & str1)
oBool operator<(const SubString & ref) const
oBool operator<=(const SubString & ref) const
oBool operator>(const SubString & ref) const
oBool operator>=(const SubString & ref) const
oBool operator<(const char* ref) const
oBool operator<=(const char* ref) const
oBool operator>(const char* ref) const
oBool operator>=(const char* ref) const
oBool isPrefixOf(const SubString& ref) const
oBool isPrefixOf(const char* const ref) const
oBool hasPrefix(const SubString& prefix) const
oBool hasPrefix(const char* const ref) const
oBool checkPopPrefix(const SubString & prefix)
oBool checkPopPrefix(const char * const prefix)
oInt index(const char c) const
oBool has(const char c) const
ovoid setNull()
oBool isNullPtr() const
oUInt length() const
ovoid setLength(const UInt l)
oUInt strlength() const
ovoid adjustLength()
oBool copy(const SubString& src, Bool allocp = False)
oBool copy(char* h, char* t, Bool allocp = False)
oBool copy(const char * h, const char * t = ITK_NULLPTR)
oSubString dup() const
ochar* strdup() const
oBool copyTo(char* dst, Int maxlen = -1) const
o operator char* () const
ovoid terminate()
oBool terminatedp() const
oBool isTerminated() const
oBool isNullStr() const
ochar& first() const
ochar& last() const
oBool isFirst(const char c) const
oBool tailp() const
oBool nullp() const
ochar popChar()
ochar getChar()
ovoid chop()
ovoid ungetChar()
ovoid ignoreChar()
oBool skipNChar(UInt n = 1)
oUInt skipWhile(const SubString & charlist)
oUInt skipUntil(const SubString & charlist)
oSubString sub(UInt length) const
oSubString sub(UInt offset, UInt length) const
oSubString popSubString(UInt length)
oSubString popSubString(UInt offset, UInt length)
oSubString shiftedSubString(UInt offset) const
ovoid pushChar(const char c)
ovoid putChar(const char c)
ovoid put(const SubString& str)
ovoid put(const char* str)
ovoid put(const char* str, UInt len)
oInt printf(const char * format, ...)
oInt printf1(const char* format)
oInt printf1(const char* format, const char * x)
oInt printf1(const char* format, Int x)
oInt printf1(const char* format, UInt x)
oInt printf1(const char* format, Flt x)
oSubString append(const SubString & rest) const
oSubString operator+ (const SubString & rest) const
oSubString operator+ (const char* rest) const
oSubString scanInCharSet(const SubString & charSet)
oSubString scanInCharSet(char * const charSet)
oBool skipInCharSet(const SubString & charSet)
oBool skipInCharSet(char * const charSet)
oSubString scanByDelimiter(const SubString & delimiter)
oSubString scanByDelimiter(char * const delimiter)
oFlt scanAsFlt()
oInt scanAsInt()
oUInt scanAsUInt()
oBool popIntVal(Int& i)
oBool popUIntVal(UInt& i)
oBool popFloatVal(Flt& v)


文書

String Buffer for repeated I/O purpose.

This class consists of original buffer area (SubString original), reader-head (char* head) and writer-head (char* tail). The pair of reader-/writer-head (head and tail) is also a SubString.

oSString original
original buffer area

oBool alloc(const UInt l, Bool forcep = True)
allocate specifiled size l.

If forcep = True, then it allocate even if the more size has been allocated for this buffer.

ovoid clear()
clear and rewind the buffer. This reset the read and write pointer to the top of the buffer.

ovoid rewindRead()
rewind only read pointer

ovoid rewindWrite()
rewind only write pointer

oUInt size() const
get the size of the allocated area

oBuffer& operator=(const Buffer& src)
assign the value from the source. (see set(const Buffer&))

oBuffer& set(const Buffer& src)
set the value from the src

oBuffer& set(const SubString& src)
set the value from the src

oSubString used() const
get used area as a SubString. The used area is from the original-head to the reader-head.

oUInt usedLength() const
get length of used area. (see used())

oSubString body() const
get body area as a SubString. The body area is from the reader-head to writer-head.

oUInt bodyLength() const
get the length of the body area. (see body()).

oSubString rest() const
get rest area as a SubString. The rest area is from the writer-head to the original-tail.

oUInt restLength() const
get the length of the rest area. (see rest()).

ochar putCharSafe(const char c)
put a character safely. If the buffer is overflow, then it allocates new wide area and copy the original to the new area, and add the character c.

oistrstream* newIStrStream()
make a new istrstream for the buffer

ovoid deleteIStrStream(istrstream * istr)
destroy the istrstream developped by newIStrStream()

oostrstream* newOStrStream()
make a new ostrstream for the buffer

ovoid deleteOStrStream(ostrstream * ostr)
destroy the istrstream developped by newOStrStream()

ovoid describe(ostream& o, Bool detailp = True) const
describe the buffer


このクラスには、子クラスは存在しない

Alphabetic index HTML クラス階層 or Java



このページは、DOC++により生成されています