|
using | FlushFn_t = std::function<void(const std::string&)> |
|
Definition at line 38 of file G4BuffercoutDestination.cc.
◆ FlushFn_t
◆ BufferImpl() [1/2]
G4BuffercoutDestination::BufferImpl::BufferImpl |
( |
std::size_t | maxSize | ) |
|
|
inlineexplicit |
◆ BufferImpl() [2/2]
G4BuffercoutDestination::BufferImpl::BufferImpl |
( |
std::size_t | maxSize, |
|
|
FlushFn_t && | f ) |
|
inlineexplicit |
◆ ~BufferImpl()
G4BuffercoutDestination::BufferImpl::~BufferImpl |
( |
| ) |
|
|
default |
◆ Flush()
G4int G4BuffercoutDestination::BufferImpl::Flush |
( |
| ) |
|
|
inline |
◆ Receive()
G4int G4BuffercoutDestination::BufferImpl::Receive |
( |
const G4String & | msg | ) |
|
|
inline |
Definition at line 61 of file G4BuffercoutDestination.cc.
62 {
63 m_currentSize += msg.size();
64 m_buffer << msg;
65
66 if (m_maxSize > 0 && m_currentSize > m_maxSize) {
68 }
69 return 0;
70 }
◆ Reset()
void G4BuffercoutDestination::BufferImpl::Reset |
( |
| ) |
|
|
inline |
◆ SetMaxSize()
void G4BuffercoutDestination::BufferImpl::SetMaxSize |
( |
std::size_t | n | ) |
|
|
inline |
The documentation for this class was generated from the following file: