table< C, T, V > Class Template Reference

#include <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::table< C, T, V >

Definition at line 131 of file table.hpp.


Constructor & Destructor Documentation

table ( table_rep< C, T, V > *  rep2  )  [inline]

Definition at line 157 of file table.hpp.

00162 { return t->tfm1 (); }

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

Definition at line 157 of file table.hpp.

00162 { return t->tfm1 (); }

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

Definition at line 157 of file table.hpp.

00162 { return t->tfm1 (); }

~table (  )  [inline]

Definition at line 157 of file table.hpp.

00162 { return t->tfm1 (); }

table (  )  [inline]

Definition at line 133 of file table.hpp.

00133                  :
00134     rep (new Table_rep (1, Format1 (no_format ()), Format2 (no_format ()))) {}
  inline table (const Format1& fm1, const Format2& fm2):

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

Definition at line 135 of file table.hpp.

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

table ( const K &  i,
nat  n = 1 
) [inline]

Definition at line 137 of file table.hpp.

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

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

Definition at line 139 of file table.hpp.

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

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

Definition at line 141 of file table.hpp.

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

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

Definition at line 144 of file table.hpp.

00144                                                            :
00145     rep (new Table_rep (i, 1, CF(it).format2 ())) {
00146       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 132 of file table.hpp.

00133 :
    rep (new Table_rep (1, Format1 (no_format ()), Format2 (no_format ()))) {}

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

Definition at line 132 of file table.hpp.

00133 :
    rep (new Table_rep (1, Format1 (no_format ()), Format2 (no_format ()))) {}

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

Definition at line 132 of file table.hpp.

00133 :
    rep (new Table_rep (1, Format1 (no_format ()), Format2 (no_format ()))) {}

void* operator new ( size_t  sz  )  [inline]

Definition at line 132 of file table.hpp.

00133 :
    rep (new Table_rep (1, Format1 (no_format ()), Format2 (no_format ()))) {}

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

Definition at line 132 of file table.hpp.

00133 :
    rep (new Table_rep (1, Format1 (no_format ()), Format2 (no_format ()))) {}

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

Definition at line 132 of file table.hpp.

00133 :
    rep (new Table_rep (1, Format1 (no_format ()), Format2 (no_format ()))) {}

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

Definition at line 157 of file table.hpp.

00162 { return t->tfm1 (); }

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

Definition at line 157 of file table.hpp.

00162 { return t->tfm1 (); }

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

Definition at line 153 of file table.hpp.

00153                                      {
00154     secure (); return rep->set (x); }

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

Definition at line 151 of file table.hpp.

00151                                                           {
00152     secure (); return rep->set (as<T> (x)); }

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

Definition at line 149 of file table.hpp.

00149                                                  {
00150     return rep->get (x); }

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

Definition at line 147 of file table.hpp.

00147                                                                       {
00148     return rep->get (as<T> (x)); }

void secure (  )  [inline]

Definition at line 157 of file table.hpp.

Referenced by table< D, pair< S1, S2 >, table_variant >::operator[](), and new_table< C, T, V >::operator[]().

00162 { return t->tfm1 (); }


Friends And Related Function Documentation

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

Member Data Documentation

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

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

Generated on 6 Dec 2012 for basix by  doxygen 1.6.1