API Documentation
Loading...
Searching...
No Matches
Log Class Referencefinal

#include <Log.h>

Inheritance diagram for Log:
[legend]
Collaboration diagram for Log:
[legend]

Public Member Functions

NDEVR_BASE_API Log (uint08 id=0)
 
NDEVR_BASE_API Log (const Log &log)
 
virtual NDEVR_BASE_API ~Log ()
 
NDEVR_BASE_API void addStream (LogStream *stream, bool add_all) final override
 
NDEVR_BASE_API void removeStream (LogStream *stream) final override
 
NDEVR_BASE_API bool addMessage (const LogMessage &message) override
 
NDEVR_BASE_API bool addMessage (const String &message, uint01 log_level=10) override
 
NDEVR_BASE_API bool addMessage (const char *const message, uint01 log_level=10) final override
 
NDEVR_BASE_API bool addMessage (const TranslatedString &message, uint01 log_level=10) override
 
NDEVR_BASE_API void insertMessages (uint04 index, const Buffer< LogMessage > &messages)
 
bool cancelRequested () const override
 
void setCancelRequest (bool cancel) override
 
NDEVR_BASE_API void concatenate (const Log &log)
 
NDEVR_BASE_API void sortMessagesByPriority ()
 
NDEVR_BASE_API void sortMessagesByTime ()
 
NDEVR_BASE_API void allowCancel (bool cancel) override
 
NDEVR_BASE_API bool setProgress (fltp04 percent) final override
 
- Public Member Functions inherited from ProgressInfo
 ProgressInfo () noexcept
 
virtual ~ProgressInfo ()
 
- Public Member Functions inherited from Buffer< LogMessage >
constexpr Buffer ()
 
constexpr Buffer (const Buffer &buffer)
 
constexpr Buffer (Buffer &&buffer) noexcept
 
 Buffer (uint04 size)
 
 Buffer (const LogMessage *buffer, uint04 size)
 
 Buffer (uint04 size, const LogMessage &fill_object)
 
 Buffer (std::initializer_list< LogMessage > l)
 
 Buffer (const t_iterator &begin, const t_iterator &end)
 
 ~Buffer ()
 
 operator const LogMessage * () const
 
 operator LogMessage * ()
 
Buffer< t_other_type, t_other_index_type, t_other_memory_allocator, t_other_memory_manager > getAs () const
 
void add (LogMessage &&object)
 
void add (const LogMessage &object)
 
void add (uint04 location, const LogMessage &object)
 
void add (uint04 location, LogMessage &&object)
 
void addAll (const Buffer< LogMessage, t_other_index_type, t_other_memory_allocator, t_other_memory_manager > &buffer)
 
void addAll (const LogMessage *buffer, uint04 buffer_size)
 
void addAll (const LogMessage *buffer)
 
void insert (uint04 offset, const Buffer &buffer)
 
void insert (uint04 offset, const LogMessage *const buffer, uint04 buffer_size)
 
void insert (const uint04 location, const LogMessage *buffer)
 
void replaceIndexRange (uint04 offset, uint04 replace_size, const Buffer &buffer)
 
void addSpace (uint04 space_to_add)
 
void addSpace (uint04 location, uint04 size)
 
void addAndFillSpace (uint04 space_to_add, const LogMessage &fill_object)
 
decltype(auto) ptr ()
 
decltype(auto) ptr () const
 
uint04 memSize () const
 
decltype(auto) begin ()
 
decltype(auto) begin () const
 
decltype(auto) begin (uint04 index) const
 
uint04 capacity () const
 
void clear ()
 
void clear (uint04 new_capacity)
 
sint04 compare (const Buffer &value) const
 
sint04 compare (const Buffer &value, uint04 start, uint04 end) const
 
bool contains (const LogMessage &element) const
 
bool contains (const LogMessage &element, const std::function< bool(const LogMessage &, const LogMessage &)> &equal_function) const
 
bool contains (const LogMessage &element, uint04 start) const
 
bool contains (const LogMessage &element, uint04 start, uint04 search_size) const
 
uint04 count (const LogMessage &element) const
 
decltype(auto) end ()
 
decltype(auto) end () const
 
decltype(auto) end (uint04 index)
 
void ensureCapacity (uint04 new_capacity, bool ensure_not_greater=false, bool ensure_not_less=true)
 
bool equals (const Buffer &buffer) const
 
decltype(auto) get (uint04 index)
 
decltype(auto) get (uint04 index) const
 
Buffer getAll (uint04 start, uint04 size)
 
uint04 indexOf (const LogMessage &element) const
 
uint04 indexOf (const LogMessage &element, uint04 start_pos) const
 
uint04 indexOf (const LogMessage &element, uint04 start_pos, uint04 search_size) const
 
bool isEmpty () const
 
decltype(auto) last ()
 
decltype(auto) last () const
 
uint04 lastIndexOf (const LogMessage &element) const
 
void removeIndex (uint04 location)
 
void removeIndexBackSwap (uint04 location)
 
bool removeElement (const LogMessage &element)
 
void removeLast ()
 
void removeAllUnordered (const LogMessage &object)
 
void removeAllUnordered (const t_functor &functor)
 
void removeAllOrdered (const LogMessage &object)
 
