17 #ifndef __deal2__cell_id_h 18 #define __deal2__cell_id_h 20 #include <deal.II/base/config.h> 46 explicit CellId(
unsigned int coarse_cell_id_, std::vector<unsigned char> id_)
47 : coarse_cell_id(coarse_cell_id_), id(id_)
71 unsigned int coarse_cell_id;
72 std::vector<unsigned char> id;
80 os << cid.coarse_cell_id <<
'_' << cid.id.size() <<
':';
81 for (
unsigned int i=0; i<cid.id.size(); ++i)
82 os << static_cast<int>(cid.id[i]);
96 cid.coarse_cell_id = cellid;
107 for (
unsigned int i=0; i<idsize; ++i)
110 cid.id.push_back(value-
'0');
118 if (this->coarse_cell_id != other.coarse_cell_id)
120 return id == other.id;
129 return !(*
this == other);
132 DEAL_II_NAMESPACE_CLOSE
::ExceptionBase & ExcMessage(std::string arg1)
friend std::ostream & operator<<(std::ostream &os, const CellId &cid)
#define Assert(cond, exc)
friend std::istream & operator>>(std::istream &is, CellId &cid)
CellId(unsigned int coarse_cell_id_, std::vector< unsigned char > id_)
bool operator==(const CellId &other) const
bool operator!=(const CellId &other) const