invalidator_1_rep< R > Struct Template Reference

#include <dispatcher.hpp>

Inheritance diagram for invalidator_1_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_1_rep< R >

Definition at line 24 of file dispatcher.hpp.


Member Typedef Documentation

typedef function_0<void> INV

Definition at line 25 of file dispatcher.hpp.


Constructor & Destructor Documentation

invalidator_1_rep ( const INV p2,
R **  t2,
int *  ol,
int *  nl 
) [inline]

Definition at line 30 of file dispatcher.hpp.

00030                                                                     :
00031     prev (p2), tab (t2), old_len (ol), new_len (nl) {}
  void apply () {


Member Function Documentation

void apply (  )  [inline, virtual]

Implements function_0_rep< void >.

Definition at line 32 of file dispatcher.hpp.

References mmx::is_nil(), invalidator_1_rep< R >::old_len, invalidator_1_rep< R >::prev, and invalidator_1_rep< R >::tab.

00032                 {
00033     if (!is_nil (prev)) prev ();
00034     //printf ("[%i -> %i]", *old_len, *new_len);
00035     mmx_delete<R> (*tab, *old_len);
00036     *tab= mmx_new<R> (*new_len);
00037     *old_len= *new_len; }


Member Data Documentation

int* new_len

Definition at line 29 of file dispatcher.hpp.

int* old_len

Definition at line 28 of file dispatcher.hpp.

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

Definition at line 26 of file dispatcher.hpp.

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

MMX_ALLOCATORS int ref_count [inherited]

Definition at line 164 of file basix.hpp.

R** tab

Definition at line 27 of file dispatcher.hpp.

Referenced by invalidator_1_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