Log Class Reference

#include <log.h>

Collaboration diagram for Log:

Collaboration graph
[legend]
List of all members.

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 Loginstance (void)

Member Function Documentation

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.

Parameters:
[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.

Parameters:
[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.

Parameters:
[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.

Parameters:
[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.

Parameters:
[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.

Parameters:
[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.

Parameters:
[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.

Parameters:
[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.

void Log::updateVertDisplStats ( Vertex * const  v,
vector3 const &  old_pos 
)

Update statistics on actual vertex displacements.

Parameters:
[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.

Parameters:
[in] group Current group number (used as filename suffix).

void Log::writeRefracted ( int const &  group  ) 

Write to file all vertices refracted since last initialization.

Parameters:
[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.

Parameters:
[in] group Current group number (used as filename suffix).

void Log::writeNonnice ( int const &  group  ) 

Write to file list of nonnice vertices in model.

Parameters:
[in] group Current group number (used as filename suffix).

void Log::writeVD ( int const &  group  ) 

Write to file list of seed vertex virtual displacements.

Parameters:
[in] group Current group number (used as filename suffix).

void Log::writeAD ( int const &  group  ) 

Write to file list of seed vertex virtual displacements.

Parameters:
[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.

Parameters:
[in] target Pre-initialized output stream.

void Log::printNumInt ( std::ostream &  target  )  const

Write to output stream the number of faces recorded as intersected.

Parameters:
[in] target Pre-initialized output stream.

void Log::setTime ( time_t  t  ) 

Initialize time to input value.

Parameters:
[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.

Parameters:
[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.

Parameters:
[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.

Parameters:
[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.

Parameters:
[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.

Parameters:
[in] target Pre-initialized output stream.

void Log::updateVertexSchedulingStats ( int const &  vertex_count  ) 

Update statistics on number of vertices per moved set.

Parameters:
[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.

Parameters:
[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.

Parameters:
[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.

Parameters:
[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.

Parameters:
[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.

Parameters:
[in] v Vertex to be moved.

void Log::setDetailedInfoPostMove ( Vertex v  ) 

Record detailed move information of current vertex after a successfuly move is made.

Parameters:
[in] v Last vertex moved.

std::string Log::formatv ( char const *  fmt,
va_list  args 
) [inline]

std::string Log::format ( char const *  fmt,
  ... 
) [inline]


The documentation for this class was generated from the following files:
Generated on Fri Feb 13 13:58:41 2009 for meshmorph by  doxygen 1.5.1