function_2< D, S1, S2 > Struct Template Reference

#include <function.hpp>

List of all members.

Public Member Functions

Public Attributes


Detailed Description

template<typename D, typename S1, typename S2>
struct mmx::function_2< D, S1, S2 >

Definition at line 226 of file function.hpp.


Constructor & Destructor Documentation

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); }


Member Function Documentation

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; }


Member Data Documentation

function_2_rep<D,S1,S2>* rep

The documentation for this struct was generated from the following file:

Generated on 6 Dec 2012 for basix by  doxygen 1.6.1