44 #include <OpenMesh/Core/Mesh/BaseKernel.hh> 50 void BaseKernel::property_stats()
const 52 property_stats(std::clog);
54 void BaseKernel::property_stats(std::ostream& _ostr)
const 56 const PropertyContainer::Properties& vps = vprops_.properties();
57 const PropertyContainer::Properties& hps = hprops_.properties();
58 const PropertyContainer::Properties& eps = eprops_.properties();
59 const PropertyContainer::Properties& fps = fprops_.properties();
60 const PropertyContainer::Properties& mps = mprops_.properties();
62 PropertyContainer::Properties::const_iterator it;
64 _ostr << vprops_.size() <<
" vprops:\n";
65 for (it=vps.begin(); it!=vps.end(); ++it)
67 *it ==
nullptr ? (void)(_ostr <<
"[deleted]" <<
"\n") : (*it)->stats(_ostr);
69 _ostr << hprops_.size() <<
" hprops:\n";
70 for (it=hps.begin(); it!=hps.end(); ++it)
72 *it ==
nullptr ? (void)(_ostr <<
"[deleted]" <<
"\n") : (*it)->stats(_ostr);
74 _ostr << eprops_.size() <<
" eprops:\n";
75 for (it=eps.begin(); it!=eps.end(); ++it)
77 *it ==
nullptr ? (void)(_ostr <<
"[deleted]" <<
"\n") : (*it)->stats(_ostr);
79 _ostr << fprops_.size() <<
" fprops:\n";
80 for (it=fps.begin(); it!=fps.end(); ++it)
82 *it ==
nullptr ? (void)(_ostr <<
"[deleted]" <<
"\n") : (*it)->stats(_ostr);
84 _ostr << mprops_.size() <<
" mprops:\n";
85 for (it=mps.begin(); it!=mps.end(); ++it)
87 *it ==
nullptr ? (void)(_ostr <<
"[deleted]" <<
"\n") : (*it)->stats(_ostr);
93 void BaseKernel::vprop_stats( std::string& _string )
const 97 PropertyContainer::Properties::const_iterator it;
98 const PropertyContainer::Properties& vps = vprops_.properties();
99 for (it=vps.begin(); it!=vps.end(); ++it)
100 if ( *it ==
nullptr )
101 _string +=
"[deleted] \n";
103 _string += (*it)->name();
109 void BaseKernel::hprop_stats( std::string& _string )
const 113 PropertyContainer::Properties::const_iterator it;
114 const PropertyContainer::Properties& hps = hprops_.properties();
115 for (it=hps.begin(); it!=hps.end(); ++it)
116 if ( *it ==
nullptr )
117 _string +=
"[deleted] \n";
119 _string += (*it)->name();
125 void BaseKernel::eprop_stats( std::string& _string )
const 129 PropertyContainer::Properties::const_iterator it;
130 const PropertyContainer::Properties& eps = eprops_.properties();
131 for (it=eps.begin(); it!=eps.end(); ++it)
132 if ( *it ==
nullptr )
133 _string +=
"[deleted] \n";
135 _string += (*it)->name();
140 void BaseKernel::fprop_stats( std::string& _string )
const 144 PropertyContainer::Properties::const_iterator it;
145 const PropertyContainer::Properties& fps = fprops_.properties();
146 for (it=fps.begin(); it!=fps.end(); ++it)
147 if ( *it ==
nullptr )
148 _string +=
"[deleted] \n";
150 _string += (*it)->name();
156 void BaseKernel::mprop_stats( std::string& _string )
const 160 PropertyContainer::Properties::const_iterator it;
161 const PropertyContainer::Properties& mps = mprops_.properties();
162 for (it=mps.begin(); it!=mps.end(); ++it)
163 if ( *it ==
nullptr )
164 _string +=
"[deleted] \n";
166 _string += (*it)->name();
172 void BaseKernel::vprop_stats()
const 174 vprop_stats(std::clog);
176 void BaseKernel::vprop_stats(std::ostream& _ostr )
const 178 PropertyContainer::Properties::const_iterator it;
179 const PropertyContainer::Properties& vps = vprops_.properties();
180 for (it=vps.begin(); it!=vps.end(); ++it)
181 *it ==
nullptr ? (
void)(_ostr <<
"[deleted]" <<
"\n") : (*it)->stats(_ostr);
184 void BaseKernel::hprop_stats()
const 186 hprop_stats(std::clog);
188 void BaseKernel::hprop_stats(std::ostream& _ostr )
const 190 PropertyContainer::Properties::const_iterator it;
191 const PropertyContainer::Properties& hps = hprops_.properties();
192 for (it=hps.begin(); it!=hps.end(); ++it)
193 *it ==
nullptr ? (
void)(_ostr <<
"[deleted]" <<
"\n") : (*it)->stats(_ostr);
196 void BaseKernel::eprop_stats()
const 198 eprop_stats(std::clog);
200 void BaseKernel::eprop_stats(std::ostream& _ostr )
const 202 PropertyContainer::Properties::const_iterator it;
203 const PropertyContainer::Properties& eps = eprops_.properties();
204 for (it=eps.begin(); it!=eps.end(); ++it)
205 *it ==
nullptr ? (
void)(_ostr <<
"[deleted]" <<
"\n") : (*it)->stats(_ostr);
208 void BaseKernel::fprop_stats()
const 210 fprop_stats(std::clog);
212 void BaseKernel::fprop_stats(std::ostream& _ostr )
const 214 PropertyContainer::Properties::const_iterator it;
215 const PropertyContainer::Properties& fps = fprops_.properties();
216 for (it=fps.begin(); it!=fps.end(); ++it)
217 *it ==
nullptr ? (
void)(_ostr <<
"[deleted]" <<
"\n") : (*it)->stats(_ostr);
220 void BaseKernel::mprop_stats()
const 222 mprop_stats(std::clog);
224 void BaseKernel::mprop_stats(std::ostream& _ostr )
const 226 PropertyContainer::Properties::const_iterator it;
227 const PropertyContainer::Properties& mps = mprops_.properties();
228 for (it=mps.begin(); it!=mps.end(); ++it)
229 *it ==
nullptr ? (
void)(_ostr <<
"[deleted]" <<
"\n") : (*it)->stats(_ostr);