function_0< D > Struct Template Reference

#include <function.hpp>

List of all members.

Public Member Functions

Public Attributes


Detailed Description

template<typename D>
struct mmx::function_0< D >

Definition at line 72 of file function.hpp.


Constructor & Destructor Documentation

function_0 (  )  [inline]

Definition at line 74 of file function.hpp.

00074 : rep (NULL) {}

function_0 ( function_0_rep< D > *  rep2  )  [inline]

Definition at line 75 of file function.hpp.

00075 : rep (rep2) {}

function_0 ( function_0_rep< D > *  rep2,
bool  with_inc 
) [inline]

Definition at line 76 of file function.hpp.

00076                                                             :
00077     rep (rep2) { (void) with_inc; INC_COUNT (rep); }
  inline function_0 (const function_0& f):

function_0 ( const function_0< D > &  f  )  [inline]

Definition at line 78 of file function.hpp.

00078                                          :
00079     rep (f.rep) { INC_NULL_COUNT(rep); }
  inline function_0 (D (*fun) ()):

function_0 ( D(*)()  fun  )  [inline]

Definition at line 80 of file function.hpp.

00080                                  :
00081     rep (new def_function_0_rep<D> (fun)) {}
  inline ~function_0 () { DEC_NULL_COUNT (rep); }

~function_0 (  )  [inline]

Definition at line 82 of file function.hpp.

00082 { DEC_NULL_COUNT (rep); }


Member Function Documentation

D operator() (  )  const [inline]

Definition at line 86 of file function.hpp.

00086 { return rep->apply (); }

function_0& operator= ( const function_0< D > &  f  )  [inline]

Definition at line 83 of file function.hpp.

00083                                                       {
00084     INC_NULL_COUNT (f.rep); DEC_NULL_COUNT (rep);
00085     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