NESSi  v1.0.2
The NonEquilibrium Systems Simulation Library

◆ operator=() [2/2]

template<typename T >
function< T > & cntr::function< T >::operator= ( function< T > &&  g)
noexcept

Overloaded operator '=', which copies data from an existing function object(right-value reference)

Purpose

Overloaded operator '='. It copies data from an existing function object(right-value reference). It copies all data from the existing function object. The method is specified for right value reference when C++11 is used.

Parameters
g

the function object one wants to copy.

Definition at line 179 of file cntr_function_impl.hpp.

References cntr::function< T >::data_.

179  {
180  if (&g == this)
181  return *this;
182 
183  data_ = g.data_;
184  nt_ = g.nt_;
185  size1_ = g.size1_;
186  size2_ = g.size2_;
187  element_size_ = g.element_size_;
188 
189  g.data_ = nullptr;
190  g.nt_ = -2;
191  g.size1_ = 0;
192  g.size2_ = 0;
193  g.element_size_ = 0;
194 
195  return *this;
196 }
int size2_
Number of the rows in the Matrix form.
cplx * data_
Pointer to the function in the Matrix form on the real-time axis ( ) ; &#39;data_+ element_size&#39; corresp...
int size1_
Number of the colums in the Matrix form.
int nt_
Maximum number of the time steps.