49 #include <OpenMesh/Core/Mesh/BaseKernel.hh> 55 void BaseKernel::property_stats()
const 57 property_stats(std::clog);
59 void BaseKernel::property_stats(std::ostream& _ostr)
const 61 const PropertyContainer::Properties& vps = vprops_.properties();
62 const PropertyContainer::Properties& hps = hprops_.properties();
63 const PropertyContainer::Properties& eps = eprops_.properties();
64 const PropertyContainer::Properties& fps = fprops_.properties();
65 const PropertyContainer::Properties& mps = mprops_.properties();
67 PropertyContainer::Properties::const_iterator it;
69 _ostr << vprops_.size() <<
" vprops:\n";
70 for (it=vps.begin(); it!=vps.end(); ++it)
72 *it == NULL ? (void)(_ostr <<
"[deleted]" <<
"\n") : (*it)->stats(_ostr);
74 _ostr << hprops_.size() <<
" hprops:\n";
75 for (it=hps.begin(); it!=hps.end(); ++it)
77 *it == NULL ? (void)(_ostr <<
"[deleted]" <<
"\n") : (*it)->stats(_ostr);
79 _ostr << eprops_.size() <<
" eprops:\n";
80 for (it=eps.begin(); it!=eps.end(); ++it)
82 *it == NULL ? (void)(_ostr <<
"[deleted]" <<
"\n") : (*it)->stats(_ostr);
84 _ostr << fprops_.size() <<
" fprops:\n";
85 for (it=fps.begin(); it!=fps.end(); ++it)
87 *it == NULL ? (void)(_ostr <<
"[deleted]" <<
"\n") : (*it)->stats(_ostr);
89 _ostr << mprops_.size() <<
" mprops:\n";
90 for (it=mps.begin(); it!=mps.end(); ++it)
92 *it == NULL ? (void)(_ostr <<
"[deleted]" <<
"\n") : (*it)->stats(_ostr);
98 void BaseKernel::vprop_stats( std::string& _string )
const 102 PropertyContainer::Properties::const_iterator it;
103 const PropertyContainer::Properties& vps = vprops_.properties();
104 for (it=vps.begin(); it!=vps.end(); ++it)
106 _string +=
"[deleted] \n";
108 _string += (*it)->name();
114 void BaseKernel::hprop_stats( std::string& _string )
const 118 PropertyContainer::Properties::const_iterator it;
119 const PropertyContainer::Properties& hps = hprops_.properties();
120 for (it=hps.begin(); it!=hps.end(); ++it)
122 _string +=
"[deleted] \n";
124 _string += (*it)->name();
130 void BaseKernel::eprop_stats( std::string& _string )
const 134 PropertyContainer::Properties::const_iterator it;
135 const PropertyContainer::Properties& eps = eprops_.properties();
136 for (it=eps.begin(); it!=eps.end(); ++it)
138 _string +=
"[deleted] \n";
140 _string += (*it)->name();
145 void BaseKernel::fprop_stats( std::string& _string )
const 149 PropertyContainer::Properties::const_iterator it;
150 const PropertyContainer::Properties& fps = fprops_.properties();
151 for (it=fps.begin(); it!=fps.end(); ++it)
153 _string +=
"[deleted] \n";
155 _string += (*it)->name();
161 void BaseKernel::mprop_stats( std::string& _string )
const 165 PropertyContainer::Properties::const_iterator it;
166 const PropertyContainer::Properties& mps = mprops_.properties();
167 for (it=mps.begin(); it!=mps.end(); ++it)
169 _string +=
"[deleted] \n";
171 _string += (*it)->name();
177 void BaseKernel::vprop_stats()
const 179 vprop_stats(std::clog);
181 void BaseKernel::vprop_stats(std::ostream& _ostr )
const 183 PropertyContainer::Properties::const_iterator it;
184 const PropertyContainer::Properties& vps = vprops_.properties();
185 for (it=vps.begin(); it!=vps.end(); ++it)
186 *it == NULL ? (
void)(_ostr <<
"[deleted]" <<
"\n") : (*it)->stats(_ostr);
189 void BaseKernel::hprop_stats()
const 191 hprop_stats(std::clog);
193 void BaseKernel::hprop_stats(std::ostream& _ostr )
const 195 PropertyContainer::Properties::const_iterator it;
196 const PropertyContainer::Properties& hps = hprops_.properties();
197 for (it=hps.begin(); it!=hps.end(); ++it)
198 *it == NULL ? (
void)(_ostr <<
"[deleted]" <<
"\n") : (*it)->stats(_ostr);
201 void BaseKernel::eprop_stats()
const 203 eprop_stats(std::clog);
205 void BaseKernel::eprop_stats(std::ostream& _ostr )
const 207 PropertyContainer::Properties::const_iterator it;
208 const PropertyContainer::Properties& eps = eprops_.properties();
209 for (it=eps.begin(); it!=eps.end(); ++it)
210 *it == NULL ? (
void)(_ostr <<
"[deleted]" <<
"\n") : (*it)->stats(_ostr);
213 void BaseKernel::fprop_stats()
const 215 fprop_stats(std::clog);
217 void BaseKernel::fprop_stats(std::ostream& _ostr )
const 219 PropertyContainer::Properties::const_iterator it;
220 const PropertyContainer::Properties& fps = fprops_.properties();
221 for (it=fps.begin(); it!=fps.end(); ++it)
222 *it == NULL ? (
void)(_ostr <<
"[deleted]" <<
"\n") : (*it)->stats(_ostr);
225 void BaseKernel::mprop_stats()
const 227 mprop_stats(std::clog);
229 void BaseKernel::mprop_stats(std::ostream& _ostr )
const 231 PropertyContainer::Properties::const_iterator it;
232 const PropertyContainer::Properties& mps = mprops_.properties();
233 for (it=mps.begin(); it!=mps.end(); ++it)
234 *it == NULL ? (
void)(_ostr <<
"[deleted]" <<
"\n") : (*it)->stats(_ostr);