DUECA/DUSIME
Loading...
Searching...
No Matches
Classes | Namespaces | Macros | Functions
Dstring.hxx File Reference

This implements a fixed-length string class. More...

Include dependency graph for Dstring.hxx:
This graph shows which files directly or indirectly include this file:

Classes

class  dueca::dstring
 This is a virtual base class for the fixed-length string classes. More...
 
class  dueca::Dstring< mxsize >
 This is yet another string class, this time for strings of a fixed maximum size, and therefore a fixed storage requirement. More...
 

Namespaces

namespace  std
 print the IncoRole to a stream
 

Functions

template<unsigned mxsize>
bool dueca::operator== (const Dstring< mxsize > &s, const char *o)
 Test for equality with a c-style string.
 
template<unsigned mxsize>
bool dueca::operator== (const char *o, const Dstring< mxsize > &s)
 Test for equality with a c-style string, version 2.
 
template<unsigned mxsize>
bool dueca::operator== (const Dstring< mxsize > &s, const std::string &o)
 Test for equality with a standard library string.
 
template<unsigned mxsize>
bool dueca::operator== (const std::string &o, const Dstring< mxsize > &s)
 Test for equality with a standard library string.
 
template<unsigned mxsize>
void packData (dueca ::AmorphStore &s, const dueca ::Dstring< mxsize > &o)
 Packs a Dstring into an amorpous storage object.
 
template<unsigned mxsize>
void unPackData (dueca ::AmorphReStore &s, dueca ::Dstring< mxsize > &o)
 Unpacks a Dstring from an amorpous storage object.
 
template<unsigned mxsize>
ostream & std::operator<< (ostream &os, const dueca ::Dstring< mxsize > &o)
 Print a Dstring to stream.
 
template<unsigned mxsize>
istream & std::operator>> (istream &is, dueca ::Dstring< mxsize > &o)
 Read a Dstring from a stream.
 
template<typename S , unsigned mxsize>
void msgunpack::msg_unpack (S &i0, const S &iend, dueca::Dstring< mxsize > &s)
 Unpack a DUECA dstring from a msgpack visitor.
 

Detailed Description

This implements a fixed-length string class.

The Dstring (templated) string class uses a fixed maximum length for the string. this makes it possible to use fast real-time allocation of string data storage.

Do not include this file directly. Use the "stringoptions.h" file instead. This file defines four different fixed-size strings and a variable size string. Use of this file ensures uniformity of the string types used in one node.

Function Documentation

◆ msg_unpack()

template<typename S , unsigned mxsize>
void msgunpack::msg_unpack ( S & i0,
const S & iend,
dueca::Dstring< mxsize > & s )
inline

Unpack a DUECA dstring from a msgpack visitor.

Parameters
i0Iterator current position
iendLast item in the data
sResulting string