#include <dependency_tracker.hpp>
This class implements a mechanism of tracking dependencies of flags and segments. Both the forward dependencies (flag A depends on flag B) but also the reverse (flag B is depended on by flagA).
◆ CalculateChanges()
void launchdarkly::server_side::data_components::DependencyTracker::CalculateChanges |
( |
DataKind |
kind, |
|
|
std::string const & |
key, |
|
|
DependencySet & |
dependency_set |
|
) |
| |
Given the current dependencies, determine what flags or segments may be impacted by a change to the given flag/segment.
- Parameters
-
kind | The kind of data. |
key | The key for the data. |
dependency_set | A dependency set, which dependencies are accumulated in. |
◆ Clear()
void launchdarkly::server_side::data_components::DependencyTracker::Clear |
( |
| ) |
|
Clear all existing dependencies.
◆ UpdateDependencies() [1/2]
void launchdarkly::server_side::data_components::DependencyTracker::UpdateDependencies |
( |
std::string const & |
key, |
|
|
data_model::FlagDescriptor const & |
flag |
|
) |
| |
Update the dependency tracker with a new or updated flag.
- Parameters
-
key | The key for the flag. |
flag | A descriptor for the flag. |
◆ UpdateDependencies() [2/2]
void launchdarkly::server_side::data_components::DependencyTracker::UpdateDependencies |
( |
std::string const & |
key, |
|
|
data_model::SegmentDescriptor const & |
segment |
|
) |
| |
Update the dependency tracker with a new or updated segment.
- Parameters
-
key | The key for the segment. |
flag | A descriptor for the segment. |
The documentation for this class was generated from the following files:
- src/data_components/dependency_tracker/dependency_tracker.hpp
- src/data_components/dependency_tracker/dependency_tracker.cpp