libcsdbg  1.28
C++ exception (and generic) stack trace debug library
parser & csdbg::parser::operator= ( const parser rval)
virtual

Assignment operator.

Parameters
[in]rvalthe assigned object
Returns
*this
Exceptions
std::bad_alloc

Definition at line 270 of file parser.cpp.

References m_dictionaries, m_styles, csdbg::string::operator=(), and unlikely.

271 {
272  if ( unlikely(this == &rval) )
273  return *this;
274 
275  /* Copy the buffer */
276  string::operator=(rval);
277 
278  *m_dictionaries = *rval.m_dictionaries;
279  *m_styles = *rval.m_styles;
280  return *this;
281 }
chain< dictionary > * m_dictionaries
Dictionary collection.
Definition: parser.hpp:42
virtual string & operator=(const string &)
Assignment operator.
Definition: string.cpp:317
#define unlikely(expr)
Offer a hint (negative) to the pipeline branch predictor.
Definition: config.hpp:349
chain< style > * m_styles
VT100 style collection.
Definition: parser.hpp:44

+ Here is the call graph for this function: