SPH
Public Member Functions | List of all members
TabInput Class Reference

Simple text input file, having particle masses, positions and velocities on separate lines. More...

#include <Output.h>

Inheritance diagram for TabInput:
IInput Polymorphic

Public Member Functions

 TabInput ()
 
 ~TabInput ()
 
virtual Outcome load (const Path &path, Storage &storage, Statistics &stats) override
 Loads data from the file into the storage. More...
 
- Public Member Functions inherited from Polymorphic
virtual ~Polymorphic ()
 

Detailed Description

Simple text input file, having particle masses, positions and velocities on separate lines.

This format is commonly used by N-body simulations.

Definition at line 569 of file Output.h.

Constructor & Destructor Documentation

◆ TabInput()

TabInput::TabInput ( )

Definition at line 1491 of file Output.cpp.

◆ ~TabInput()

TabInput::~TabInput ( )
default

Member Function Documentation

◆ load()

Outcome TabInput::load ( const Path path,
Storage storage,
Statistics stats 
)
overridevirtual

Loads data from the file into the storage.

This will remove any data previously stored in storage. Function can also load additional run statistics, such as time of the snapshot, and save it to provided stats value.

Implements IInput.

Definition at line 1498 of file Output.cpp.


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