cgv
|
Public Member Functions | |
pointer_test (const void *ptr) | |
Instantiate a pointer_test with a const void pointer. | |
bool | is (const void *ptr) const |
Test if the stored pointer points to the given pointer address. | |
template<typename T > | |
bool | is (const T &ref) const |
Test if the stored pointer points to the given variable/object instance. | |
template<typename T , typename... Ts> | |
bool | one_of (const T &ref, const Ts &... refs) const |
Test if the stored pointer points to one of the given variable/object instances. | |
bool | one_of (const std::vector< const void * > &ptrs) const |
Test if the stored pointer points to one of the given pointer addresses. | |
template<typename T > | |
bool | member_of (const T &ref) const |
Test if the stored pointer points inside the address range of the given object instance. | |
Public Attributes | |
const void * | ptr = nullptr |
The stored pointer. | |
Definition at line 9 of file pointer_test.h.
|
inline |
Instantiate a pointer_test with a const void pointer.
Definition at line 21 of file pointer_test.h.
|
inline |
Test if the stored pointer points to the given variable/object instance.
Definition at line 30 of file pointer_test.h.
References is().
|
inline |
Test if the stored pointer points to the given pointer address.
Definition at line 24 of file pointer_test.h.
References ptr.
Referenced by cgv::app::color_map_editor::handle_member_change(), cgv::app::color_map_legend::handle_member_change(), cgv::app::color_selector::handle_member_change(), cgv::app::performance_monitor::handle_member_change(), is(), one_of(), and one_of().
|
inline |
Test if the stored pointer points inside the address range of the given object instance.
Definition at line 57 of file pointer_test.h.
References ptr.
Referenced by cgv::app::color_map_legend::handle_member_change().
|
inline |
Test if the stored pointer points to one of the given pointer addresses.
Definition at line 49 of file pointer_test.h.
References is().
|
inline |
Test if the stored pointer points to one of the given variable/object instances.
Definition at line 36 of file pointer_test.h.
References is().
const void* cgv::utils::pointer_test::ptr = nullptr |
The stored pointer.
Definition at line 18 of file pointer_test.h.
Referenced by is(), and member_of().