Vlasiator ebf0dd394 on dev (v5.4.0 + 1054 commits)
Loading...
Searching...
No Matches
vlsvinterface::Reader Class Reference

#include <vlsvreaderinterface.h>

Inheritance diagram for vlsvinterface::Reader:
Collaboration diagram for vlsvinterface::Reader:

Public Member Functions

 Reader ()
virtual ~Reader ()
bool getMeshNames (std::list< std::string > &meshNames)
bool getMeshNames (std::set< std::string > &meshNames)
bool getVariableNames (const std::string &, std::list< std::string > &meshNames)
bool getVariableNames (std::set< std::string > &meshNames)
bool getCellIds (std::vector< uint64_t > &cellIds, const std::string &meshName="SpatialGrid")
template<typename T, size_t N>
bool getVariable (const std::string &variableName, const uint64_t &cellId, std::array< T, N > &variable)
bool getBlockIds (const uint64_t &cellId, std::vector< uint64_t > &blockIds, const std::string &popName)
bool setCellIds ()
void clearCellIds ()
bool setCellsWithBlocks (const std::string &meshName, const std::string &popName)
void clearCellsWithBlocks ()
bool getVelocityBlockVariables (const std::string &variableName, const uint64_t &cellId, char *&buffer, bool allocateMemory=true)
uint64_t getBlockOffset (const uint64_t &cellId)
uint32_t getNumberOfBlocks (const uint64_t &cellId)

Private Attributes

std::unordered_map< uint64_t, uint64_t > cellIdLocations
std::unordered_map< uint64_t, std::pair< uint64_t, uint32_t > > cellsWithBlocksLocations
bool cellIdsSet
bool cellsWithBlocksSet

Detailed Description

Definition at line 37 of file vlsvreaderinterface.h.

Constructor & Destructor Documentation

◆ Reader()

vlsvinterface::Reader::Reader ( )

Definition at line 71 of file vlsvreaderinterface.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ~Reader()

vlsvinterface::Reader::~Reader ( )
virtual

Definition at line 76 of file vlsvreaderinterface.cpp.

Member Function Documentation

◆ clearCellIds()

void vlsvinterface::Reader::clearCellIds ( )
inline

Definition at line 56 of file vlsvreaderinterface.h.

◆ clearCellsWithBlocks()

void vlsvinterface::Reader::clearCellsWithBlocks ( )
inline

Definition at line 61 of file vlsvreaderinterface.h.

Here is the caller graph for this function:

◆ getBlockIds()

bool vlsvinterface::Reader::getBlockIds ( const uint64_t & cellId,
std::vector< uint64_t > & blockIds,
const std::string & popName )

Definition at line 288 of file vlsvreaderinterface.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getBlockOffset()

uint64_t vlsvinterface::Reader::getBlockOffset ( const uint64_t & cellId)
inline

Definition at line 67 of file vlsvreaderinterface.h.

Here is the caller graph for this function:

◆ getCellIds()

bool vlsvinterface::Reader::getCellIds ( std::vector< uint64_t > & cellIds,
const std::string & meshName = "SpatialGrid" )

Definition at line 122 of file vlsvreaderinterface.cpp.

Here is the caller graph for this function:

◆ getMeshNames() [1/2]

bool vlsvinterface::Reader::getMeshNames ( std::list< std::string > & meshNames)

◆ getMeshNames() [2/2]

bool vlsvinterface::Reader::getMeshNames ( std::set< std::string > & meshNames)

◆ getNumberOfBlocks()

uint32_t vlsvinterface::Reader::getNumberOfBlocks ( const uint64_t & cellId)
inline

Definition at line 77 of file vlsvreaderinterface.h.

◆ getVariable()

template<typename T, size_t N>
bool vlsvinterface::Reader::getVariable ( const std::string & variableName,
const uint64_t & cellId,
std::array< T, N > & variable )
inline

Definition at line 90 of file vlsvreaderinterface.h.

◆ getVariableNames() [1/2]

bool vlsvinterface::Reader::getVariableNames ( const std::string & ,
std::list< std::string > & meshNames )
Here is the caller graph for this function:

◆ getVariableNames() [2/2]

bool vlsvinterface::Reader::getVariableNames ( std::set< std::string > & meshNames)

◆ getVelocityBlockVariables()

bool vlsvinterface::Reader::getVelocityBlockVariables ( const std::string & variableName,
const uint64_t & cellId,
char *& buffer,
bool allocateMemory = true )

Definition at line 339 of file vlsvreaderinterface.cpp.

Here is the caller graph for this function:

◆ setCellIds()

bool vlsvinterface::Reader::setCellIds ( )

Definition at line 165 of file vlsvreaderinterface.cpp.

◆ setCellsWithBlocks()

bool vlsvinterface::Reader::setCellsWithBlocks ( const std::string & meshName,
const std::string & popName )

Definition at line 206 of file vlsvreaderinterface.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ cellIdLocations

std::unordered_map<uint64_t, uint64_t> vlsvinterface::Reader::cellIdLocations
private

Definition at line 39 of file vlsvreaderinterface.h.

◆ cellIdsSet

bool vlsvinterface::Reader::cellIdsSet
private

Definition at line 41 of file vlsvreaderinterface.h.

◆ cellsWithBlocksLocations

std::unordered_map<uint64_t, std::pair<uint64_t, uint32_t> > vlsvinterface::Reader::cellsWithBlocksLocations
private

Definition at line 40 of file vlsvreaderinterface.h.

◆ cellsWithBlocksSet

bool vlsvinterface::Reader::cellsWithBlocksSet
private

Definition at line 42 of file vlsvreaderinterface.h.


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