57 virtual std::ostream&
info(std::ostream&
os)
const;
72 class S :
public Scan<Cell1> {
77 inline S(
const S &
scan) : idx_(
scan.idx_), cell_(
scan.cell_) {}
79 inline bool eos()
const {
return idx_ == cell_->size(); }
80 inline Edge2d& operator++(
int) {
return *(*cell_)[idx_++]; }
82 inline Scan1* clone()
const {
return new S(*
this); }
100 virtual std::ostream&
info(std::ostream&
os)
const;
103 class S :
public Scan<Cell1> {
109 inline S(
const S &
scan) : idx_(
scan.idx_),
112 inline bool eos()
const {
return idx_ == cell_->size(); }
113 inline Cell1& operator++(
int) {
return *(*cell_)[idx_++]; }
115 inline Scan1* clone()
const {
return new S(*
this); }
129 const uint n,
const uint attrib = 0);
137 virtual std::ostream&
info(std::ostream&
os)
const;
140 class S :
public Scan<Cell1> {
146 inline S(
const S &
scan) : idx_(
scan.idx_),
149 inline bool eos()
const {
return idx_ == cell_->size(); }
150 inline Cell1& operator++(
int) {
return *(*cell_)[idx_++]; }
152 inline Scan1* clone()
const {
return new S(*
this); }
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
uint ncell() const
Returns the number of cells in the mesh.
EdgeMesh(const MappingEdge2d *map, Attribute attrib=Attribute())
Array< MappingEdge2d * > edges_
Edge parametrisation.
EdgeMesh(const uint n, bool closed, const Sequence< MappingEdge2d * > &maps, Attribute attrib=Attribute(), Sequence< Attribute > vattrib=Sequence< Attribute >())
Sequence< Edge2d * > cell_
Cells.
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
uint ncell() const
Returns the number of cells in the mesh.
Sequence< Edge2d * > outerBoundary_
Outer boundary given by edges in 2D.
uint ncell() const
Returns the number of cells in the mesh.
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
Scan< Cell1 > Scan1
A scanner for a 1D mesh.
Set< F > makeSet(uint n, const F &first,...)