C++ Server-Side SDK
LaunchDarkly SDK
Public Member Functions | List of all members
launchdarkly::server_side::evaluation::EvaluationStack Class Reference

#include <evaluation_stack.hpp>

Public Member Functions

std::optional< GuardNoticePrerequisite (std::string prerequisite_key)
 
std::optional< GuardNoticeSegment (std::string segment_key)
 

Detailed Description

EvaluationStack is used to track which segments and flags have been noticed during evaluation in order to detect circular references.

Member Function Documentation

◆ NoticePrerequisite()

std::optional< Guard > launchdarkly::server_side::evaluation::EvaluationStack::NoticePrerequisite ( std::string  prerequisite_key)

If the given prerequisite key has not been seen, marks it as seen and returns a Guard object. Otherwise, returns std::nullopt.

Parameters
prerequisite_keyKey of the prerequisite.
Returns
Guard object if not seen before, otherwise std::nullopt.

◆ NoticeSegment()

std::optional< Guard > launchdarkly::server_side::evaluation::EvaluationStack::NoticeSegment ( std::string  segment_key)

If the given segment key has not been seen, marks it as seen and returns a Guard object. Otherwise, returns std::nullopt.

Parameters
prerequisite_keyKey of the segment.
Returns
Guard object if not seen before, otherwise std::nullopt.

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