Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
protobuf_util.h File Reference
#include <string>
#include <vector>
#include "absl/log/check.h"
#include "google/protobuf/repeated_field.h"
#include "google/protobuf/repeated_ptr_field.h"
#include "google/protobuf/text_format.h"

Go to the source code of this file.

Namespaces

namespace  google
namespace  google::protobuf
namespace  google::protobuf::util

Functions

template<typename T>
void google::protobuf::util::Truncate (RepeatedPtrField< T > *array, int new_size)
 RepeatedPtrField version.
template<typename T>
void google::protobuf::util::Truncate (RepeatedField< T > *array, int new_size)
 RepeatedField version.
template<typename RepeatedType, typename IndexContainer = std::vector<int>>
int google::protobuf::util::RemoveAt (RepeatedType *array, const IndexContainer &indices)
template<typename T, typename Pred>
int google::protobuf::util::RemoveIf (RepeatedPtrField< T > *array, const Pred &pr)
template<typename T>
google::protobuf::util::ParseTextOrDie (const std::string &input)