function_1< D, S1 > Struct Template Reference

#include <function.hpp>

List of all members.

Public Member Functions

Public Attributes


Detailed Description

template<typename D, typename S1>
struct mmx::function_1< D, S1 >

Definition at line 128 of file function.hpp.


Constructor & Destructor Documentation

function_1 (  )  [inline]

Definition at line 130 of file function.hpp.

00130 : rep (NULL) {}

function_1 ( function_1_rep< D, S1 > *  rep2  )  [inline]

Definition at line 131 of file function.hpp.

00131 : rep (rep2) {}

function_1 ( function_1_rep< D, S1 > *  rep2,
bool  with_inc 
) [inline]

Definition at line 132 of file function.hpp.

00132                                                                :
00133     rep (rep2) { (void) with_inc; INC_COUNT (rep); }
  inline function_1 (const function_1& f):

function_1 ( const function_1< D, S1 > &  f  )  [inline]

Definition at line 134 of file function.hpp.

00134                                          :
00135     rep (f.rep) { INC_NULL_COUNT(rep); }
  inline function_1 (D (*fun) (S1)):

function_1 ( D(*)(S1)  fun  )  [inline]

Definition at line 136 of file function.hpp.

00136                                    :
00137     rep (new def_function_1_rep<D,S1> (fun)) {}
  inline ~function_1 () { DEC_NULL_COUNT (rep); }

~function_1 (  )  [inline]

Definition at line 138 of file function.hpp.

00138 { DEC_NULL_COUNT (rep); }


Member Function Documentation

D operator() ( S1  x1  )  const [inline]

Definition at line 142 of file function.hpp.

00142 { return rep->apply (x1); }

function_1& operator= ( const function_1< D, S1 > &  f  )  [inline]

Definition at line 139 of file function.hpp.

00139                                                       {
00140     INC_NULL_COUNT (f.rep); DEC_NULL_COUNT (rep);
00141     rep= f.rep; return *this; }


Member Data Documentation


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

Generated on 6 Dec 2012 for basix by  doxygen 1.6.1