16 #ifndef dealii_q_collection_h 17 #define dealii_q_collection_h 19 #include <deal.II/base/config.h> 20 #include <deal.II/base/subscriptor.h> 21 #include <deal.II/base/quadrature.h> 22 #include <deal.II/base/memory_consumption.h> 23 #include <deal.II/fe/fe.h> 28 DEAL_II_NAMESPACE_OPEN
101 unsigned int size ()
const;
127 std::vector<std::shared_ptr<const Quadrature<dim> > >
quadratures;
139 return quadratures.size();
149 Assert (quadratures.size() > 0,
150 ExcMessage (
"You can't call this function for an empty collection"));
153 for (
unsigned int i=0; i<quadratures.size(); ++i)
154 if (quadratures[i]->size() > m)
155 m = quadratures[i]->size();
167 Assert (index < quadratures.size (),
169 return *quadratures[index];
178 quadratures.push_back (std::make_shared<
const Quadrature<dim> >(quadrature));
188 return (
sizeof(*
this) +
198 quadratures.push_back (std::make_shared<
const Quadrature<dim> >(new_quadrature));
204 DEAL_II_NAMESPACE_CLOSE
std::size_t memory_consumption() const
std::vector< std::shared_ptr< const Quadrature< dim > > > quadratures
static ::ExceptionBase & ExcIndexRange(int arg1, int arg2, int arg3)
const Quadrature< dim > & operator[](const unsigned int index) const
static ::ExceptionBase & ExcMessage(std::string arg1)
unsigned int max_n_quadrature_points() const
#define Assert(cond, exc)
#define DeclException0(Exception0)
unsigned int size() const
static ::ExceptionBase & ExcNoQuadrature()
void push_back(const Quadrature< dim > &new_quadrature)
std::enable_if< std::is_fundamental< T >::value, std::size_t >::type memory_consumption(const T &t)