CASM
AClustersApproachtoStatisticalMechanics
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules
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 158 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

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 505 of file DataFormatter.hh.

Member Function Documentation

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

Implements CASM::FormattedPrintable.

Definition at line 508 of file DataFormatter.hh.

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

Implements CASM::FormattedPrintable.

Definition at line 518 of file DataFormatter.hh.

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

Implements CASM::FormattedPrintable.

Definition at line 536 of file DataFormatter.hh.

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 544 of file DataFormatter.hh.

Member Data Documentation

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

Definition at line 503 of file DataFormatter.hh.

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

Definition at line 503 of file DataFormatter.hh.

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

Definition at line 502 of file DataFormatter.hh.


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