tudocomp
– The TU Dortmund Compression Framework
tdc::json::TValue< T > Class Template Reference

Template for containers of values that are supported by the std::ostream left shift operator for string conversion. More...

#include <Json.hpp>

Inheritance diagram for tdc::json::TValue< T >:
tdc::json::Value

Public Member Functions

 TValue (const T &value)
 Constructs a value container. More...
 
virtual void str (std::ostream &s, unsigned int=0) const override
 Yields the JSON string representation of the contained value. More...
 
- Public Member Functions inherited from tdc::json::Value
std::string str () const
 Returns this value's JSON string representation. More...
 

Detailed Description

template<typename T>
class tdc::json::TValue< T >

Template for containers of values that are supported by the std::ostream left shift operator for string conversion.

Template Parameters
Tthe contained value type

Definition at line 44 of file Json.hpp.

Constructor & Destructor Documentation

◆ TValue()

template<typename T >
tdc::json::TValue< T >::TValue ( const T &  value)
inline

Constructs a value container.

Definition at line 50 of file Json.hpp.

Member Function Documentation

◆ str()

template<typename T >
virtual void tdc::json::TValue< T >::str ( std::ostream &  s,
unsigned int  = 0 
) const
inlineoverridevirtual

Yields the JSON string representation of the contained value.

Returns
the string representation of the contained value

Implements tdc::json::Value.

Definition at line 55 of file Json.hpp.


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