00001 /** 00002 * \file attribute_statistics.h 00003 * \brief Functions to get report statistics about the used attributes. 00004 * 00005 * Copyright 2007-2010 IMP Inventors. All rights reserved. 00006 */ 00007 00008 #ifndef IMPMISC_ATTRIBUTE_STATISTICS_H 00009 #define IMPMISC_ATTRIBUTE_STATISTICS_H 00010 00011 #include "misc_config.h" 00012 00013 #include <IMP/Model.h> 00014 00015 IMPMISC_BEGIN_NAMESPACE 00016 00017 //! Print statistics about the attributes used in Particles. 00018 /** For each type of attribute, the function prints the names of all 00019 the attributes and a list of how many particles has each pattern 00020 of attributes. Since the attributes are currently stored in 00021 arrays, a pattern is printed as a "-" if the particle doesn't have 00022 that attribute and a "X" if it does. 00023 */ 00024 IMPMISCEXPORT void show_attribute_usage(Model *m, std::ostream &out= std::cout); 00025 00026 00027 IMPMISC_END_NAMESPACE 00028 00029 #endif /* IMPMISC_ATTRIBUTE_STATISTICS_H */