BubbleProfiler  0.3.0
by Peter Athron, Csaba Balazs, Michael Bardsley, Andrew Fowlie, Dylan Harries & Graham White
Public Member Functions | Private Member Functions | Private Attributes | List of all members
BubbleProfiler::Profile_observer Class Reference

Observes the profile during iteration and writes out profile, perturbations and action for each step to file. More...

#include <observers.hpp>

Collaboration diagram for BubbleProfiler::Profile_observer:
Collaboration graph
[legend]

Public Member Functions

 Profile_observer (const std::vector< std::string > &fields_, const std::string &output_path_, const Potential &potential_)
 
 Profile_observer (const Profile_observer &)=delete
 
Profile_observeroperator= (const Profile_observer &)=delete
 
void operator() (const Field_profiles &profile, const Field_profiles &perturbation)
 

Private Member Functions

void write_initial_action_to_file (const Field_profiles &profiles)
 
void write_initial_profiles_to_file (const Field_profiles &profiles)
 
void write_initial_perturbations_to_file ()
 
void write_field_profiles_to_file (std::ofstream &stream, const Field_profiles &profiles)
 
void write_action_to_file (const Field_profiles &profiles)
 

Private Attributes

int iteration_count {0}
 
std::vector< std::string > fields {}
 
std::string output_path {}
 
const Potentialpotential
 
std::ofstream action_file
 
std::ofstream profiles_file
 
std::ofstream perturbations_file
 
logging::Basic_logger logger {}
 

Detailed Description

Observes the profile during iteration and writes out profile, perturbations and action for each step to file.

Definition at line 50 of file observers.hpp.

Constructor & Destructor Documentation

BubbleProfiler::Profile_observer::Profile_observer ( const std::vector< std::string > &  fields_,
const std::string &  output_path_,
const Potential potential_ 
)

Definition at line 29 of file observers.cpp.

References action_file, output_path, perturbations_file, and profiles_file.

BubbleProfiler::Profile_observer::Profile_observer ( const Profile_observer )
delete

Member Function Documentation

void BubbleProfiler::Profile_observer::operator() ( const Field_profiles profile,
const Field_profiles perturbation 
)
Profile_observer& BubbleProfiler::Profile_observer::operator= ( const Profile_observer )
delete
void BubbleProfiler::Profile_observer::write_action_to_file ( const Field_profiles profiles)
private
void BubbleProfiler::Profile_observer::write_field_profiles_to_file ( std::ofstream &  stream,
const Field_profiles profiles 
)
private
void BubbleProfiler::Profile_observer::write_initial_action_to_file ( const Field_profiles profiles)
private

Definition at line 42 of file observers.cpp.

References action_file, and write_action_to_file().

Referenced by operator()().

void BubbleProfiler::Profile_observer::write_initial_perturbations_to_file ( )
private

Definition at line 68 of file observers.cpp.

References fields, and perturbations_file.

Referenced by operator()().

void BubbleProfiler::Profile_observer::write_initial_profiles_to_file ( const Field_profiles profiles)
private

Member Data Documentation

std::ofstream BubbleProfiler::Profile_observer::action_file
private
std::vector<std::string> BubbleProfiler::Profile_observer::fields {}
private
int BubbleProfiler::Profile_observer::iteration_count {0}
private

Definition at line 61 of file observers.hpp.

Referenced by operator()(), write_action_to_file(), and write_field_profiles_to_file().

logging::Basic_logger BubbleProfiler::Profile_observer::logger {}
private

Definition at line 68 of file observers.hpp.

Referenced by write_action_to_file(), and write_initial_profiles_to_file().

std::string BubbleProfiler::Profile_observer::output_path {}
private

Definition at line 63 of file observers.hpp.

Referenced by Profile_observer().

std::ofstream BubbleProfiler::Profile_observer::perturbations_file
private

Definition at line 67 of file observers.hpp.

Referenced by operator()(), Profile_observer(), and write_initial_perturbations_to_file().

const Potential& BubbleProfiler::Profile_observer::potential
private

Definition at line 64 of file observers.hpp.

Referenced by write_action_to_file().

std::ofstream BubbleProfiler::Profile_observer::profiles_file
private

Definition at line 66 of file observers.hpp.

Referenced by operator()(), Profile_observer(), and write_initial_profiles_to_file().


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