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

Assignment operator.

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

Definition at line 202 of file style.cpp.

References m_attributes, m_bgcolor, m_fgcolor, m_name, set_name(), and unlikely.

203 {
204  if ( unlikely(this == &rval) )
205  return *this;
206 
207  m_fgcolor = rval.m_fgcolor;
208  m_bgcolor = rval.m_bgcolor;
209  m_attributes = rval.m_attributes;
210 
211  return set_name(rval.m_name);
212 }
virtual style & set_name(const i8 *)
Set the style name.
Definition: style.cpp:134
attrset_t m_attributes
Text formatting attribute bitmask.
Definition: style.hpp:32
color_t m_bgcolor
Background color.
Definition: style.hpp:30
color_t m_fgcolor
Foreground (text) color.
Definition: style.hpp:28
#define unlikely(expr)
Offer a hint (negative) to the pipeline branch predictor.
Definition: config.hpp:349

+ Here is the call graph for this function: