Thrill  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
core.hpp File Reference
#include <sstream>
#include <string>
#include <utility>
#include <vector>
+ Include dependency graph for core.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Logger
 LOG and sLOG for development and debugging. More...
 
class  LoggerCollectOutput
 Class to hook logger output in the local thread. More...
 
class  LoggerFormatter< AnyType, Enable >
 template class for formatting. contains a print() method. More...
 
class  LoggerFormatter< AnyType >
 
class  LoggerFormatter< std::pair< A, B > >
 
class  LoggerFormatter< std::vector< T, A > >
 
class  LoggerOutputHook
 Abstract class to implement output hooks for logging. More...
 
class  LoggerPrefixHook
 Abstract class to implement prefix output hooks for logging. More...
 
class  LoggerVoidify
 
class  SpacingLogger
 A logging class which outputs spaces between elements pushed via operator<<. More...
 

Namespaces

 tlx
 

Macros

#define TLX_LOG   TLX_LOGC(debug)
 Default logging method: output if the local debug variable is true. More...
 
#define TLX_LOG0   TLX_LOGC(false)
 Override default output: never or always output log. More...
 
#define TLX_LOG1   TLX_LOGC(true)
 
#define TLX_LOGC(cond)   !(cond) ? (void)0 : ::tlx::LoggerVoidify() & ::tlx::Logger()
 Explicitly specify the condition for logging. More...
 
#define TLX_sLOG   TLX_sLOGC(debug)
 Default logging method: output if the local debug variable is true. More...
 
#define TLX_sLOG0   TLX_sLOGC(false)
 Override default output: never or always output log. More...
 
#define TLX_sLOG1   TLX_sLOGC(true)
 
#define TLX_sLOGC(cond)   !(cond) ? (void)0 : ::tlx::LoggerVoidify() & ::tlx::SpacingLogger()
 Explicitly specify the condition for logging. More...
 

Functions

LoggerOutputHook * set_logger_output_hook (LoggerOutputHook *hook)
 
LoggerPrefixHook * set_logger_prefix_hook (LoggerPrefixHook *hook)
 

Macro Definition Documentation

#define TLX_LOG0   TLX_LOGC(false)

Override default output: never or always output log.

Definition at line 144 of file core.hpp.

Referenced by foxxll::exist_file().

#define TLX_LOG1   TLX_LOGC(true)

Definition at line 145 of file core.hpp.

Referenced by ufs_file_base::_after_open(), request_queue_impl_1q::add_request(), request_queue_impl_qwqr::add_request(), foxxll::aligned_alloc(), block_manager::block_manager(), request_queue_impl_1q::cancel_request(), request_queue_impl_qwqr::cancel_request(), request::check_alignment(), request::check_nref_failed(), StringSetBase< StringSuffixSet, StringSuffixSetTraits >::check_order(), ufs_file_base::close_remove(), config::config(), disk_block_allocator::deallocation_error(), block_scheduler_algorithm_offline_lru_prefetching< SwappableBlockType >::deinit(), block_scheduler_algorithm_offline_lru_prefetching< SwappableBlockType >::deinitialize(), disk_block_allocator::delete_block(), memory_file::discard(), fileperblock_file< base_file_type >::discard(), disk_block_allocator::dump(), fileperblock_file< base_file_type >::export_files(), block_scheduler_algorithm_offline_lru_prefetching< SwappableBlockType >::give_up(), config::load_default_config(), disk_block_allocator::new_blocks(), StringSetBase< StringSuffixSet, StringSuffixSetTraits >::print(), UPtrStdStringSet::print(), block_scheduler_algorithm_offline_lfd< SwappableBlockType >::release(), scoped_print_iostats::report(), scoped_print_iostats::scoped_print_iostats(), scoped_print_timer::scoped_print_timer(), ufs_file_base::ufs_file_base(), ufs_file_base::unlink(), stats::wait_finished(), block_scheduler< SwappableBlockType >::~block_scheduler(), block_scheduler_algorithm_offline_lfd< SwappableBlockType >::~block_scheduler_algorithm_offline_lfd(), block_scheduler_algorithm_offline_lru_prefetching< SwappableBlockType >::~block_scheduler_algorithm_offline_lru_prefetching(), block_scheduler_algorithm_online_lru< SwappableBlockType >::~block_scheduler_algorithm_online_lru(), block_scheduler_algorithm_simulation< SwappableBlockType >::~block_scheduler_algorithm_simulation(), config::~config(), file::~file(), and scoped_print_timer::~scoped_print_timer().

#define TLX_sLOG   TLX_sLOGC(debug)

Default logging method: output if the local debug variable is true.

Definition at line 152 of file core.hpp.

#define TLX_sLOG0   TLX_sLOGC(false)

Override default output: never or always output log.

Definition at line 155 of file core.hpp.

#define TLX_sLOG1   TLX_sLOGC(true)

Definition at line 156 of file core.hpp.

#define TLX_sLOGC (   cond)    !(cond) ? (void)0 : ::tlx::LoggerVoidify() & ::tlx::SpacingLogger()

Explicitly specify the condition for logging.

Definition at line 148 of file core.hpp.