S3FC project page S3FC home page

Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

s3_macros.h File Reference

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Defines

#define NONCONST_MUTEXP(x)   ( const_cast<pthread_mutex_t*>(x) )
#define CONST_OVERRIDE_THIS(x)   const_cast<x*>(this)->
 Override a const this pointer in order to implement less restrictive const semantics in a stricly const environment. More...

#define S3FC_DBG(x)
#define S3FC_DBG_(x)
#define S3FC_DBG2_(x, y)
#define S3_DEBUG_LEVEL   (5)
 Define a default value for the debug level. More...

#define S3FC_DBGL(x, l)
 If S3_VERBOSE_DEBUG is set then we will evaluate x if the specified debug level, l, is larger or equal to the value of S3_DEBUG_LEVEL, otherwise do nothing. More...

#define S3_ATTR_NOCHECK_MEMORY_USAGE
#define INVALID_SOCKET   ((int) -1)

Functions

const char * s3fc_get_version ()


Define Documentation

#define CONST_OVERRIDE_THIS      const_cast<x*>(this)->
 

Override a const this pointer in order to implement less restrictive const semantics in a stricly const environment.

Use as follows

  • CONST_OVERRIDE_THIS(my_class) nc_method(...);
  • CONST_OVERRIDE_THIS(my_class) lv_attribute ... in a const member function of my_class in order to call a non- const method nc_method() or to refer to a const lvalue lv_attribute within a non-const context.

Definition at line 43 of file s3_macros.h.

Referenced by s3_pack_buffer::copy_out, s3_inplace_fifo_mux::stub_queue::empty, s3_inplace_fifo_mux::stub_queue::full, s3_pack_buffer::get_buffer, s3_pack_buffer::get_current, s3_pack_buffer::operator+=, and s3_inplace_fifo_mux::stub_queue::size.

#define INVALID_SOCKET   ((int) -1)
 

Definition at line 88 of file s3_macros.h.

Referenced by s3_socket_tcp::close, s3_socket_tcp::initialize, s3_socket_tcp::is_valid, s3_socket_tcp::s3_socket_tcp, and s3_txport_tcp::s3_txport_tcp.

#define NONCONST_MUTEXP      ( const_cast<pthread_mutex_t*>(x) )
 

Definition at line 29 of file s3_macros.h.

Referenced by s3_spsc_fifo_queue::empty, s3_growable_fifo_queue< s3_txport_event >::empty, s3_fifo_queue< s3_txport_data< s3_message > >::empty, s3_spsc_fifo_queue::full, s3_growable_fifo_queue< s3_txport_event >::full, s3_fifo_queue< s3_txport_data< s3_message > >::full, s3_spsc_fifo_queue::size, s3_growable_fifo_queue< s3_txport_event >::size, and s3_fifo_queue< s3_txport_data< s3_message > >::size.

#define S3_ATTR_NOCHECK_MEMORY_USAGE
 

Definition at line 80 of file s3_macros.h.

#define S3_DEBUG_LEVEL   (5)
 

Define a default value for the debug level.

Definition at line 63 of file s3_macros.h.

#define S3FC_DBG  
 

Definition at line 52 of file s3_macros.h.

Referenced by s3_post_office::add_dst_switch, s3_rpc_caller_m_v_v::call, s3_txport_tcp_rx_task::cleanup, s3_txport_local::cleanup, s3_txport_tcp::connect, s3_post_office::deliver_all_but_one, s3_txport_tcp::disconnect_all, s3_txport_tcp::disconnect_by_id, s3_post_office_switch::forward_msg, s3_message_box::initialised, s3_txport_tcp::main_loop, s3_txport_tcp_rx_task::main_loop, s3_txport_tcp_tx_task::main_loop, s3_rpc_server::main_loop, s3_post_office_switch::main_loop, s3_post_office::main_loop, s3_txport_tcp::reap, s3_post_office::remove_dst_switch, s3_rpc_server::reply_client, s3_xml_config::s3_xml_config, s3_txport_tcp::spawn_handler, s3_txport_tcp::stop, and s3_xml_config::~s3_xml_config.

#define S3FC_DBG2_ x,
 
 

Definition at line 54 of file s3_macros.h.

Referenced by s3_socket_tcp_ssl::accept, s3_socket_tcp::accept, s3_socket_tcp::bind, s3_socket_tcp::close, s3_txport_tcp::connect, s3_socket_tcp::connect, s3_socket_tcp_ssl::get_error, s3_socket_tcp::get_error, s3_socket_tcp::initialize, s3_txport_tcp::listen, s3_socket_tcp::listen, s3_txport_tcp::main_loop, s3_socket_tcp::read, and s3_socket_tcp_ssl::setup_ssl.

#define S3FC_DBG_  
 

Definition at line 53 of file s3_macros.h.

Referenced by s3_socket_tcp_ssl::accept, s3_socket_tcp::accept, s3_socket_tcp::bind, s3_socket_tcp_ssl::close, s3_socket_tcp::close, s3_socket_tcp_ssl::connect, s3_socket_tcp::connect, s3_socket_tcp::get_error, s3_socket_tcp::listen, s3_socket_tcp_ssl::read, s3_socket_tcp_ssl::setup_ssl, s3_socket_tcp_ssl::write, and s3_socket_tcp::write.

#define S3FC_DBGL x,
 
 

If S3_VERBOSE_DEBUG is set then we will evaluate x if the specified debug level, l, is larger or equal to the value of S3_DEBUG_LEVEL, otherwise do nothing.

Definition at line 74 of file s3_macros.h.


Function Documentation

const char* s3fc_get_version  
 


Send comments to: s3fc@stonethree.com SourceForge Logo