Specification for the structure file interface.
More...
#include <structure.h>
Specification for the structure file interface.
- See also
- XYZ for an XYZ/EXTXYZ implementation.
- See also
- CONFIG for a CONFIG implementation.
◆ Structure()
Structure::Structure |
( |
std::filesystem::path |
path, |
|
|
bool |
blocking = false |
|
) |
| |
|
inline |
◆ ~Structure()
◆ atomCount()
Get the number of atoms in the file.
- Returns
- uint64_t the number of atoms.
◆ beginning()
◆ cachePositions()
void Structure::cachePositions |
( |
| ) |
|
|
inlineprotected |
◆ checkRead()
void Structure::checkRead |
( |
std::stringstream & |
ss, |
|
|
std::string |
lastInput, |
|
|
std::string |
context |
|
) |
| |
|
inlineprotected |
◆ countContentLinesInFile()
void Structure::countContentLinesInFile |
( |
| ) |
|
|
inlineprotected |
◆ frameCount()
uint64_t Structure::frameCount |
( |
| ) |
const |
|
inline |
Get the number of frames.
- Returns
- uint64_t the frame count.
◆ framePosition()
uint64_t Structure::framePosition |
( |
| ) |
const |
|
inline |
Get the current frame index.
- Returns
- uint64_t the current frame index.
◆ framePositionsLoaded()
bool Structure::framePositionsLoaded |
( |
| ) |
const |
|
inline |
Check if frames start positions have been loaded.
- Returns
- true if all frame start offsets have been loaded.
-
false frame start positions are still being read.
◆ frameReadComplete()
bool Structure::frameReadComplete |
( |
| ) |
const |
|
inline |
If the frame has been fully read into atoms.
- Returns
- true if all Atoms in the frame have been read.
-
false if reading is in progress.
◆ frameReadProgress()
uint64_t Structure::frameReadProgress |
( |
| ) |
const |
|
inline |
Progress of the current frame read.
- Returns
- uint64_t count of Atom read into atoms.
◆ getCell()
◆ getCellA()
glm::vec3 Structure::getCellA |
( |
| ) |
const |
|
inline |
Get the a cell vector.
- Returns
- glm::vec3 cell vector a.
◆ getCellB()
glm::vec3 Structure::getCellB |
( |
| ) |
const |
|
inline |
Get the b cell vector.
- Returns
- glm::vec3 cell vector b.
◆ getCellC()
glm::vec3 Structure::getCellC |
( |
| ) |
const |
|
inline |
Get the c cell vector.
- Returns
- glm::vec3 cell vector c.
◆ getFrame()
◆ initialise()
◆ readFrame()
◆ scanPositions()
void Structure::scanPositions |
( |
| ) |
|
|
inlineprotected |
◆ skipFrame()
void Structure::skipFrame |
( |
| ) |
|
|
inlineprotected |
◆ skipFrames()
◆ skipLine()
void Structure::skipLine |
( |
std::ifstream & |
in | ) |
|
|
inlineprotected |
◆ atoms
std::vector<Atom> Structure::atoms |
The Atoms read in the current frame.
◆ atomsRead
◆ blockingReads
bool Structure::blockingReads |
|
protected |
◆ cacheComplete
◆ cellA
glm::vec3 Structure::cellA |
|
protected |
◆ cellB
glm::vec3 Structure::cellB |
|
protected |
◆ cellC
glm::vec3 Structure::cellC |
|
protected |
◆ colourMap
Colour map from Element to colour.
◆ currentFrame
◆ filestream
std::ifstream Structure::filestream |
|
protected |
◆ framePositions
◆ frames
◆ linesInFile
◆ linesPerFrame
◆ natoms
◆ path
std::filesystem::path Structure::path |
|
protected |
◆ timeStep
The documentation for this class was generated from the following file: