chromium/third_party/mediapipe/src/mediapipe/framework/tool/tag_map.cc

// Copyright 2019 The MediaPipe Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//      http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#include "mediapipe/framework/tool/tag_map.h"

#include <utility>

#include "absl/memory/memory.h"
#include "absl/strings/str_cat.h"
#include "absl/strings/str_join.h"
#include "mediapipe/framework/port/canonical_errors.h"
#include "mediapipe/framework/port/core_proto_inc.h"
#include "mediapipe/framework/port/ret_check.h"
#include "mediapipe/framework/port/status.h"
#include "mediapipe/framework/port/status_builder.h"
#include "mediapipe/framework/tool/validate_name.h"

namespace mediapipe {
namespace tool {

void TagMap::InitializeNames(
    const std::map<std::string, std::vector<std::string>>& tag_to_names) {}

absl::Status TagMap::Initialize(
    const proto_ns::RepeatedPtrField<ProtoString>& tag_index_names) {}

absl::Status TagMap::Initialize(const TagAndNameInfo& info) {}

proto_ns::RepeatedPtrField<ProtoString> TagMap::CanonicalEntries() const {}

// Examples:
//   BLAH:0:blah1
//   BLAH:1:blah2
//
//   A:a
//   B:b
//
//   A:0:a0
//   A:1:a1
//   A:2:a2
//   B:0:b0
//   B:1:b1
//   C:c0
std::string TagMap::DebugString() const {}

// Note, this is also currently used internally to check for equivalence.
//
// Examples:
//   {"BLAH", 2}
//
//   {"A", 1}, {"B", 1}
//
//   {"A", 3}, {"B", 2}, {"C", 1}
//
//   {"", 4}, {"A", 3}, {"B", 2}, {"C", 1}
std::string TagMap::ShortDebugString() const {}

bool TagMap::HasTag(const absl::string_view tag) const {}

int TagMap::NumEntries(const absl::string_view tag) const {}

CollectionItemId TagMap::GetId(const absl::string_view tag, int index) const {}

std::pair<std::string, int> TagMap::TagAndIndexFromId(
    CollectionItemId id) const {}

CollectionItemId TagMap::BeginId(const absl::string_view tag) const {}

CollectionItemId TagMap::EndId(const absl::string_view tag) const {}

std::set<std::string> TagMap::GetTags() const {}

bool TagMap::SameAs(const TagMap& other) const {}

}  // namespace tool
}  // namespace mediapipe