A stable view of an observed value at a point in time.

Synopsis

Declared in <folly/observer/Observer.h>

template<typename T>
class Snapshot;

Member Functions

Name

Description

get

Never returns nullptr

getShared

Never returns nullptr

getTimeCreated

Return the time at which the observed object was created.

getVersion

Return the version of the observed object.

operator*

Returns a reference to the observed value.

operator‐>

Never returns nullptr

Friends

Name

Description

folly::observer::Observer

Observer ‐ a library which lets you create objects which track updates of their dependencies and get re‐computed when any of the dependencies changes.

Created with MrDocs