new_table< C, T, V > Class Template Reference

#include <new_table.hpp>

List of all members.

Public Member Functions

Protected Attributes

Friends


Detailed Description

template<typename C, typename T, typename V = exact_eq_table>
class mmx::new_table< C, T, V >

Definition at line 153 of file new_table.hpp.


Constructor & Destructor Documentation

new_table ( new_table_rep< C, T, V > *  rep2  )  [inline]

Definition at line 179 of file new_table.hpp.

00184 { return t->tfm1 (); }

new_table ( const new_table_rep< C, T, V > *  rep2,
bool  inc 
) [inline]

Definition at line 179 of file new_table.hpp.

00184 { return t->tfm1 (); }

new_table ( const new_table< C, T, V > &  x  )  [inline]

Definition at line 179 of file new_table.hpp.

00184 { return t->tfm1 (); }

~new_table (  )  [inline]

Definition at line 179 of file new_table.hpp.

00184 { return t->tfm1 (); }

new_table (  )  [inline]

Definition at line 155 of file new_table.hpp.

00155                  :
00156     rep (new Table_rep (2, Format1 (no_format ()), Format2 (no_format ()))) {}
  inline table (const Format1& fm1, const Format2& fm2):

new_table ( const format< C > &  fm1,
const format< T > &  fm2 
) [inline]

Definition at line 157 of file new_table.hpp.

00157                                                        :
00158     rep (new Table_rep (2, fm1, fm2)) {}
  template<typename K> inline table (const K& i, nat n=2):

new_table ( const K &  i,
nat  n = 2 
) [inline]

Definition at line 159 of file new_table.hpp.

00159                                                          :
00160     rep (new Table_rep (as<C> (i), n, Format2 ())) {}
  template<typename K> inline table (const K& i, const Format2& fm2, nat n=2):

new_table ( const K &  i,
const format< T > &  fm2,
nat  n = 2 
) [inline]

Definition at line 161 of file new_table.hpp.

00161                                                                              :
00162     rep (new Table_rep (as<C> (i), n, fm2)) {}
  inline table (const iterator<pair<T,C> >& it):

new_table ( const iterator< pair< T, C > > &  it  )  [inline]

Definition at line 163 of file new_table.hpp.

References mmx::busy(), and table< C, T, V >::rep.

00163                                                :
00164     rep (new Table_rep (2, CF(it).format1 (), CF(it).format2 ())) {
00165       for (; busy (it); ++it) rep->set ((*it).x1)= (*it).x2; }
  inline table (const C& i, const iterator<pair<T,C> >& it):

new_table ( const C i,
const iterator< pair< T, C > > &  it 
) [inline]

Definition at line 166 of file new_table.hpp.

References mmx::busy(), and table< C, T, V >::rep.

00166                                                            :
00167     rep (new Table_rep (i, 2, CF(it).format2 ())) {
00168       for (; busy (it); ++it) rep->set ((*it).x1)= (*it).x2; }
  template<typename K> inline const C& operator [] (const K& x) const {


Member Function Documentation

void operator delete ( void *  ptr,
size_t  sz 
) [inline]

Definition at line 154 of file new_table.hpp.

00155 :
    rep (new Table_rep (2, Format1 (no_format ()), Format2 (no_format ()))) {}

void operator delete[] ( void *  ptr,
size_t  sz 
) [inline]

Definition at line 154 of file new_table.hpp.

00155 :
    rep (new Table_rep (2, Format1 (no_format ()), Format2 (no_format ()))) {}

void* operator new ( size_t  sz,
void *  where 
) [inline]

Definition at line 154 of file new_table.hpp.

00155 :
    rep (new Table_rep (2, Format1 (no_format ()), Format2 (no_format ()))) {}

void* operator new ( size_t  sz  )  [inline]

Definition at line 154 of file new_table.hpp.

00155 :
    rep (new Table_rep (2, Format1 (no_format ()), Format2 (no_format ()))) {}

void* operator new[] ( size_t  sz,
void *  where 
) [inline]

Definition at line 154 of file new_table.hpp.

00155 :
    rep (new Table_rep (2, Format1 (no_format ()), Format2 (no_format ()))) {}

void* operator new[] ( size_t  sz  )  [inline]

Definition at line 154 of file new_table.hpp.

00155 :
    rep (new Table_rep (2, Format1 (no_format ()), Format2 (no_format ()))) {}

const new_table_rep< C, T, V > * operator-> (  )  const [inline]

Definition at line 179 of file new_table.hpp.

00184 { return t->tfm1 (); }

new_table< C, T, V > & operator= ( const new_table< C, T, V > &  x  )  [inline]

Definition at line 179 of file new_table.hpp.

00184 { return t->tfm1 (); }

C& operator[] ( const T x  )  [inline]

Definition at line 175 of file new_table.hpp.

References table< C, T, V >::rep, and table< C, T, V >::secure().

00175                                      {
00176     secure (); return rep->set (x); }

C& operator[] ( const K &  x  )  [inline]

Definition at line 173 of file new_table.hpp.

References table< C, T, V >::rep, and table< C, T, V >::secure().

00173                                                           {
00174     secure (); return rep->set (as<T> (x)); }

const C& operator[] ( const T x  )  const [inline]

Definition at line 171 of file new_table.hpp.

References table< C, T, V >::rep.

00171                                                  {
00172     return rep->get (x); }

const C& operator[] ( const K &  x  )  const [inline]

Definition at line 169 of file new_table.hpp.

References table< C, T, V >::rep.

00169                                                                       {
00170     return rep->get (as<T> (x)); }

void secure (  )  [inline]

Definition at line 179 of file new_table.hpp.

00184 { return t->tfm1 (); }


Friends And Related Function Documentation

void simplify ( new_table< C, T, V > &  t  )  [friend]

Member Data Documentation

new_table_rep< C , T , V >* rep [protected]

Definition at line 154 of file new_table.hpp.


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

Generated on 6 Dec 2012 for basix by  doxygen 1.6.1