Forum Programmation.c++ Passer un pointeur de membre de classe à une fonction statique ou une lambda sans capture?

Posté par  . Licence CC By‑SA.
Étiquettes :
0
13
mar.
2019

Bonjour.

Je suis en train de me faire la main sur l'interfaçage de Lua avec le C++. J'ai compris qu'il existe une tripotée de bibliothèques pour faire ça mais je voudrais profiter de l'occasion pour affûter ma pratique des patrons en C++ sur la résolution d'un casse-tête (cherchez pas, j'aime bien ça).

Le contexte

L'idée que je poursuis est de passer un pointeur vers un membre d'une classe quelconque à une fonction statique ou une lambda (mais celle-ci doit être (…)

Forum Programmation.shell [Optimisation] Mieux vaut utiliser : des programmes ? Ou des fonctions ?

Posté par  .
3
6
août
2012

Bonjour,
Je suis en train de réaliser un projet. Et j'ai deux organisations possibles :

1] Config 1 : 1 utilité = 1 prog
(Résultat d'un ls sur le répertoire contenant le programme) :

0xToDec.sh*
decTo0x.sh*
do_clever_relative_resize_for_near_windows2.sh*
do_clever_relative_resize_for_near_windows.sh*
do_clever_relative_resize.sh*
do_close_current_window.sh*
do_minimize.sh*
do_move_in_real_space.sh*
do_relative_move.sh*
do_relative_resize.sh*
do_resize_with_real_dimension.sh*
do_unminimize.sh*
final_focus_next_visible_window.sh*
final_focus_next_window.sh*
final_organise.sh*
final_resize_half.sh*
get_border_for_screen.sh*
get_border_for_window.sh*
get_dimension_for_screen.sh*
get_dimension_for_window.sh*
get_list_of_windows.sh
get_list_of_windows.sh~
#get_next_visible_window_on_workspace.sh#*
get_next_visible_window_on_workspace.sh*
get_next_window_on_workspace.sh*
get_number_of_visible_window_for_workspace.sh*
get_number_of_window_for_workspace.sh*
get_number_of_worspaces.sh*
get_position_for_window.sh*
get_real_dimension_for_window.sh*
get_real_position_for_window.sh*
get_util_dimension_for_screen.sh*
get_visible_windows_on_workspace.sh*
get_windows_near_from.sh*
get_windows_on_workspace.sh*
get_workspace_for_window.sh*
killing_feature.sh*

2] Config 2 : Utilisation d'un fichier "librairie" qui (…)