
Public Member Functions | |
| MGLevelObject (const unsigned int minlevel=0, const unsigned int maxlevel=0) | |
| Object & | operator[] (const unsigned int level) |
| const Object & | operator[] (const unsigned int level) const |
| void | resize (const unsigned int new_minlevel, const unsigned int new_maxlevel) |
| MGLevelObject< Object > & | operator= (const double d) |
| void | clear () |
| unsigned int | min_level () const |
| unsigned int | max_level () const |
| unsigned int | get_minlevel () const DEAL_II_DEPRECATED |
| unsigned int | get_maxlevel () const DEAL_II_DEPRECATED |
| std::size_t | memory_consumption () const |
Public Member Functions inherited from Subscriptor | |
| Subscriptor () | |
| Subscriptor (const Subscriptor &) | |
| virtual | ~Subscriptor () |
| Subscriptor & | operator= (const Subscriptor &) |
| void | subscribe (const char *identifier=0) const |
| void | unsubscribe (const char *identifier=0) const |
| unsigned int | n_subscriptions () const |
| void | list_subscribers () const |
| DeclException3 (ExcInUse, int, char *, std::string &,<< "Object of class "<< arg2<< " is still used by "<< arg1<< " other objects.\n"<< "(Additional information: "<< arg3<< ")\n"<< "Note the entry in the Frequently Asked Questions of "<< "deal.II (linked to from http://www.dealii.org/) for "<< "more information on what this error means.") | |
| DeclException2 (ExcNoSubscriber, char *, char *,<< "No subscriber with identifier \""<< arg2<< "\" did subscribe to this object of class "<< arg1) | |
| template<class Archive > | |
| void | serialize (Archive &ar, const unsigned int version) |
Private Attributes | |
| unsigned int | minlevel |
| std::vector < std_cxx1x::shared_ptr < Object > > | objects |
An array with an object for each level. The purpose of this class is mostly to store objects and allow access by level number, even if the lower levels are not used and therefore have no object at all; this is done by simply shifting the given index by the minimum level we have stored.
In most cases, the objects which are stored on each levels, are either matrices or vectors.
| MGLevelObject< Object >::MGLevelObject | ( | const unsigned int | minlevel = 0, |
| const unsigned int | maxlevel = 0 |
||
| ) |
Constructor allowing to initialize the number of levels. By default, the object is created empty.
Definition at line 132 of file mg_level_object.h.
References MGLevelObject< typename >::resize().
| Object & MGLevelObject< Object >::operator[] | ( | const unsigned int | level | ) |
Access object on level level.
Definition at line 143 of file mg_level_object.h.
References Assert, StandardExceptions::ExcIndexRange(), MGLevelObject< typename >::minlevel, and MGLevelObject< typename >::objects.
| const Object & MGLevelObject< Object >::operator[] | ( | const unsigned int | level | ) | const |
Access object on level level. Constant version.
Definition at line 153 of file mg_level_object.h.
References Assert, StandardExceptions::ExcIndexRange(), MGLevelObject< typename >::minlevel, and MGLevelObject< typename >::objects.
| void MGLevelObject< Object >::resize | ( | const unsigned int | new_minlevel, |
| const unsigned int | new_maxlevel | ||
| ) |
Delete all previous contents of this object and reset its size according to the values of new_minlevel and new_maxlevel.
Definition at line 163 of file mg_level_object.h.
References Assert, StandardExceptions::ExcInternalError(), MGLevelObject< typename >::minlevel, and MGLevelObject< typename >::objects.
Referenced by MGLevelObject< typename >::MGLevelObject(), MGMatrixBlockVector< MATRIX >::reinit_edge(), MGMatrixBlockVector< MATRIX >::reinit_edge_flux(), and MGMatrixBlockVector< MATRIX >::reinit_matrix().
| MGLevelObject< Object > & MGLevelObject< Object >::operator= | ( | const double | d | ) |
Call operator = (s) on all objects stored by this object. This is particularly useful for e.g. Object==Vector<T>
Definition at line 181 of file mg_level_object.h.
References MGLevelObject< typename >::objects.
| void MGLevelObject< Object >::clear | ( | ) |
Call clear on all objects stored by this object. This function is only implemented for some Object classes, e.g. the PreconditionBlockSOR and similar classes.
Definition at line 192 of file mg_level_object.h.
References MGLevelObject< typename >::objects.
| unsigned int MGLevelObject< Object >::min_level | ( | ) | const |
Coarsest level for multigrid.
Definition at line 218 of file mg_level_object.h.
References MGLevelObject< typename >::minlevel.
Referenced by MGMatrixBlockVector< MATRIX >::clear_object(), mg::Matrix< VECTOR >::initialize(), MeshWorker::LocalResults< number >::initialize_matrices(), MGMatrixBlockVector< MATRIX >::reinit_edge(), MGMatrixBlockVector< MATRIX >::reinit_edge_flux(), and MGMatrixBlockVector< MATRIX >::reinit_matrix().
| unsigned int MGLevelObject< Object >::max_level | ( | ) | const |
Finest level for multigrid.
Definition at line 226 of file mg_level_object.h.
References MGLevelObject< typename >::minlevel, and MGLevelObject< typename >::objects.
Referenced by MGMatrixBlockVector< MATRIX >::clear_object(), mg::Matrix< VECTOR >::initialize(), MGMatrixBlockVector< MATRIX >::reinit_edge(), MGMatrixBlockVector< MATRIX >::reinit_edge_flux(), and MGMatrixBlockVector< MATRIX >::reinit_matrix().
| unsigned int MGLevelObject< Object >::get_minlevel | ( | ) | const |
Definition at line 202 of file mg_level_object.h.
References MGLevelObject< typename >::minlevel.
| unsigned int MGLevelObject< Object >::get_maxlevel | ( | ) | const |
Definition at line 210 of file mg_level_object.h.
References MGLevelObject< typename >::minlevel, and MGLevelObject< typename >::objects.
| std::size_t MGLevelObject< Object >::memory_consumption | ( | ) | const |
Memory used by this object.
Definition at line 234 of file mg_level_object.h.
References MGLevelObject< typename >::objects.
|
private |
Level of first component.
Definition at line 119 of file mg_level_object.h.
Referenced by MGLevelObject< typename >::get_maxlevel(), MGLevelObject< typename >::get_minlevel(), MGLevelObject< typename >::max_level(), MGLevelObject< typename >::min_level(), MGLevelObject< typename >::operator[](), and MGLevelObject< typename >::resize().
|
private |
Array of the objects to be held.
Definition at line 124 of file mg_level_object.h.
Referenced by MGLevelObject< typename >::clear(), MGLevelObject< typename >::get_maxlevel(), MGLevelObject< typename >::max_level(), MGLevelObject< typename >::memory_consumption(), MGLevelObject< typename >::operator=(), MGLevelObject< typename >::operator[](), and MGLevelObject< typename >::resize().