ThreeB 1.1
debug.h
Go to the documentation of this file.
00001 #ifndef STORM_INCLUDE_DEBUG_H
00002 #define STORM_INCLUDE_DEBUG_H
00003 
00004 #include <cassert>
00005 
00006 /** Determines that all images in the incoming container are the 
00007 same size, and that the container is not empty
00008 @param images Container to check
00009 @ingroup gDebug
00010 */
00011 template<class C> void assert_same_size(const C& images)
00012 {
00013     assert(!images.empty());
00014     for(typename C::const_iterator i=images.begin(); i != images.end(); i++)
00015         assert(i->size() == images.front().size());
00016 }
00017 
00018 
00019 #endif
00020