![]() |
#include <Table.h>
Inheritance diagram for dolfin::Table< T >:
Public Member Functions | |
Table () | |
Constructor. | |
~Table () | |
Destructor. | |
void | clear () |
Clear table. | |
T & | create () |
Create a new element in the table. | |
T & | create (int &id) |
Create a new element in the table. | |
T & | add (T x) |
Add an element to the table. | |
T & | operator() (int id) |
Return element with given id. | |
void | remove (T &x) |
Remove element at given address. | |
int | size () const |
Return the size of the table. | |
bool | empty () const |
Check if the table is empty. | |
Iterator | begin () const |
Return an iterator positioned at the beginning of the table. | |
Iterator | end () const |
Return an iterator positioned at the end of the table. | |
Iterator | iterator (int id) |
Return an iterator positioned at the element with given id. | |
Friends | |
class | Block |
Friends. | |
class | Iterator |
template<class X> LogStream & | operator<< (LogStream &stream, const Table< X > &table) |
Output. |
Elements can be dynamically added to (or removed from) the table. New blocks of size BLOCK_SIZE are allocated when needed.
|
Constructor.
|
|
Destructor.
|
|
Add an element to the table.
|
|
Return an iterator positioned at the beginning of the table.
|
|
Clear table.
|
|
Create a new element in the table.
|
|
Create a new element in the table.
|
|
Check if the table is empty.
|
|
Return an iterator positioned at the end of the table.
|
|
Return an iterator positioned at the element with given id.
|
|
Return element with given id.
|
|
Remove element at given address.
|
|
Return the size of the table.
|
|
Friends.
|
|
|
|
Output.
|
Documentation automatically generated with Doxygen on 10 Sep 2004.