C++ Server-Side SDK
LaunchDarkly SDK
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
launchdarkly::server_side::data_components::DependencySet Class Reference

#include <dependency_tracker.hpp>

Public Types

using DataType = std::array< TaggedData< std::set< std::string > >, static_cast< std::size_t >(DataKind::kKindCount)>
 

Public Member Functions

void Set (DataKind kind, std::string key)
 
void Remove (DataKind kind, std::string const &key)
 
bool Contains (DataKind kind, std::string const &key) const
 
std::set< std::string > const & SetForKind (DataKind kind)
 
std::size_t Size () const
 
DataType::const_iterator begin () const
 
DataType::const_iterator end () const
 

Detailed Description

Class used to maintain a set of dependencies. Each dependency may be either a flag or segment. For instance, if we have a flagA, which has a prerequisite of flagB, and a segmentMatch targeting segmentA, then its dependency set would be

[{DataKind::kFlag, "flagB"}, {DataKind::kSegment, "segmentA"}]

Member Function Documentation

◆ Size()

std::size_t launchdarkly::server_side::data_components::DependencySet::Size ( ) const

Return the size of all the data kind sets.

Returns
The combined size of all the data kind sets.

The documentation for this class was generated from the following files: