MUQ  0.4.3
muq::Utilities::Attribute Class Reference

#include <Attributes.h>

Detailed Description

Definition at line 16 of file Attributes.h.

Public Member Functions

 Attribute ()
 
 Attribute (std::shared_ptr< HDF5File > file_, std::string const &path_, std::string const &name_)
 
virtual ~Attribute ()
 
template<typename ScalarType , typename = typename std::enable_if<std::is_arithmetic<ScalarType>::value, ScalarType>::type>
Attributeoperator= (ScalarType val)
 
template<typename ScalarType , int fixedRows>
Attributeoperator= (Eigen::Matrix< ScalarType, fixedRows, 1 > const &val)
 
Attributeoperator= (std::string const &val)
 
template<typename ScalarType , typename = typename std::enable_if<std::is_arithmetic<ScalarType>::value, ScalarType>::type>
 operator ScalarType () const
 
 operator std::string () const
 

Constructor & Destructor Documentation

◆ Attribute() [1/2]

muq::Utilities::Attribute::Attribute ( )
inline

Definition at line 21 of file Attributes.h.

◆ Attribute() [2/2]

muq::Utilities::Attribute::Attribute ( std::shared_ptr< HDF5File file_,
std::string const &  path_,
std::string const &  name_ 
)
inline

Definition at line 23 of file Attributes.h.

◆ ~Attribute()

virtual muq::Utilities::Attribute::~Attribute ( )
inlinevirtual

Definition at line 29 of file Attributes.h.

Member Function Documentation

◆ operator ScalarType()

template<typename ScalarType , typename = typename std::enable_if<std::is_arithmetic<ScalarType>::value, ScalarType>::type>
muq::Utilities::Attribute::operator ScalarType ( ) const
inline

Definition at line 57 of file Attributes.h.

References file, name, and path.

◆ operator std::string()

muq::Utilities::Attribute::operator std::string ( ) const

Definition at line 12 of file Attributes.cpp.

◆ operator=() [1/3]

template<typename ScalarType , int fixedRows>
Attribute& muq::Utilities::Attribute::operator= ( Eigen::Matrix< ScalarType, fixedRows, 1 > const &  val)
inline

Definition at line 44 of file Attributes.h.

References file, name, and path.

◆ operator=() [2/3]

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

Definition at line 36 of file Attributes.h.

References file, name, and path.

◆ operator=() [3/3]

muq::Utilities::Attribute & muq::Utilities::Attribute::operator= ( std::string const &  val)

Definition at line 3 of file Attributes.cpp.

References file, name, and path.

Member Data Documentation

◆ file

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

Definition at line 75 of file Attributes.h.

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

◆ name

std::string muq::Utilities::Attribute::name
private

Definition at line 78 of file Attributes.h.

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

◆ path

std::string muq::Utilities::Attribute::path
private

Definition at line 77 of file Attributes.h.

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


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