basix_doc 0.1
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 216 of file function.hpp.


Constructor & Destructor Documentation

function_2 ( ) [inline]

Definition at line 218 of file function.hpp.

: rep (NULL) {}
function_2 ( function_2_rep< D, S1, S2 > *  rep2) [inline]

Definition at line 219 of file function.hpp.

: rep (rep2) {}
function_2 ( const function_2< D, S1, S2 > &  f) [inline]

Definition at line 220 of file function.hpp.

References INC_NULL_COUNT, and function_2< D, S1, S2 >::rep.

                                         :
    rep (f.rep) { INC_NULL_COUNT(rep); }
function_2 ( D(*)(S1, S2 fun) [inline]

Definition at line 222 of file function.hpp.

                                       :
    rep (new def_function_2_rep<D,S1,S2> (fun)) {}
~function_2 ( ) [inline]

Definition at line 224 of file function.hpp.

References DEC_NULL_COUNT, and function_2< D, S1, S2 >::rep.


Member Function Documentation

D operator() ( S1  x1,
S2  x2 
) const [inline]

Definition at line 228 of file function.hpp.

References function_2< D, S1, S2 >::rep.

                                            {
    return rep->apply (x1, x2); }
function_2& operator= ( const function_2< D, S1, S2 > &  f) [inline]

Definition at line 225 of file function.hpp.

References DEC_NULL_COUNT, INC_NULL_COUNT, and function_2< D, S1, S2 >::rep.

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

Member Data Documentation


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines