Core stores the current version of the object held by Observer. It also keeps all dependencies and dependents of the Observer.
Synopsis
Declared in <folly/observer/detail/Core.h>
class Core
: public std::enable_shared_from_this<Core>
Base Classes
Name |
Description |
|
Types
Name |
Description |
Describes the creator functor and its result type. |
|
View of the observed object as well as its version and created time |
Type Aliases
Member Functions
Name |
Description |
|
Destroys the Core. |
Returns the context describing the creator functor. |
|
Gets current view of the observed object. This is safe to call from any thread. If this is called from other Observer functor then that Observer is marked as dependent on current Observer. |
|
Returns a copy of the current set of dependencies. |
|
Gets the version of the observed object. |
|
Get the last version at which the observed object was actually changed. |
|
Check if the observed object needs to be re‐computed. Returns the version of last change. |
|
Force the next call to refresh to unconditionally re‐compute the observed object, even if dependencies didn't change. |
|
Static Member Functions
Name |
Description |
Blocks until creator is successfully run by ObserverManager |
Protected Member Functions
Name |
Created with MrDocs