63 virtual std::ostream&
info(std::ostream&
os)
const;
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;
156 enum tagInfo { NO_TAG = 0, MEMBER = 1, PASSIVE = 2, VLD_IDX = 4, VLD_P = 8 };
195 void deactivate() {
data_ |= PASSIVE; }
201 void validateIdx() {
data_ |= VLD_IDX; }
208 void validateP() {
data_ |= VLD_P; }
212 std::ostream& operator<<(std::ostream&
os,
const AdaptiveControlTag& c);
259 return (i >=
idx_[0] && i <=
idx_[1]);
263 std::ostream& operator<<(std::ostream&
os,
const IndexRange& i);
265 std::ostream& operator<<(std::ostream&
os,
266 const std::map<uint, IndexRange>& map);
276 template<
class F = u
int>
304 template<u
int levelDim = 1>
322 template<u
int levelDim>
323 std::ostream& operator<<(std::ostream&
os,
337 template<
class F = Connector,
class Tadj =
class AdaptiveAdjust<1> >
355 template<
class F,
class Tadj =
class AdaptiveAdjust<1> >
381 virtual std::ostream&
info(std::ostream&
os)
const {
383 <<
">(dim = " << dim_ <<
')'; }
407 template<
typename F = Real>
412 virtual std::ostream&
info(std::ostream&
os)
const;
419 os << spc_ << std::endl;
420 std::unique_ptr<typename Space<F>::Scanner>
sc(spc_.scan());
424 os << i++ <<
". element = " << elm << std::endl;
AdaptiveAdjust()
Default constructor.
Level< levelDim > level_
Level in several dimensions.
virtual void adjust(const Element< F > &elm, const Tadj &a)=0
virtual void adjust(const F &cell, const Tadj &a)=0
Adjusts in the next rebuild step for this cell.
virtual Scan * scan() const
Returns a scanner to iterate over the elements of the space.
virtual uint dim() const
Returns the dimension of the space.
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
virtual uint nelm() const
Returns the number of elements in the space.
virtual ElementWithCell< F > & operator++(int)=0
Returns the next element in the scanned set.
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
virtual uint dim() const =0
Returns the dimension of the space.
virtual Scanner * scan() const =0
Returns a scanner to iterate over the elements of the space.
virtual uint nelm() const =0
Returns the number of elements in 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.
virtual uint dim() const =0
Returns the dimension of the space.
virtual Scanner * scan() const =0
Returns a scanner to iterate over the elements of the space.
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
virtual uint nelm() const =0
Returns the number of elements in the space.
virtual uint & lastIdx()=0
Returns last global index of the space.
virtual uint offset() const =0
Returns the offset.
Set< F > makeSet(uint n, const F &first,...)
unsigned char uchar
Abbreviation for unsigned char.
uchar operator=(const uchar &t)
Assignement operator.
AdaptiveControlTag(uchar t=0)
Constructor.
void takeIn()
Takes into the space.
void takeOut()
Takes out of the space.
AdaptiveControl()
Default constructor.
AdaptiveControlTag tag_
Control information.
uint dim() const
Number of indices.
bool exist(uint i) const
Returns if an index is inside the index range.
bool operator==(uint i) const
Comparison with beginning index.
bool operator<(const IndexRange &i) const
Comparison of beginning indices.
IndexRange & operator=(const IndexRange &i)
Assigment operator.
bool operator==(const IndexRange &i) const
Comparison.
IndexRange(uint idx)
Constructor, where is only on index assigned.
IndexRange & operator=(uint i)
Assigment operator.
IndexRange(uint idxBegin, uint idxEnd)
Constructor for several successive indices.
IndexRange()
Default constructor.
std::set< uint > operator()()
Returns a set of the indices.
IndexRange & operator+=(uint i)
Shift operator.