Home
last modified time | relevance | path

Searched refs:functor (Results 1 – 22 of 22) sorted by relevance

/ohos5.0/foundation/filemanagement/app_file_service/frameworks/native/backup_kit_inner/src/
H A Db_incremental_backup_session.cpp73 void BIncrementalBackupSession::RegisterBackupServiceDied(function<void()> functor) in RegisterBackupServiceDied() argument
76 if (proxy == nullptr || !functor) { in RegisterBackupServiceDied()
84 auto callback = [functor](const wptr<IRemoteObject> &obj) { in RegisterBackupServiceDied()
87 functor(); in RegisterBackupServiceDied()
H A Db_session_backup.cpp73 void BSessionBackup::RegisterBackupServiceDied(std::function<void()> functor) in RegisterBackupServiceDied() argument
76 if (proxy == nullptr || !functor) { in RegisterBackupServiceDied()
84 auto callback = [functor](const wptr<IRemoteObject> &obj) { in RegisterBackupServiceDied()
87 functor(); in RegisterBackupServiceDied()
H A Db_incremental_restore_session.cpp149 void BIncrementalRestoreSession::RegisterBackupServiceDied(function<void()> functor) in RegisterBackupServiceDied() argument
152 if (proxy == nullptr || !functor) { in RegisterBackupServiceDied()
160 auto callback = [functor](const wptr<IRemoteObject> &obj) { in RegisterBackupServiceDied()
163 functor(); in RegisterBackupServiceDied()
H A Db_incremental_session_restore_async.cpp155 void BIncrementalSessionRestoreAsync::RegisterBackupServiceDied(std::function<void()> functor) in RegisterBackupServiceDied() argument
158 if (proxy == nullptr || !functor) { in RegisterBackupServiceDied()
166 auto callback = [functor](const wptr<IRemoteObject> &obj) { functor(); }; in RegisterBackupServiceDied()
H A Db_session_restore.cpp160 void BSessionRestore::RegisterBackupServiceDied(std::function<void()> functor) in RegisterBackupServiceDied() argument
163 if (proxy == nullptr || !functor) { in RegisterBackupServiceDied()
171 auto callback = [functor](const wptr<IRemoteObject> &obj) { in RegisterBackupServiceDied()
174 functor(); in RegisterBackupServiceDied()
H A Db_session_restore_async.cpp157 void BSessionRestoreAsync::RegisterBackupServiceDied(std::function<void()> functor) in RegisterBackupServiceDied() argument
160 if (proxy == nullptr || !functor) { in RegisterBackupServiceDied()
168 auto callback = [functor](const wptr<IRemoteObject> &obj) { functor(); }; in RegisterBackupServiceDied()
/ohos5.0/foundation/filemanagement/app_file_service/interfaces/inner_api/native/backup_kit_inner/impl/
H A Dsvc_death_recipient.h33 …SvcDeathRecipient(std::function<void(const wptr<IRemoteObject> &)> functor) : functor_(functor) {}; in SvcDeathRecipient() argument
H A Db_incremental_backup_session.h81 void RegisterBackupServiceDied(std::function<void()> functor);
H A Db_session_backup.h95 void RegisterBackupServiceDied(std::function<void()> functor);
H A Db_session_restore.h113 void RegisterBackupServiceDied(std::function<void()> functor);
H A Db_incremental_restore_session.h112 void RegisterBackupServiceDied(std::function<void()> functor);
H A Db_incremental_session_restore_async.h125 void RegisterBackupServiceDied(std::function<void()> functor);
H A Db_session_restore_async.h125 void RegisterBackupServiceDied(std::function<void()> functor);
/ohos5.0/foundation/filemanagement/dfs_service/frameworks/native/cloudsync_kit_inner_lite/include/
H A Dsvc_death_recipient_lite.h27 std::function<void(const wptr<IRemoteObject> &)> functor) : functor_(functor) {}; in SvcDeathRecipientLite() argument
/ohos5.0/foundation/filemanagement/dfs_service/interfaces/inner_api/native/cloud_daemon_kit_inner/
H A Dsvc_death_recipient.h26 … SvcDeathRecipient(std::function<void(const wptr<IRemoteObject> &)> functor) : functor_(functor){}; in SvcDeathRecipient() argument
/ohos5.0/foundation/filemanagement/dfs_service/interfaces/inner_api/native/cloudsync_kit_inner/
H A Dsvc_death_recipient.h26 … SvcDeathRecipient(std::function<void(const wptr<IRemoteObject> &)> functor) : functor_(functor){}; in SvcDeathRecipient() argument
/ohos5.0/foundation/filemanagement/user_file_service/services/native/file_access_service/include/
H A Dfile_access_service_proxy.h53 …oxyDeathRecipient(std::function<void(const wptr<IRemoteObject> &)> functor) : functor_(functor) {}; in ProxyDeathRecipient() argument
/ohos5.0/foundation/filemanagement/app_file_service/tests/mock/backup_kit_inner/
H A Db_session_backup_mock.cpp49 void BSessionBackup::RegisterBackupServiceDied(function<void()> functor) {} in RegisterBackupServiceDied() argument
H A Db_session_restore_mock.cpp111 void BSessionRestore::RegisterBackupServiceDied(function<void()> functor) {} in RegisterBackupServiceDied() argument
H A Db_session_restore_async_mock.cpp138 void BSessionRestoreAsync::RegisterBackupServiceDied(function<void()> functor) {} in RegisterBackupServiceDied() argument
/ohos5.0/docs/zh-cn/contribute/
H A DOpenHarmony-cpp-coding-style-guide.md2756 函数无法捕获局部变量或在局部范围内声明;如果需要这些东西,尽可能选择`lambda`,而不是手写的`functor`。
2757 另一方面,`lambda`和`functor`不会重载;如果需要重载,则使用函数。
/ohos5.0/docs/en/contribute/
H A DOpenHarmony-cpp-coding-style-guide.md2855 …eclared at local scope. If you need those things, choose `lambda` instead of handwritten `functor`.
2857 On the other hand, `lambda` and `functor` objects do not support overloading. If overloading is req…