Go to the documentation of this file.
55 virtual uint
dim()
const = 0;
58 virtual uint
nelm()
const = 0;
63 virtual std::ostream&
info(std::ostream& os)
const;
90 virtual uint
dim()
const = 0;
93 virtual uint
nelm()
const = 0;
96 virtual std::ostream&
info(std::ostream& os)
const;
126 template<u
int dimC,
class F>
130 virtual const std::set<typename CellType<dimC>::cell * >
allCells()
const = 0;
133 virtual std::ostream&
info(std::ostream& os)
const;
260 const std::map<uint, IndexRange>& map);
270 template<
class F = u
int>
298 template<u
int levelDim = 1>
316 template<u
int levelDim>
331 template<
class F = Connector,
class Tadj =
class AdaptiveAdjust<1> >
336 virtual void adjust(
const F& cell,
const Tadj& a) = 0;
349 template<
class F,
class Tadj =
class AdaptiveAdjust<1> >
372 virtual uint
nelm()
const {
return 0; }
375 virtual std::ostream&
info(std::ostream& os)
const {
377 <<
">(dim = " <<
dim_ <<
')'; }
401 template<
typename F = Real>
406 virtual std::ostream&
info(std::ostream& os)
const;
413 os << spc_ << std::endl;
414 std::unique_ptr<typename Space<F>::Scanner> sc(spc_.scan());
418 os << i++ <<
". element = " << elm << std::endl;
425 #endif // spcSpace_hh
virtual void adjust(const Element< F > &elm, const Tadj &a)=0
Adjusts the space in the next rebuild step for this element.
An abstract class for an element of a space.
bool pValid() const
Checks for a valid polynomial degree.
virtual uint nelm() const =0
Returns the number of elements in the space.
Scan< Element< F > > Scanner
bool operator<(const IndexRange &i) const
Comparison of beginning indices.
AdaptiveAdjust()
Default constructor.
IndexRange(uint idxBegin, uint idxEnd)
Constructor for several successive indices.
Base class for exceptions.
Abstract class for a space.
AdaptiveAdjust(short l)
Constructor.
virtual uint dim() const
Returns the dimension of the space.
virtual uint offset() const =0
Returns the offset.
Class for a range of global indices.
virtual uint dim() const =0
Returns the dimension of the space.
uint idx_[2]
Begin and end of a unique range of indices of element.
bool isPassive() const
Checks activity.
unsigned char uchar
Abbreviation for unsigned char.
bool isActive() const
Checks activity.
virtual uint dim() const =0
Returns the dimension of the space.
virtual void adjust(const F &cell, const Tadj &a)=0
Adjusts in the next rebuild step for this cell.
SpaceDebug(const Space< F > &spc)
ElementWithCell< F > type
F idx_
Unique index of element.
virtual Scan * scan() const
Returns a scanner to iterate over the elements of the space.
AdaptiveControlTag tag_
Control information.
virtual const std::set< typename CellType< dimC >::cell * > allCells() const =0
Class for holding an offset of global indices of space.
Class to describe control structures of an adaptive space.
Abstract base class for an adaptive classes, a.o.t.
virtual std::ostream & info(std::ostream &os) const
IndexRange & operator=(IndexRange &i)
Level< levelDim > level_
Level in several dimensions.
tagInfo
Enumeration of the bit values in data_.
AdaptiveControl()
Default constructor.
std::ostream & operator<<(std::ostream &os, const Level< dim > &c)
Name traits for number types.
virtual Scanner * scan() const =0
Returns a scanner to iterate over the elements of the space.
concepts::Scan< concepts::Element< F > > Scan
Interface class for SpacesOnCells that also allow for allCells(), that i.e.
An abstract class for scanning a mesh (a set of cells) or a space (a set of elements).
void takeOut()
Takes out of the space.
bool idxValid() const
Checks for a valid index.
virtual ElementWithCell< F > & operator++(int)=0
Returns the next element in the scanned set.
bool operator==(uint i) const
Comparison with beginning index.
IndexRange()
Default constructor.
Indicates that the space on which a function was called was not yet correctly built.
virtual std::ostream & info(std::ostream &os) const
void takeIn()
Takes into the space.
bool isMember() const
Checks member of the space.
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
virtual uint getOutputDimension() const
Returns the default output dimension, when we consider plotting a real-valued operator on this space.
Abstract class for a space.
virtual std::ostream & info(std::ostream &os) const
virtual uint & lastIdx()=0
Returns last global index of the space.
AdaptiveControlTag(uchar t=0)
Constructor.
bool operator==(const IndexRange &i) const
Comparison.
virtual std::ostream & info(std::ostream &os) const
virtual uint nelm() const =0
Returns the number of elements in the space.
uint dim() const
Number of indices.
Class to describe adjustments to elements in an adaptive space.
Tag information which is used in AdaptiveControl.
IndexRange & operator=(const IndexRange &i)
Assigment operator.
virtual Scanner * scan() const =0
Returns a scanner to iterate over the elements of the space.
IndexRange & operator=(uint i)
Assigment operator.
Scan< ElementWithCell< F > > Scanner
Abstract base class for an adaptive space.
uchar operator=(const uchar &t)
Assignement operator.
uchar data_
Control information.
Class providing an output operator.
Space for a given dimension but without more functionality.
IndexRange(uint idx)
Constructor, where is only on index assigned.
Class for output of all elements of a class, good for debugging.
Basic namespace for Concepts-2.
virtual uint nelm() const
Returns the number of elements in the space.
std::set< uint > operator()()
Returns a set of the indices.