Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
google::protobuf::util Namespace Reference

Functions

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

Function Documentation

◆ ParseTextOrDie()

template<typename T>
T google::protobuf::util::ParseTextOrDie ( const std::string & input)

Definition at line 104 of file protobuf_util.h.

◆ RemoveAt()

template<typename RepeatedType, typename IndexContainer = std::vector<int>>
int google::protobuf::util::RemoveAt ( RepeatedType * array,
const IndexContainer & indices )

Definition at line 50 of file protobuf_util.h.

◆ RemoveIf()

template<typename T, typename Pred>
int google::protobuf::util::RemoveIf ( RepeatedPtrField< T > * array,
const Pred & pr )

Definition at line 89 of file protobuf_util.h.

◆ Truncate() [1/2]

template<typename T>
void google::protobuf::util::Truncate ( RepeatedField< T > * array,
int new_size )
inline

Definition at line 36 of file protobuf_util.h.

◆ Truncate() [2/2]

template<typename T>
void google::protobuf::util::Truncate ( RepeatedPtrField< T > * array,
int new_size )
inline

Definition at line 28 of file protobuf_util.h.