chromium/third_party/webrtc/rtc_base/numerics/sample_counter.cc

/*
 *  Copyright (c) 2018 The WebRTC project authors. All Rights Reserved.
 *
 *  Use of this source code is governed by a BSD-style license
 *  that can be found in the LICENSE file in the root of the source
 *  tree. An additional intellectual property rights grant can be found
 *  in the file PATENTS.  All contributing project authors may
 *  be found in the AUTHORS file in the root of the source tree.
 */

#include "rtc_base/numerics/sample_counter.h"

#include <cstdint>
#include <limits>

#include "absl/types/optional.h"
#include "rtc_base/checks.h"
#include "rtc_base/numerics/safe_conversions.h"

namespace rtc {

SampleCounter::SampleCounter() = default;
SampleCounter::~SampleCounter() = default;

void SampleCounter::Add(int sample) {}

void SampleCounter::Add(const SampleCounter& other) {}

absl::optional<int> SampleCounter::Avg(int64_t min_required_samples) const {}

absl::optional<int> SampleCounter::Max() const {}

absl::optional<int> SampleCounter::Min() const {}

absl::optional<int64_t> SampleCounter::Sum(int64_t min_required_samples) const {}

int64_t SampleCounter::NumSamples() const {}

void SampleCounter::Reset() {}

SampleCounterWithVariance::SampleCounterWithVariance() = default;
SampleCounterWithVariance::~SampleCounterWithVariance() = default;

absl::optional<int64_t> SampleCounterWithVariance::Variance(
    int64_t min_required_samples) const {}

void SampleCounterWithVariance::Add(int sample) {}

void SampleCounterWithVariance::Add(const SampleCounterWithVariance& other) {}

void SampleCounterWithVariance::Reset() {}

}  // namespace rtc