CASM  1.1.0
A Clusters Approach to Statistical Mechanics
CASM::DataFormatter< _DataObject >::FormattedIteratorPair< IteratorType > Class Template Reference

#include <DataFormatter.hh>

+ Inheritance diagram for CASM::DataFormatter< _DataObject >::FormattedIteratorPair< IteratorType >:

Detailed Description

template<typename _DataObject>
template<typename IteratorType>
class CASM::DataFormatter< _DataObject >::FormattedIteratorPair< IteratorType >

Implements generic formatting member functions for ranges of data objects.

Definition at line 518 of file DataFormatter.hh.

Public Member Functions

 FormattedIteratorPair (const DataFormatter< DataObject > *_formatter_ptr, IteratorType _begin, IteratorType _end)
 
void inject (DataStream &_stream) const
 
void print (std::ostream &_stream) const
 
jsonParserto_json (jsonParser &json) const
 
jsonParserto_json_arrays (jsonParser &json) const
 Output data with format {"name1":[..., x], "name2":[..., x], ...}. More...
 

Private Attributes

DataFormatter< DataObject > const * m_formatter_ptr
 
IteratorType m_begin_it
 
IteratorType m_end_it
 

Constructor & Destructor Documentation

◆ FormattedIteratorPair()

template<typename _DataObject >
template<typename IteratorType >
CASM::DataFormatter< _DataObject >::FormattedIteratorPair< IteratorType >::FormattedIteratorPair ( const DataFormatter< DataObject > *  _formatter_ptr,
IteratorType  _begin,
IteratorType  _end 
)
inline

Definition at line 524 of file DataFormatter.hh.

Member Function Documentation

◆ inject()

template<typename _DataObject >
template<typename IteratorType >
void CASM::DataFormatter< _DataObject >::FormattedIteratorPair< IteratorType >::inject ( DataStream _stream) const
inlinevirtual

Implements CASM::FormattedPrintable.

Definition at line 528 of file DataFormatter.hh.

◆ print()

template<typename _DataObject >
template<typename IteratorType >
void CASM::DataFormatter< _DataObject >::FormattedIteratorPair< IteratorType >::print ( std::ostream &  _stream) const
inlinevirtual

Implements CASM::FormattedPrintable.

Definition at line 538 of file DataFormatter.hh.

◆ to_json()

template<typename _DataObject >
template<typename IteratorType >
jsonParser& CASM::DataFormatter< _DataObject >::FormattedIteratorPair< IteratorType >::to_json ( jsonParser json) const
inlinevirtual

Implements CASM::FormattedPrintable.

Definition at line 555 of file DataFormatter.hh.

◆ to_json_arrays()

template<typename _DataObject >
template<typename IteratorType >
jsonParser& CASM::DataFormatter< _DataObject >::FormattedIteratorPair< IteratorType >::to_json_arrays ( jsonParser json) const
inline

Output data with format {"name1":[..., x], "name2":[..., x], ...}.

Definition at line 563 of file DataFormatter.hh.

Member Data Documentation

◆ m_begin_it

template<typename _DataObject >
template<typename IteratorType >
IteratorType CASM::DataFormatter< _DataObject >::FormattedIteratorPair< IteratorType >::m_begin_it
private

Definition at line 521 of file DataFormatter.hh.

◆ m_end_it

template<typename _DataObject >
template<typename IteratorType >
IteratorType CASM::DataFormatter< _DataObject >::FormattedIteratorPair< IteratorType >::m_end_it
private

Definition at line 521 of file DataFormatter.hh.

◆ m_formatter_ptr

template<typename _DataObject >
template<typename IteratorType >
DataFormatter<DataObject> const* CASM::DataFormatter< _DataObject >::FormattedIteratorPair< IteratorType >::m_formatter_ptr
private

Definition at line 520 of file DataFormatter.hh.


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