47 content_.push_back(quad);
59 case 0 : south_ = edge; s_p =
pos;
break;
60 case 1 : east_ = edge; e_p =
pos;
break;
61 case 2 : north_ = edge; n_p =
pos;
break;
62 case 3 : west_ = edge; w_p =
pos;
break;
70 content_.push_back(quad);
73 const uint nEdges()
const {
79 if(content_.size() == 1)
82 DEBUGL(1,
"content_ "<< content_);
93 return south_->node((s_p + 1) % 2);
99 return east_->node((e_p + 1) % 2);
105 return north_->node((n_p + 1) % 2);
111 return west_->node((w_p + 1) % 2);
122 virtual std::ostream&
info(std::ostream&
os)
const {
123 os <<
"MacroElementNode[ #content = " << content_.size() << std::endl;
124 if (content_.size() == 1){
125 os <<
" has south : " << ((south_) ?
"true" :
"false" )<< std::endl
126 <<
" has east : " << ((east_) ?
"true" :
"false" )<< std::endl
127 <<
" has north : " << ((north_) ?
"true" :
"false") << std::endl
128 <<
" has west : " << ((west_) ?
"true" :
"false") << std::endl;
130 if(content_.size()==1){
131 os <<
"content key = "<< content_[0]->support().key() << std::endl;
133 os <<
"south key = " << neighbour(0)->get()->
support().
key() << std::endl;
135 os <<
"east key = " << neighbour(1)->get()->
support().
key() << std::endl;
137 os <<
"north key = " << neighbour(2)->get()->
support().
key() << std::endl;
139 os <<
"west key = " << neighbour(3)->get()->
support().
key() << std::endl;
148 uint s_p, e_p, n_p, w_p;