Public Member Functions | List of all members
voronoi_loggers::BinLogger Class Reference

Writes data to a binary file. More...

#include <voronoi_logger.hpp>

Inheritance diagram for voronoi_loggers::BinLogger:
Inheritance graph
[legend]
Collaboration diagram for voronoi_loggers::BinLogger:
Collaboration graph
[legend]

Public Member Functions

 BinLogger (const std::string &file_name)
 Class constructor. More...
 
void output (const VoronoiMesh &v)
 Outputs information from the Voronoi tessellation. More...
 
void output (const Tessellation &v)
 Outputs information from a tessellation. More...
 
vector< Vector2Dread (string location)
 Reads the output information from the Voronoi tessellation. More...
 
- Public Member Functions inherited from voronoi_loggers::VoronoiLogger
 VoronoiLogger (void)
 Class constructor.
 

Detailed Description

Writes data to a binary file.

Definition at line 43 of file voronoi_logger.hpp.

Constructor & Destructor Documentation

◆ BinLogger()

BinLogger::BinLogger ( const std::string &  file_name)
explicit

Class constructor.

Parameters
file_nameName of output file

Definition at line 16 of file voronoi_logger.cpp.

Member Function Documentation

◆ output() [1/2]

void BinLogger::output ( const VoronoiMesh v)
virtual

Outputs information from the Voronoi tessellation.

Parameters
vRefernce to Voronoi tessellation

Reimplemented from voronoi_loggers::VoronoiLogger.

Definition at line 64 of file voronoi_logger.cpp.

Here is the call graph for this function:

◆ output() [2/2]

void BinLogger::output ( const Tessellation v)
virtual

Outputs information from a tessellation.

Parameters
vRefernce to the tessellation

Reimplemented from voronoi_loggers::VoronoiLogger.

Definition at line 19 of file voronoi_logger.cpp.

Here is the call graph for this function:

◆ read()

vector< Vector2D > BinLogger::read ( string  location)

Reads the output information from the Voronoi tessellation.

Parameters
locationName of output file
Returns
The mesh points

Definition at line 109 of file voronoi_logger.cpp.


The documentation for this class was generated from the following files: