template<class CharType> class CASL::BufferChunk

BufferChunk is template for repesentation part of string in CharType encoding.

Public Methods

[more] BufferChunk(CharType* begin, CharType* end, bool takeOwnership)
[more] BufferChunk()
[more] BufferChunk(CharType* buff, size_t len, bool empty)
[more] BufferChunk(const BufferChunk&)
[more]void assign(iterator first, iterator second)
[more]void assign(BufferChunk& x)
[more]const reference back() const
[more]reference back()
[more]const_iterator begin() const
[more]iterator begin()
[more]void clean()
[more]pointer clean_return_memory()
[more]void clear()
[more]void copy(const BufferChunk& x)
[more]void copy(const_iterator first, const_iterator second)
[more]bool empty() const
[more]iterator end()
[more]const_iterator end() const
[more]bool equalASCII(const char* sz) const
compare with ASCII string
[more]bool equalASCII(const std::string& s) const
compare with ASCII string
[more]void erase(iterator first, iterator last)
[more]iterator find_first_of(CharType ch)
analog of basic_string::find_first_of
[more]iterator find_first_of(const std::basic_string<CharType>& symbols)
analog of basic_string::find_first_of
[more]void insert(iterator it, const CharType* x, const CharType* y)
[more]std::size_t length() const
[more]bool lessenLength(int newLength)
[more]std::size_t max_size() const
[more]bool operator!=(const BufferChunk& x) const
[more]bool operator<(const BufferChunk& x)
[more]bool operator<=(const BufferChunk& x)
[more]BufferChunk& operator=(const BufferChunk&)
[more]bool operator==(const BufferChunk& x) const
[more]bool operator==(const std::basic_string<value_type>& x) const
[more]bool operator>(const BufferChunk& x)
[more]bool operator>=(const BufferChunk& x)
[more]reference operator[](size_t i)
[more]const_reference operator[](std::size_t i) const
[more]CharType pop_back()
[more]void push_back(CharType x)
[more]void replace(iterator first, iterator last, const BufferChunk& what)
[more]void reserveAdditional(int n=100)
[more]void resize(int newLength, bool lostValue)
resize to new length
[more]void resize(int newLength)
resize to new length, without saving previous value
[more]void setASCIIString(const char* sz)
setting of ASCII string
[more]void setMemory(CharType* buff, int len, bool empty)
[more]std::size_t size() const
[more]void swap(BufferChunk& x)
[more]std::basic_string<CharType> to_string() const
[more] ~BufferChunk()

Public Members

[more]typedef const CharType* const_iterator
[more]typedef const CharType* const_pointer
[more]typedef const CharType& const_reference
[more]typedef int difference_type
[more]typedef CharType* iterator
[more]typedef CharType* pointer
[more]typedef CharType& reference
[more]typedef CharType value_type


Documentation

BufferChunk is template for repesentation part of string in CharType encoding. like basic_string but with memory management and without trailing null.

We maintain ownership of internal buffer. Also BufferChunk is a Container of T in STL sence.

otypedef CharType value_type

otypedef CharType* iterator

otypedef const CharType* const_iterator

otypedef CharType* pointer

otypedef const CharType* const_pointer

otypedef CharType& reference

otypedef const CharType& const_reference

otypedef int difference_type

o BufferChunk()

o BufferChunk(const BufferChunk&)

o BufferChunk(CharType* buff, size_t len, bool empty)

o BufferChunk(CharType* begin, CharType* end, bool takeOwnership)

o ~BufferChunk()

oBufferChunk& operator=(const BufferChunk&)

oiterator begin()

oiterator end()

oconst_iterator begin() const

oconst_iterator end() const

oreference operator[](size_t i)

oconst_reference operator[](std::size_t i) const

obool empty() const

ostd::size_t size() const

ostd::size_t length() const

ostd::size_t max_size() const

ovoid swap(BufferChunk& x)

oreference back()

oconst reference back() const

ovoid push_back(CharType x)

oCharType pop_back()

ovoid insert(iterator it, const CharType* x, const CharType* y)

ovoid erase(iterator first, iterator last)

obool operator==(const BufferChunk& x) const

obool operator!=(const BufferChunk& x) const

obool operator==(const std::basic_string<value_type>& x) const

obool operator<(const BufferChunk& x)

obool operator>(const BufferChunk& x)

obool operator<=(const BufferChunk& x)

obool operator>=(const BufferChunk& x)

obool lessenLength(int newLength)

ovoid reserveAdditional(int n=100)

ovoid resize(int newLength, bool lostValue)
resize to new length
Parameters:
newLength - - resize to new length
lostValue - if false, can lost value, if try - try to save previous value if enlarging.

ovoid resize(int newLength)
resize to new length, without saving previous value

ovoid assign(BufferChunk& x)

ovoid assign(iterator first, iterator second)

ovoid copy(const_iterator first, const_iterator second)

ovoid copy(const BufferChunk& x)

ovoid clear()

ovoid clean()

opointer clean_return_memory()

ostd::basic_string<CharType> to_string() const

ovoid setMemory(CharType* buff, int len, bool empty)

ovoid replace(iterator first, iterator last, const BufferChunk& what)

ovoid setASCIIString(const char* sz)
setting of ASCII string

obool equalASCII(const char* sz) const
compare with ASCII string

obool equalASCII(const std::string& s) const
compare with ASCII string

oiterator find_first_of(const std::basic_string<CharType>& symbols)
analog of basic_string::find_first_of

oiterator find_first_of(CharType ch)
analog of basic_string::find_first_of


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.