165 unsigned int nbok = 0;
178 MyImage image(
new VImage(
domain) );
182 nbok += image.isValid() ? 1 : 0;
186 VImage * imContainer =
191 MyImage image2(imContainer);
193 const MyImage::ImagePointer p = image2.getPointer();
197 nbok += (image2.isValid()) ? 1 : 0;
201 trace.
info() << imContainer << std::endl;
202 nbok += (p.get() == imContainer) ? 1 : 0;
205 trace.
info() <<
"(" << nbok <<
"/" << nb <<
") "
206 <<
"true == true" << std::endl;
214 unsigned int nbok = 0;
228 MyImage image(
new VImage(
domain) );
229 trace.
info() <<
"Image constructed: "<< image <<std::endl;
231 VImage myImageC(
domain );
232 MyImage imageFromConstRef ( myImageC );
233 trace.
info() <<
"Image constructed (from constRef): "<< imageFromConstRef <<std::endl;
234 nbok += (imageFromConstRef.getPointer().count()== 2) ? 1 : 0;
236 trace.
info() <<
"(" << nbok <<
"/" << nb <<
") "
237 <<
"unique" << std::endl;
240 trace.
info() <<
"Image constructed (degulat): "<< image3 <<std::endl;
243 trace.
info() <<
"default: "<< image3 <<std::endl;
245 nbok += (image3.getPointer().count()== 3) ? 1 : 0;
247 trace.
info() <<
"(" << nbok <<
"/" << nb <<
") "
248 <<
"true == true" << std::endl;
249 trace.
info() <<
"assignment: "<< image3 <<std::endl;
250 nbok += (image3.getPointer().count()== 3) ? 1 : 0;
252 trace.
info() <<
"(" << nbok <<
"/" << nb <<
") "
253 <<
"true == true" << std::endl;
256 trace.
info() <<
"setValue on assigned: "<< image3 <<std::endl;
257 nbok += (image3.getPointer().count()== 2) ? 1 : 0;
260 MyImage image4(image3);
261 trace.
info() <<
"Image constructed (copy): "<< image4 <<std::endl;
262 nbok += (image4.getPointer().count()== 3) ? 1 : 0;
266 trace.
info() <<
"(" << nbok <<
"/" << nb <<
") "
267 <<
"true == true" << std::endl;
Iterator for HyperRectDomain.