MUQ  0.4.3
muq::Utilities::BlockDataset Class Reference

#include <BlockDataset.h>

Detailed Description

Definition at line 20 of file BlockDataset.h.

Public Types

typedef std::function< void(boost::any const &, BlockDataset &)> AnyWriterType
 
typedef std::unordered_map< std::type_index, AnyWriterTypeAnyWriterMapType
 

Public Member Functions

 BlockDataset (std::string const &path_, std::shared_ptr< HDF5File > file_, const int startRow_, const int startCol_, const int numRows_, const int numCols_)
 
BlockDatasetoperator= (boost::any const &val)
 
template<typename ScalarType , typename = typename std::enable_if<std::is_arithmetic<ScalarType>::value, ScalarType>::type>
BlockDatasetoperator= (ScalarType val)
 
template<typename MatrixType , typename = typename std::enable_if< !std::is_arithmetic<MatrixType>::value, MatrixType>::type>
BlockDatasetoperator= (MatrixType const &val)
 
template<typename ScalarType = double, int rows = Eigen::Dynamic, int cols = Eigen::Dynamic>
Eigen::Matrix< ScalarType, rows, cols > eval ()
 
template<typename ScalarType , int rows, int cols>
 operator ScalarType ()
 

Static Public Member Functions

static std::shared_ptr< AnyWriterMapTypeGetAnyWriterMap ()
 

Member Typedef Documentation

◆ AnyWriterMapType

typedef std::unordered_map<std::type_index, AnyWriterType> muq::Utilities::BlockDataset::AnyWriterMapType

Definition at line 39 of file BlockDataset.h.

◆ AnyWriterType

typedef std::function<void(boost::any const&, BlockDataset& )> muq::Utilities::BlockDataset::AnyWriterType

Definition at line 38 of file BlockDataset.h.

Constructor & Destructor Documentation

◆ BlockDataset()

muq::Utilities::BlockDataset::BlockDataset ( std::string const &  path_,
std::shared_ptr< HDF5File file_,
const int  startRow_,
const int  startCol_,
const int  numRows_,
const int  numCols_ 
)
inline

Definition at line 25 of file BlockDataset.h.

Member Function Documentation

◆ eval()

template<typename ScalarType = double, int rows = Eigen::Dynamic, int cols = Eigen::Dynamic>
Eigen::Matrix<ScalarType,rows,cols> muq::Utilities::BlockDataset::eval ( )
inline

Definition at line 72 of file BlockDataset.h.

References file, numCols, numRows, path, startCol, and startRow.

◆ GetAnyWriterMap()

std::shared_ptr< BlockDataset::AnyWriterMapType > BlockDataset::GetAnyWriterMap ( )
static

Definition at line 24 of file BlockDataset.cpp.

Referenced by operator=().

◆ operator ScalarType()

template<typename ScalarType , int rows, int cols>
muq::Utilities::BlockDataset::operator ScalarType ( )
inline

Definition at line 78 of file BlockDataset.h.

References file, numCols, numRows, path, startCol, and startRow.

◆ operator=() [1/3]

BlockDataset & BlockDataset::operator= ( boost::any const &  val)

Definition at line 6 of file BlockDataset.cpp.

References GetAnyWriterMap().

◆ operator=() [2/3]

template<typename MatrixType , typename = typename std::enable_if< !std::is_arithmetic<MatrixType>::value, MatrixType>::type>
BlockDataset& muq::Utilities::BlockDataset::operator= ( MatrixType const &  val)
inline

Definition at line 56 of file BlockDataset.h.

References file, numCols, numRows, path, startCol, and startRow.

◆ operator=() [3/3]

template<typename ScalarType , typename = typename std::enable_if<std::is_arithmetic<ScalarType>::value, ScalarType>::type>
BlockDataset& muq::Utilities::BlockDataset::operator= ( ScalarType  val)
inline

Definition at line 46 of file BlockDataset.h.

References file, numCols, numRows, path, startCol, and startRow.

Member Data Documentation

◆ file

std::shared_ptr<HDF5File> muq::Utilities::BlockDataset::file
private

Definition at line 94 of file BlockDataset.h.

Referenced by eval(), operator ScalarType(), and operator=().

◆ numCols

const int muq::Utilities::BlockDataset::numCols
private

Definition at line 100 of file BlockDataset.h.

Referenced by eval(), operator ScalarType(), and operator=().

◆ numRows

const int muq::Utilities::BlockDataset::numRows
private

Definition at line 99 of file BlockDataset.h.

Referenced by eval(), operator ScalarType(), and operator=().

◆ path

const std::string muq::Utilities::BlockDataset::path
private

Definition at line 91 of file BlockDataset.h.

Referenced by eval(), operator ScalarType(), and operator=().

◆ startCol

const int muq::Utilities::BlockDataset::startCol
private

Definition at line 98 of file BlockDataset.h.

Referenced by eval(), operator ScalarType(), and operator=().

◆ startRow

const int muq::Utilities::BlockDataset::startRow
private

Definition at line 97 of file BlockDataset.h.

Referenced by eval(), operator ScalarType(), and operator=().


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