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

Assignment operator.

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

Definition at line 163 of file dictionary.cpp.

References m_mode, m_name, csdbg::chain< T >::operator=(), set_name(), and unlikely.

164 {
165  if ( unlikely(this == &rval) )
166  return *this;
167 
168  /* Copy words */
170  m_mode = rval.m_mode;
171  return set_name(rval.m_name);
172 }
bool m_mode
Lookup mode.
Definition: dictionary.hpp:40
virtual dictionary & set_name(const i8 *)
Set the name.
Definition: dictionary.cpp:123
virtual chain & operator=(const chain &)
Assignment operator.
Definition: chain.hpp:296
#define unlikely(expr)
Offer a hint (negative) to the pipeline branch predictor.
Definition: config.hpp:349

+ Here is the call graph for this function: