The Vish Visualization Shell 0.3
Vish
List of all members
MemCore::StringChunk Struct Reference

A StringChunk is a chunk of character spans which references data within a contiguous storage space. More...

#include <elementary/memcore/StringChunk.hpp>

Inheritance diagram for MemCore::StringChunk:
MemCore::Chunk< span< char > > MemCore::TypedChunk< T >

Additional Inherited Members

- Public Member Functions inherited from MemCore::Chunk< span< char > >
const base_vector_type & base_vector () const override
 Implement virtual base class function to yield constant vector of base elements. Internally uses ugly reinterpret_cast<> of STL vectors.
 
base_vector_type & base_vector () override
 Implement virtual base class function to yield vector of base elements. Internally uses ugly reinterpret_cast<> of STL vectors.
 
 Chunk (const Filler &, const span< char > &FillValue, size_t N=1)
 Constructor allocates a chunk of data.
 
 Chunk (const std::string &buffer)
 Construct a chunk of data from a character set.
 
 Chunk (const std::vector< span< char > > &SourceValues)
 Copy values.
 
 Chunk (size_t N, bool ReserveOnly=false)
 Constructor allocates a chunk of data.
 
span< char > * operator() ()
 Use function call operator to get the actual data pointer Note that this function returns 0 if the data type is not addressible via a pointer, for instance a boolean.
 
- Public Member Functions inherited from MemCore::TypedChunk< T >
std::vector< T > & get_vector ()
 Get a STL vector of element types, it can be modified.
 
const std::vector< T > & get_vector () const
 Get a const STL vector of element types, only for read access.
 
- Protected Member Functions inherited from MemCore::Chunk< span< char > >
 ~Chunk ()
 Destructor deletes the data pointer.
 

Detailed Description

A StringChunk is a chunk of character spans which references data within a contiguous storage space.

The data itself are stored in the StringChunk class. Application code that only knows about the Chunk and it's spans won't ever see that actual storage space and merely operate on references within the contiguous memory space.