invalidator_2_rep< R > Struct Template Reference

#include <dispatcher.hpp>

Inheritance diagram for invalidator_2_rep< R >:
function_0_rep< void > rep_struct

List of all members.

Public Types

Public Member Functions

Public Attributes


Detailed Description

template<typename R>
struct mmx::invalidator_2_rep< R >

Definition at line 92 of file dispatcher.hpp.


Member Typedef Documentation

typedef function_0<void> INV

Definition at line 93 of file dispatcher.hpp.


Constructor & Destructor Documentation

invalidator_2_rep ( const INV p2,
R **  t2,
int *  ol1,
int *  ol2,
int *  nl1,
int *  nl2 
) [inline]

Definition at line 100 of file dispatcher.hpp.

00101                                                                    :
00102     prev (p2), tab (t2),
00103     old_len_1 (ol1), old_len_2 (ol2),
00104     new_len_1 (nl1), new_len_2 (nl2) {}
  void apply () {


Member Function Documentation

void apply (  )  [inline, virtual]

Implements function_0_rep< void >.

Definition at line 105 of file dispatcher.hpp.

References mmx::is_nil(), invalidator_2_rep< R >::new_len_1, invalidator_2_rep< R >::new_len_2, invalidator_2_rep< R >::old_len_1, invalidator_2_rep< R >::old_len_2, invalidator_2_rep< R >::prev, and invalidator_2_rep< R >::tab.

00105                 {
00106     if (!is_nil (prev)) prev ();
00107     mmx_delete<R> (*tab, (*old_len_1) * (*old_len_2));
00108     *tab= mmx_new<R> ((*new_len_1) * (*new_len_2));
00109     *old_len_1= *new_len_1;
00110     *old_len_2= *new_len_2; }


Member Data Documentation

int* new_len_1

Definition at line 98 of file dispatcher.hpp.

Referenced by invalidator_2_rep< R >::apply().

int* new_len_2

Definition at line 99 of file dispatcher.hpp.

Referenced by invalidator_2_rep< R >::apply().

int* old_len_1

Definition at line 96 of file dispatcher.hpp.

Referenced by invalidator_2_rep< R >::apply().

int* old_len_2

Definition at line 97 of file dispatcher.hpp.

Referenced by invalidator_2_rep< R >::apply().

Definition at line 94 of file dispatcher.hpp.

Referenced by invalidator_2_rep< R >::apply().

MMX_ALLOCATORS int ref_count [inherited]

Definition at line 164 of file basix.hpp.

R** tab

Definition at line 95 of file dispatcher.hpp.

Referenced by invalidator_2_rep< R >::apply().


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

Generated on 6 Dec 2012 for basix by  doxygen 1.6.1