keeps object and its copy. Invoke all the member functions on both: object and its copy. If you want to invoke member function on both objects, you run the object_with_copy::invoke. If you want to run member function only on the copy you run object_with_copy::invoke_on_copy.
More...
#include <object_with_copy.hpp>
|
| | object_with_copy (T t) |
| | constructor More...
|
| |
| template<typename F , typename... Args> |
std::result_of< F(T *, Args...)>
::type | invoke (F f, Args...args) |
| | invokes member function on object and copy More...
|
| |
| template<typename F , typename... Args> |
std::result_of< F(T *, Args...)>
::type | invoke_on_copy (F f, Args...args) const |
| | invokes member function on copy More...
|
| |
| const T * | operator-> () const |
| | easier way for invoking const member functions More...
|
| |
| T & | get_obj () |
| | getter for inner object More...
|
| |
| const T & | get_obj () const |
| | getter for inner object More...
|
| |
template<typename T>
class paal::data_structures::object_with_copy< T >
keeps object and its copy. Invoke all the member functions on both: object and its copy. If you want to invoke member function on both objects, you run the object_with_copy::invoke. If you want to run member function only on the copy you run object_with_copy::invoke_on_copy.
- Template Parameters
-
| T | type of the contain object |
Definition at line 33 of file object_with_copy.hpp.
template<typename T >
template<typename F , typename... Args>
invokes member function on object and copy
- Parameters
-
| f | - pointer to member function of T |
| args | - arguments for f |
- Template Parameters
-
| F | type of pointer to member function |
| Args... | types of member function arguments |
- Returns
- the same as f
Definition at line 59 of file object_with_copy.hpp.
template<typename T >
template<typename F , typename... Args>
invokes member function on copy
- Parameters
-
| f | - pointer to member function of T |
| args | - arguments for f |
- Template Parameters
-
| F | type of pointer to member function |
| Args... | types of member function arguments |
- Returns
- the same as f
Definition at line 77 of file object_with_copy.hpp.
The documentation for this class was generated from the following file: