Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
ParBuffer Class Reference

#include <ParBuffer.h>

Public Member Functions

void clear ()
 
std::string escape (std::string str)
 
bool last_empty ()
 
std::string next ()
 
size_t next_escape (std::string str, size_t pos)
 
template<typename T >
ParBufferoperator<< (const T &v)
 
template<typename T >
ParBufferoperator>> (T &v)
 
 ParBuffer ()
 
void set (std::string buf)
 
std::string str () const
 
std::string unescape (std::string str)
 

Private Attributes

const char ESC
 
std::string inBuffer
 
std::stringstream outBuffer
 
const char QUO
 
const char SEP
 
bool was_empty
 

Detailed Description

Definition at line 29 of file ParBuffer.h.

Constructor & Destructor Documentation

◆ ParBuffer()

ParBuffer::ParBuffer ( )
inline

Definition at line 31 of file ParBuffer.h.

Member Function Documentation

◆ clear()

void ParBuffer::clear ( )
inline

Definition at line 145 of file ParBuffer.h.

References outBuffer.

◆ escape()

std::string ParBuffer::escape ( std::string  str)
inline

Definition at line 62 of file ParBuffer.h.

References ESC, next_escape(), QUO, and str().

Referenced by operator<<().

Here is the caller graph for this function:

◆ last_empty()

bool ParBuffer::last_empty ( )
inline

Definition at line 138 of file ParBuffer.h.

References was_empty.

Referenced by MSCFModel_CC::setParameter().

Here is the caller graph for this function:

◆ next()

std::string ParBuffer::next ( )
inline

Definition at line 102 of file ParBuffer.h.

References ESC, inBuffer, SEP, and unescape().

Referenced by operator>>().

Here is the caller graph for this function:

◆ next_escape()

size_t ParBuffer::next_escape ( std::string  str,
size_t  pos 
)
inline

Definition at line 50 of file ParBuffer.h.

References ESC, SEP, and str().

Referenced by escape().

Here is the caller graph for this function:

◆ operator<<()

template<typename T >
ParBuffer & ParBuffer::operator<< ( const T &  v)
inline

Definition at line 37 of file ParBuffer.h.

References escape(), outBuffer, and SEP.

◆ operator>>()

template<typename T >
ParBuffer & ParBuffer::operator>> ( T &  v)
inline

Definition at line 123 of file ParBuffer.h.

References next(), and was_empty.

◆ set()

void ParBuffer::set ( std::string  buf)
inline

Definition at line 142 of file ParBuffer.h.

References inBuffer.

◆ str()

std::string ParBuffer::str ( ) const
inline

Definition at line 148 of file ParBuffer.h.

References outBuffer.

Referenced by escape(), MSCFModel_CC::getParameter(), next_escape(), and unescape().

Here is the caller graph for this function:

◆ unescape()

std::string ParBuffer::unescape ( std::string  str)
inline

Definition at line 84 of file ParBuffer.h.

References ESC, QUO, and str().

Referenced by next().

Here is the caller graph for this function:

Field Documentation

◆ ESC

const char ParBuffer::ESC
private

Definition at line 154 of file ParBuffer.h.

Referenced by escape(), next(), next_escape(), and unescape().

◆ inBuffer

std::string ParBuffer::inBuffer
private

Definition at line 157 of file ParBuffer.h.

Referenced by next(), and set().

◆ outBuffer

std::stringstream ParBuffer::outBuffer
private

Definition at line 156 of file ParBuffer.h.

Referenced by clear(), operator<<(), and str().

◆ QUO

const char ParBuffer::QUO
private

Definition at line 155 of file ParBuffer.h.

Referenced by escape(), and unescape().

◆ SEP

const char ParBuffer::SEP
private

Definition at line 153 of file ParBuffer.h.

Referenced by next(), next_escape(), and operator<<().

◆ was_empty

bool ParBuffer::was_empty
private

Definition at line 158 of file ParBuffer.h.

Referenced by last_empty(), and operator>>().


The documentation for this class was generated from the following file: