#include <log.h>
Collaboration diagram for Log:
Public Member Functions | |
int | getN (void) |
void | groupInit (void) |
void | writeVertMoveDistribution (int const &) |
void | writeFiles (int const &group) |
void | writeSepDistances (int const &) |
void | updateHauss_1 (std::string const &, double const &, map_s_d &) |
void | updateHauss_2 (std::string const &, o_it const &, double const &, map_s_d &) |
void | updateHauss_1_noself (std::string const &, double const &, map_s_d &) |
void | updateHauss_2_noself (std::string const &, o_it const &, double const &, map_s_d &) |
void | writeCommandSettings (void) |
void | closeFiles (void) |
void | updateFile (int const &, bool, double const &) |
void | statusFileInit (void) |
void | writeObjectList (void) |
void | writeObjectData (void) |
void | updateVertDisplStats (Vertex *const, vector3 const &) |
void | clearVals (void) |
void | writeMoveSummary (int const &, int const &) |
void | writeRefracted (int const &) |
void | writeRefractedNow (int const &group, int code) |
void | writeIntersected (int const &) |
void | writeNonnice (int const &) |
void | writeVD (int const &) |
void | writeAD (int const &group) |
void | printNumNonnice (std::ostream &) const |
void | printNumInt (std::ostream &) const |
void | setTime (time_t) |
void | openMainFile (void) |
void | recordTime (std::string const &) |
void | updateBoxesPerFaceStats (int const &) |
void | calculateFacesPerBoxStats (void) |
void | printPartitioningStats (std::ostream &) const |
void | updateClosestPtStats (int const &, int const &, int const &) |
void | printClosestPtStats (std::ostream &) const |
void | updateVertexSchedulingStats (int const &) |
void | updateMovedVertsFromSet (void) |
void | printVertexSchedulingStats (std::ostream &) const |
void | updateClosestPtSearchStats (int const &, int const &, Search_Stats const &) |
void | printClosestPtSearchStats (std::ostream &) const |
void | openOrDie (std::ofstream *const handle, std::string str, const int &group) |
bool | isGood (Vertex const *const) const |
void | writeDetailedMoveInfo (void) |
void | printBad (Vertex const *const) const |
void | setDetailedInfoPreMove (Vertex *const) |
void | setDetailedInfoPostMove (Vertex *) |
std::string | formatv (char const *fmt, va_list args) |
std::string | format (char const *fmt,...) |
Static Public Member Functions | |
static Log & | instance (void) |
Log & Log::instance | ( | void | ) | [static] |
int Log::getN | ( | void | ) | [inline] |
void Log::groupInit | ( | void | ) |
Initialize this class for start of group.
void Log::writeVertMoveDistribution | ( | int const & | group | ) |
Write to file the distribution of number of moves per vertex since start of last initialization.
[in] | group | Current group number (used as filename suffix). |
void Log::writeFiles | ( | int const & | group | ) |
Write to file the current position of model and diagnostic data.
[in] | group | Current group number. |
void Log::writeSepDistances | ( | int const & | group | ) |
Calculate and write to file the extracellular width (or some metric) of each vertex in model using the stored closest face.
[in] | group | Current group number (used as filename suffix). |
void Log::updateHauss_1 | ( | std::string const & | name, | |
double const & | dd, | |||
map_s_d & | hausdorff_1 | |||
) |
Determine if extracellular distance to object is to be stored.
[in] | name | Identity of neighboring object. |
[in] | dd | Extracellular distance to object. |
[out] | hausdorff_1 | Map of neighboring objects and associated extracellular widths. |
void Log::updateHauss_2 | ( | std::string const & | name, | |
o_it const & | i, | |||
double const & | dd, | |||
map_s_d & | hausdorff_2 | |||
) |
Determine if extracellular distance to object is to be stored.
[in] | name | Identity of neighboring object. |
[in] | i | Object of interest. |
[in] | dd | Extracellular distance to object. |
[out] | hausdorff_2 | Map of neighboring objects and associated extracellular widths. |
void Log::updateHauss_1_noself | ( | std::string const & | name, | |
double const & | dd, | |||
map_s_d & | hausdorff_1_noself | |||
) |
Determine if extracellular distance to object is to be stored.
[in] | name | Identity of neighboring object. |
[in] | dd | Extracellular distance to object. |
[out] | hausdorff_1_noself | Map of neighboring objects and associated extracellular widths. |
void Log::updateHauss_2_noself | ( | std::string const & | name, | |
o_it const & | i, | |||
double const & | dd, | |||
map_s_d & | hausdorff_2_noself | |||
) |
Determine if extracellular distance to object is to be stored.
[in] | name | Identity of neighboring object. |
[in] | i | Object of interest. |
[in] | dd | Extracellular distance to object. |
[out] | hausdorff_2_noself | Map of neighboring objects and associated extracellular widths. |
void Log::writeCommandSettings | ( | void | ) |
Write command parameter settings to file.
void Log::closeFiles | ( | void | ) |
Close output streams of this class.
void Log::updateFile | ( | int const & | group, | |
bool | verts_moved, | |||
double const & | elapsed_time | |||
) |
Write to file the progress of vertex move campaign.
[in] | group | Current group number. |
[in] | not_first_group | True if group is NOT the first group; false otherwise. |
[in] | elapsed_time | Elapsed time since last initialization. |
void Log::statusFileInit | ( | void | ) |
Initialize progress file for vertex move campaign.
void Log::writeObjectList | ( | void | ) |
Write to file a list of objects in model.
void Log::writeObjectData | ( | void | ) |
Write to file the object list and initialize the vertex move campaing progress file.
Update statistics on actual vertex displacements.
[in] | vertex_displ | Most recent vertex displacement. |
void Log::clearVals | ( | void | ) |
Clear members of this class.
void Log::writeMoveSummary | ( | int const & | group, | |
int const & | group_size | |||
) |
Write to STDOUT a brief summary information about the last vertex move.
[in] | group | Current group number (used as filename suffix). |
void Log::writeRefracted | ( | int const & | group | ) |
Write to file all vertices refracted since last initialization.
[in] | group | Current group number (used as filename suffix). |
void Log::writeRefractedNow | ( | int const & | group, | |
int | code | |||
) |
void Log::writeIntersected | ( | int const & | group | ) |
Write to file all intersected faces in model.
[in] | group | Current group number (used as filename suffix). |
void Log::writeNonnice | ( | int const & | group | ) |
Write to file list of nonnice vertices in model.
[in] | group | Current group number (used as filename suffix). |
void Log::writeVD | ( | int const & | group | ) |
Write to file list of seed vertex virtual displacements.
[in] | group | Current group number (used as filename suffix). |
void Log::writeAD | ( | int const & | group | ) |
Write to file list of seed vertex virtual displacements.
[in] | group | Current group number (used as filename suffix). |
void Log::printNumNonnice | ( | std::ostream & | target | ) | const |
Write to output stream the number of vertices recorded nonnice.
[in] | target | Pre-initialized output stream. |
void Log::printNumInt | ( | std::ostream & | target | ) | const |
Write to output stream the number of faces recorded as intersected.
[in] | target | Pre-initialized output stream. |
void Log::setTime | ( | time_t | t | ) |
Initialize time to input value.
[in] | t | New time value. |
void Log::openMainFile | ( | void | ) |
Initialize output stream to main log file.
void Log::recordTime | ( | std::string const & | message | ) |
Write to file elapsed time since last call of this function.
[in] | message | Message to write to file. |
void Log::updateBoxesPerFaceStats | ( | int const & | box_count | ) |
Update statistics on the number of boxes assigned to each face.
[in] | box_count | Number of space partitions assigned to this face. |
void Log::calculateFacesPerBoxStats | ( | void | ) |
void Log::printPartitioningStats | ( | std::ostream & | target | ) | const |
Write to output stream recorded statistics of the number of faces assigned to each box and the number of boxes assigned to each face.
[in] | target | Pre-initialized output stream. |
void Log::updateClosestPtStats | ( | int const & | face_count, | |
int const & | leaves_count, | |||
int const & | f_check_count | |||
) |
Gather statistics on number of faces and boxes invloved in search for closest point to each vertex.
[in] | face_count | Number of faces returned from octree in last search for closest point to current vertex. |
[in] | leaves_count | Number of leaves checked in last search for closest point to current vertex. |
[in] | f_check_count | Number of faces checked in last search for closest point to current vertex. |
void Log::printClosestPtStats | ( | std::ostream & | target | ) | const |
Write to output stream summary statistics for closest point to vertex searches.
[in] | target | Pre-initialized output stream. |
void Log::updateVertexSchedulingStats | ( | int const & | vertex_count | ) |
Update statistics on number of vertices per moved set.
[in] | vertex_count | Number of vertices in last moved set (noting that not all vertices in a moved set are allowed to move). |
void Log::updateMovedVertsFromSet | ( | void | ) |
Update statistics on number of vertices per moved set. (noting that not all vertices in a moved set are allowed to move).
void Log::printVertexSchedulingStats | ( | std::ostream & | target | ) | const |
Write to output streqam statistics on number of vertices per moved set.
[in] | target | Pre-initialized output stream. |
void Log::updateClosestPtSearchStats | ( | int const & | full_search, | |
int const & | partial_search, | |||
Search_Stats const & | ss | |||
) |
Gather statistics on number of vertices undergoing full and partial closest point searches.
[in] | full_search | Number of vertices given a full closest point seach. |
[in] | partial_search | Number of vertices given a partial closest point seach. |
[in] | ss | Collection of vertex counts quantifying how often the closest face to vertex changed. |
void Log::printClosestPtSearchStats | ( | std::ostream & | target | ) | const |
Write to output stream summary statistics for closest point to vertex searches.
[in] | target | Pre-initialized output stream. |
void Log::openOrDie | ( | std::ofstream *const | handle, | |
std::string | str, | |||
const int & | group | |||
) |
bool Log::isGood | ( | Vertex const * const | current_vertex | ) | const |
Assert values are inside valid range for class elements carring detailed vertex move information.
[in] | current_vertex | Vertex of interest, likely, the last vertex moved. |
void Log::writeDetailedMoveInfo | ( | void | ) |
Write to STDOUT detailed information about last vertex move.
void Log::printBad | ( | Vertex const * const | current_vertex | ) | const |
Write to STDOUT debug data for vertex move detailed information.
void Log::setDetailedInfoPreMove | ( | Vertex * const | v | ) |
Record detailed move information of current vertex before the move is attempted.
[in] | v | Vertex to be moved. |
void Log::setDetailedInfoPostMove | ( | Vertex * | v | ) |
Record detailed move information of current vertex after a successfuly move is made.
[in] | v | Last vertex moved. |
std::string Log::formatv | ( | char const * | fmt, | |
va_list | args | |||
) | [inline] |
std::string Log::format | ( | char const * | fmt, | |
... | ||||
) | [inline] |