Implementation of object output for STD compatible output iterator.
More...
#include <JSTDObjectOutput.hh>
template<class JOutputIterator_t>
class JLANG::JSTDObjectOutput< JOutputIterator_t >
Implementation of object output for STD compatible output iterator.
This class implements the JLANG::JObjectOutput interface for the corresponding data type.
Definition at line 26 of file JSTDObjectOutput.hh.
◆ value_type
template<class JOutputIterator_t>
◆ data_type
◆ JSTDObjectOutput()
template<class JOutputIterator_t>
◆ put() [1/2]
template<class JOutputIterator_t>
◆ put() [2/2]
virtual bool JLANG::JObjectOutput< JOutputIterator_t::container_type::value_type >::put |
( |
const JOutputIterator_t::container_type::value_type & |
object | ) |
|
|
pure virtualinherited |
Object output.
- Parameters
-
- Returns
- true if OK; else false
◆ getInstance()
Get static instance from temporary object.
- Returns
- reference to static object
Definition at line 27 of file JObject.hh.
29 static char buffer[
sizeof(T)];
31 new (buffer) T(static_cast<const T&>(*
this));
33 T* p = reinterpret_cast<data_type*>(buffer);
◆ clone()
Get clone from temporary object.
- Returns
- pointer to newly created object
Definition at line 44 of file JObject.hh.
46 return new T(static_cast<const T&>(*
this));
◆ out
template<class JOutputIterator_t>
The documentation for this class was generated from the following file: