UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
Loading...
Searching...
No Matches
Log_output::Buffer Class Reference
Collaboration diagram for Log_output::Buffer:
Collaboration graph

Public Member Functions

 Buffer (Buffer &&)=delete
 
 Buffer (const Buffer &)=delete
 
 Buffer (Log_output &lo)
 
void append (int count, char c)
 
void append (std::string_view sv)
 
char * data ()
 
std::string & get ()
 
Buffer & operator= (Buffer &&)=delete
 
Buffer & operator= (const Buffer &)=delete
 
void reserve (size_t size)
 
void submit ()
 
void submit_raw ()
 

Private Attributes

Log_output & lo
 

Detailed Description

Definition at line 126 of file debug.h.

Constructor & Destructor Documentation

◆ Buffer() [1/3]

Log_output::Buffer::Buffer ( Log_output & lo)
inline

Definition at line 128 of file debug.h.

128: lo(lo) { lo.get_internal_buffer().clear(); }
Log_output & lo
Definition debug.h:148
std::string & get_internal_buffer()
Definition debug.h:174

References Log_output::get_internal_buffer(), and lo.

Here is the call graph for this function:

◆ Buffer() [2/3]

Log_output::Buffer::Buffer ( const Buffer & )
delete

◆ Buffer() [3/3]

Log_output::Buffer::Buffer ( Buffer && )
delete

Member Function Documentation

◆ append() [1/2]

void Log_output::Buffer::append ( int count,
char c )
inline

Definition at line 133 of file debug.h.

133{ get().append(count, c); }
std::string & get()
Definition debug.h:136
int count
Definition hd-rum.c:44

References count, and get().

Here is the call graph for this function:

◆ append() [2/2]

void Log_output::Buffer::append ( std::string_view sv)
inline

Definition at line 130 of file debug.h.

130 {
131 get() += sv;
132 }

References get().

Referenced by Logger::~Logger(), and color_printf().

Here is the call graph for this function:

◆ data()

char * Log_output::Buffer::data ( )
inline

Definition at line 137 of file debug.h.

137{ return get().data(); }

References get().

Here is the call graph for this function:

◆ get()

std::string & Log_output::Buffer::get ( )
inline

Definition at line 136 of file debug.h.

136{ return lo.get_internal_buffer(); }

References Log_output::get_internal_buffer(), and lo.

Referenced by append(), append(), data(), and reserve().

Here is the call graph for this function:

◆ operator=() [1/2]

Buffer & Log_output::Buffer::operator= ( Buffer && )
delete

◆ operator=() [2/2]

Buffer & Log_output::Buffer::operator= ( const Buffer & )
delete

◆ reserve()

void Log_output::Buffer::reserve ( size_t size)
inline

Definition at line 135 of file debug.h.

135{ if(get().capacity() < size) get().reserve(size); }

References get().

Here is the call graph for this function:

◆ submit()

void Log_output::Buffer::submit ( )
inline

Definition at line 139 of file debug.h.

139{ lo.submit(); }
void submit()
Definition debug.h:223

References lo, and Log_output::submit().

Here is the call graph for this function:

◆ submit_raw()

void Log_output::Buffer::submit_raw ( )
inline

Definition at line 140 of file debug.h.

140{ lo.submit_raw(); }
void submit_raw()
Definition debug.h:257

References lo, and Log_output::submit_raw().

Here is the call graph for this function:

Member Data Documentation

◆ lo

Log_output& Log_output::Buffer::lo
private

Definition at line 148 of file debug.h.

Referenced by Buffer(), get(), submit(), and submit_raw().


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