#include "core/fpdfdoc/cpdf_numbertree.h"
#include <optional>
#include <utility>
#include "core/fpdfapi/parser/cpdf_array.h"
#include "core/fpdfapi/parser/cpdf_dictionary.h"
namespace {
RetainPtr<const CPDF_Object> FindNumberNode(const CPDF_Dictionary* node_dict,
int num) { … }
std::optional<CPDF_NumberTree::KeyValue> FindLowerBound(
const CPDF_Dictionary* node_dict,
int num) { … }
}
CPDF_NumberTree::CPDF_NumberTree(RetainPtr<const CPDF_Dictionary> root)
: … { … }
CPDF_NumberTree::~CPDF_NumberTree() = default;
RetainPtr<const CPDF_Object> CPDF_NumberTree::LookupValue(int num) const { … }
std::optional<CPDF_NumberTree::KeyValue> CPDF_NumberTree::GetLowerBound(
int num) const { … }
CPDF_NumberTree::KeyValue::KeyValue(int key, RetainPtr<const CPDF_Object> value)
: … { … }
CPDF_NumberTree::KeyValue::KeyValue(CPDF_NumberTree::KeyValue&&) noexcept =
default;
CPDF_NumberTree::KeyValue& CPDF_NumberTree::KeyValue::operator=(
CPDF_NumberTree::KeyValue&&) noexcept = default;
CPDF_NumberTree::KeyValue::~KeyValue() = default;