|
IMP Reference Guide
develop.7482b7c7af, 2026/12/05
The Integrative Modeling Platform
|
Macros to help with swapping two objects. More...
#include <IMP/kernel_config.h>Go to the source code of this file.
Macros | |
| #define | IMP_SWAP_MEMBER(var_name) |
| Swap two member variables assuming the other object is called o. | |
Swap helpers | |
Use the swap_with member function to swap two objects. The two objects must be of the same type (Name) and define the method | |
| #define | IMP_SWAP(Name) |
| #define | IMP_SWAP_1(Name) |
| #define | IMP_SWAP_2(Name) |
| #define | IMP_SWAP_3(Name) |
Macros to help with swapping two objects.
Copyright 2007-2022 IMP Inventors. All rights reserved.
Definition in file swap_macros.h.
| #define IMP_SWAP | ( | Name | ) |
Definition at line 22 of file swap_macros.h.
| #define IMP_SWAP_1 | ( | Name | ) |
Definition at line 26 of file swap_macros.h.
| #define IMP_SWAP_2 | ( | Name | ) |
Definition at line 33 of file swap_macros.h.
| #define IMP_SWAP_3 | ( | Name | ) |
Definition at line 40 of file swap_macros.h.
| #define IMP_SWAP_MEMBER | ( | var_name | ) |
Swap two member variables assuming the other object is called o.
Swap the member var_name of the two objects (this and o).
Definition at line 61 of file swap_macros.h.