void removeAllIndex (uint04 start, uint04 end)
 
void removeAllIndices (const t_range_buffer &ranges)
 
void replaceAll (const LogMessage &var, const LogMessage &replacement)
 
void reverse ()
 
void reverse (const uint04 start, const uint04 end)
 
void setAll (const t_o_type *src, uint04 offset, uint04 size)
 
void setAll (const Buffer &buffer, uint04 offset, uint04 size)
 
void setAll (const Buffer &buffer, uint04 offset, uint04 other_offset, uint04 size)
 
void setAllToValue (const t_o_type &fill_element, const uint04 offset=0, uint04 fill_size=Constant< uint04 >::NaN)
 
void setSize (uint04 new_size)
 
void setSize (const uint04 new_size, const LogMessage &fill_element)
 
void resize (uint04 new_size)
 
constexpr uint04 size () const
 
void swapElements (const LogMessage &element1, const LogMessage &element2)
 
void swapAllElements (const LogMessage &element1, const LogMessage &element2)
 
void swapIndices (uint04 index_1, uint04 index_2)
 
void move (uint04 from, uint04 to)
 
void primitiveSort ()
 
void sort ()
 
void sortRange (uint04 start, uint04 end)
 
void setUnique ()
 
void setUniquePresorted ()
 
uint04 sortAboutValue (uint04 value_index)
 
uint04 sortAboutValue (uint04 value_index, uint04 start, uint04 end)
 
Bufferoperator= (const Buffer &buffer)
 
Bufferoperator= (Buffer &&buffer) noexcept
 
bool operator== (const Buffer &buffer) const
 
bool operator> (const Buffer &buffer) const
 
bool operator< (const Buffer &buffer) const
 
bool operator>= (const Buffer &buffer) const
 
bool operator<= (const Buffer &buffer) const
 
bool operator!= (const Buffer &buffer) const
 
decltype(auto) operator[] (const uint04 index)
 
decltype(auto) operator[] (const int index)
 
decltype(auto) operator[] (const uint04 value) const
 
decltype(auto) operator[] (const int index) const
 
Buffer operator+ (const LogMessage &element) const
 
Buffer operator+ (const Buffer &value) const
 
const Bufferoperator+= (const LogMessage &element)
 
Bufferoperator+= (const Buffer &value)
 
bool isSorted () const
 
bool isSortedSet () const
 
constexpr BufferAllocator< LogMessage, uint04, false > & memoryInterface ()
 
constexpr const BufferAllocator< LogMessage, uint04, false > & memoryInterface () const
 

Protected Attributes

bool m_request_cancel
 
fltp04 m_progress
 
- Protected Attributes inherited from Buffer< LogMessage >
BufferAllocator< LogMessage, uint04, false > m_memory_interface
 

Friends

class LogManager
 

Additional Inherited Members

- Static Public Member Functions inherited from Buffer< LogMessage >
static constexpr LogMessage Type ()
 
- Protected Member Functions inherited from Buffer< LogMessage >
bool _equals (const Buffer &buffer) const
 

Constructor & Destructor Documentation

◆ Log() [1/2]

Log ( uint08 id = 0)
explicit

◆ Log() [2/2]

Log ( const Log & log)

◆ ~Log()

~Log ( )
virtual

Member Function Documentation

◆ addMessage() [1/4]

bool addMessage ( const char *const message,
uint01 log_level = 10 )
finaloverridevirtual

Implements ProgressInfo.

◆ addMessage() [2/4]

bool addMessage ( const LogMessage & message)
overridevirtual

Implements ProgressInfo.

◆ addMessage() [3/4]

bool addMessage ( const String & message,
uint01 log_level = 10 )
overridevirtual

Implements ProgressInfo.

◆ addMessage() [4/4]

NDEVR_BASE_API bool addMessage ( const TranslatedString & message,
uint01 log_level = 10 )
overridevirtual

Implements ProgressInfo.

◆ addStream()

void addStream ( LogStream * stream,
bool add_all )
finaloverridevirtual

Reimplemented from ProgressInfo.

◆ allowCancel()

void allowCancel ( bool cancel)
overridevirtual

Implements ProgressInfo.

◆ cancelRequested()

bool cancelRequested ( ) const
inlineoverridevirtual

Reimplemented from ProgressInfo.

◆ concatenate()

void concatenate ( const Log & log)

◆ insertMessages()

void insertMessages ( uint04 index,
const Buffer< LogMessage > & messages )

◆ removeStream()

void removeStream ( LogStream * stream)
finaloverridevirtual

Reimplemented from ProgressInfo.

◆ setCancelRequest()

void setCancelRequest ( bool cancel)
inlineoverridevirtual

Reimplemented from ProgressInfo.

◆ setProgress()

bool setProgress ( fltp04 percent)
finaloverridevirtual

Implements ProgressInfo.

◆ sortMessagesByPriority()

void sortMessagesByPriority ( )

◆ sortMessagesByTime()

void sortMessagesByTime ( )

Friends And Related Symbol Documentation

◆ LogManager

friend class LogManager
friend

Member Data Documentation

◆ m_progress

fltp04 m_progress
protected

◆ m_request_cancel

bool m_request_cancel
protected

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