NESSi  v1.0.2
The NonEquilibrium Systems Simulation Library

◆ function() [5/5]

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

Initializes the function class from an existing function object(right-value reference)

Purpose

Initializes the function class from an existing function object. 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 148 of file cntr_function_impl.hpp.

149  : data_(g.data_),
150  nt_(g.nt_),
151  size1_(g.size1_),
152  size2_(g.size2_),
153  element_size_(g.element_size_) {
154  g.data_ = nullptr;
155  g.nt_ = -2;
156  g.size1_ = 0;
157  g.size2_ = 0;
158  g.element_size_ = 0;
159 }
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.