17 #ifndef __deal2__mapping_collection_h
18 #define __deal2__mapping_collection_h
20 #include <deal.II/base/config.h>
21 #include <deal.II/base/subscriptor.h>
22 #include <deal.II/fe/mapping_q1.h>
23 #include <deal.II/fe/fe.h>
26 #include <deal.II/base/std_cxx1x/shared_ptr.h>
28 DEAL_II_NAMESPACE_OPEN
55 template<
int dim,
int spacedim=dim>
120 unsigned int size ()
const;
135 std::vector<std_cxx1x::shared_ptr<const Mapping<dim,spacedim> > >
mappings;
146 template<
int dim,
int spacedim=dim>
174 template<
int dim,
int spacedim>
179 return mappings.size();
184 template<
int dim,
int spacedim>
189 Assert (index < mappings.size (),
191 return *mappings[index];
197 DEAL_II_NAMESPACE_CLOSE
void push_back(const Mapping< dim, spacedim > &new_mapping)
static MappingCollection< dim, spacedim > mapping_collection
std::size_t memory_consumption() const
#define Assert(cond, exc)
::ExceptionBase & ExcIndexRange(int arg1, int arg2, int arg3)
static MappingQ1< dim, spacedim > mapping_q1
const Mapping< dim, spacedim > & operator[](const unsigned int index) const
unsigned int size() const
std::vector< std_cxx1x::shared_ptr< const Mapping< dim, spacedim > > > mappings