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

#include <evaluation_detail_internal.hpp>

Public Member Functions

launchdarkly::Value const & Value () const
 
std::optional< std::size_t > VariationIndex () const
 
std::optional< std::reference_wrapper< EvaluationReason const > > Reason () const
 
 EvaluationDetailInternal (launchdarkly::Value value, std::optional< std::size_t > variation_index, std::optional< EvaluationReason > reason)
 

Friends

std::ostream & operator<< (std::ostream &out, EvaluationDetailInternal const &detail)
 

Detailed Description

An object that combines the result of a feature flag evaluation with information about how it was calculated.

This is the result of calling one of the detailed variation methods.

See also
launchdarkly::client_side::IClient::BoolVariationDetail
launchdarkly::client_side::IClient::DoubleVariationDetail
launchdarkly::client_side::IClient::IntVariationDetail
launchdarkly::client_side::IClient::JsonVariationDetail
launchdarkly::client_side::IClient::StringVariationDetail

For more information, see the [SDK reference guide] (https://docs.launchdarkly.com/sdk/features/evaluation-reasons#TODO).

Member Function Documentation

◆ Reason()

std::optional< std::reference_wrapper< EvaluationReason const > > launchdarkly::EvaluationDetailInternal::Reason ( ) const

An object describing the main factor that influenced the flag evaluation value.

◆ Value()

Value const & launchdarkly::EvaluationDetailInternal::Value ( ) const

The result of the flag evaluation. This will be either one of the flag's variations or the default value that was passed to one of the detail methods.

◆ VariationIndex()

std::optional< std::size_t > launchdarkly::EvaluationDetailInternal::VariationIndex ( ) const

The index of the returned value within the flag's list of variations, e.g. 0 for the first variation– or nullopt if the default value was returned.


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