library/utility/member_variables.hh

Defines

set_prefix

Macros for class member variables

In all cases remember to initialize the variables!

For “normal” variables Defines accessors [type get_my_var() const], [void set_my_var( type )], and member variable [type f_my_var] The set_ function is not available if the _noset macros are used

  • mv_accessible
  • mv_accessible_noset
  • mv_accessible_static
  • mv_accessible_static_noset

For variables accessed by reference Defines accessors [const type& my_var() const], [type& my_var()], and member variable [type f_my_var] The non-const function is not available if the _const macros are used

  • mv_referrable
  • mv_referrable_const
  • mv_referrable_static
  • mv_referrable_static_const

For pointer variables Defines accessors [type* get_my_var() const], [void set_my_var( type* )], and member variable [type* f_my_var] The set_ function is not available if the _noset macros are used

  • mv_assignable
  • mv_assignable_noset
  • mv_assignable_static
  • mv_assignable_static_noset

For std::shared_ptr’s Defines accessors [const std::shared_ptr< type > my_var() const], [std::shared_ptr< type > my_var()], and member variable [std::shared_ptr< type > f_my_var] The non-const function is not available if the _const macros are used

  • mv_shared_ptr
  • mv_shared_ptr_const
  • mv_shared_ptr_static
  • mv_shared_ptr_static_const

For atomic variables Defines accessors [type get_my_var() const], [void set_my_var( type )], and member variable [std::atomic< type > f_my_var] The set_ function is not available if the _noset macros are used

  • mv_atomic
  • mv_atomic_noset
  • mv_atomic_static
  • mv_atomic_static_noset

get_prefix
var_prefix
static_prefix