#include <function.hpp>
Definition at line 226 of file function.hpp.
function_2 | ( | ) | [inline] |
Definition at line 228 of file function.hpp.
00228 : rep (NULL) {}
function_2 | ( | function_2_rep< D, S1, S2 > * | rep2 | ) | [inline] |
Definition at line 229 of file function.hpp.
00229 : rep (rep2) {}
function_2 | ( | function_2_rep< D, S1, S2 > * | rep2, | |
bool | with_inc | |||
) | [inline] |
Definition at line 230 of file function.hpp.
References INC_COUNT, and function_2< D, S1, S2 >::rep.
00230 : 00231 rep (rep2) { (void) with_inc; INC_COUNT (rep); } inline function_2 (const function_2& f):
function_2 | ( | const function_2< D, S1, S2 > & | f | ) | [inline] |
Definition at line 232 of file function.hpp.
References INC_NULL_COUNT, and function_2< D, S1, S2 >::rep.
00232 : 00233 rep (f.rep) { INC_NULL_COUNT(rep); } inline function_2 (D (*fun) (S1, S2)):
function_2 | ( | D(*)(S1, S2) | fun | ) | [inline] |
Definition at line 234 of file function.hpp.
00234 : 00235 rep (new def_function_2_rep<D,S1,S2> (fun)) {} inline ~function_2 () { DEC_NULL_COUNT (rep); }
~function_2 | ( | ) | [inline] |
Definition at line 236 of file function.hpp.
References DEC_NULL_COUNT, and function_2< D, S1, S2 >::rep.
00236 { DEC_NULL_COUNT (rep); }
D operator() | ( | S1 | x1, | |
S2 | x2 | |||
) | const [inline] |
Definition at line 240 of file function.hpp.
References function_2< D, S1, S2 >::rep.
00240 { 00241 return rep->apply (x1, x2); }
function_2& operator= | ( | const function_2< D, S1, S2 > & | f | ) | [inline] |
Definition at line 237 of file function.hpp.
References DEC_NULL_COUNT, INC_NULL_COUNT, and function_2< D, S1, S2 >::rep.
00237 { 00238 INC_NULL_COUNT (f.rep); DEC_NULL_COUNT (rep); 00239 rep= f.rep; return *this; }
function_2_rep<D,S1,S2>* rep |
Definition at line 227 of file function.hpp.
Referenced by function_2< D, S1, S2 >::function_2(), function_2< D, S1, S2 >::operator()(), function_2< D, S1, S2 >::operator=(), and function_2< D, S1, S2 >::~function_2().