29 class S :
public Scan<Cell2> {
33 inline S(
Cell2 *(&cell)[3]) : idx_(0), cell_(cell) {}
34 inline S(
const S&
scan) : idx_(
scan.idx_), cell_(
scan.cell_) {}
35 inline bool eos()
const {
return idx_ == 3; }
36 inline Cell2& operator++(
int) {
return *cell_[idx_++]; }
37 inline Scan2* clone()
const {
return new S(*
this); }
50 inline unsigned int ncell()
const {
return 3; }
52 virtual std::ostream&
info(std::ostream&
os)
const;
73 class S :
public Scan<Cell2> {
77 inline S(
Cell2 *(&cell)[2]) : idx_(0), cell_(cell) {}
78 inline S(
const S&
scan) : idx_(
scan.idx_), cell_(
scan.cell_) {}
79 inline bool eos()
const {
return idx_ == 2; }
80 inline Cell2& operator++(
int) {
return *cell_[idx_++]; }
81 inline Scan2* clone()
const {
return new S(*
this); }
94 inline unsigned int ncell()
const {
return 2; }
96 virtual std::ostream&
info(std::ostream&
os)
const;
unsigned int ncell() const
Returns the number of cells in the mesh.
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.
unsigned int ncell() const
Returns the number of cells in the mesh.
Set< F > makeSet(uint n, const F &first,...)