31 #ifndef GOOGLE_PROTOBUF_ARENASTRING_H__ 32 #define GOOGLE_PROTOBUF_ARENASTRING_H__ 59 if (ptr_ == default_value) {
60 CreateInstance(arena, &value);
73 if (ptr_ == default_value) {
74 CreateInstance(arena, default_value);
85 if (ptr_ == default_value) {
106 if (ptr_ == default_value) {
110 ptr_ =
const_cast< ::
std::string*
>(default_value);
119 if (arena ==
NULL && ptr_ != default_value) {
120 Destroy(default_value, arena);
128 ptr_ =
const_cast< ::
std::string*
>(default_value);
142 ptr_ =
const_cast< ::
std::string*
>(default_value);
156 if (arena ==
NULL && ptr_ != default_value) {
159 ptr_ =
const_cast< ::
std::string*
>(default_value);
168 if (ptr_ == default_value) {
180 if (ptr_ == default_value) {
186 *ptr_ = *default_value;
198 ptr_ =
const_cast< ::
std::string*
>(default_value);
210 if (ptr_ == default_value) {
211 CreateInstanceNoArena(&value);
226 if (ptr_ == default_value) {
230 ptr_ =
const_cast< ::
std::string*
>(default_value);
237 if (ptr_ != default_value) {
243 ptr_ =
const_cast< ::
std::string*
>(default_value);
250 if (ptr_ == default_value) {
258 if (ptr_ == default_value) {
262 *ptr_ = *default_value;
280 if (initial_value !=
NULL) {
290 if (initial_value !=
NULL) {
304 #endif // GOOGLE_PROTOBUF_ARENASTRING_H__ GOOGLE_ATTRIBUTE_ALWAYS_INLINE void Swap(ArenaStringPtr *other)
Definition: arenastring.h:149
void ClearToDefault(const ::std::string *default_value, ::google::protobuf::Arena *)
Definition: arenastring.h:178
inline ::std::string ** UnsafeRawStringPointer()
Definition: arenastring.h:270
inline ::std::string * Mutable(const ::std::string *default_value, ::google::protobuf::Arena *arena)
Definition: arenastring.h:71
void UnsafeSetDefault(const ::std::string *default_value)
Definition: arenastring.h:195
void ClearToEmpty(const ::std::string *default_value, ::google::protobuf::Arena *)
Definition: arenastring.h:166
void SetAllocated(const ::std::string *default_value, ::std::string *value, ::google::protobuf::Arena *arena)
Definition: arenastring.h:117
#define GOOGLE_ATTRIBUTE_NOINLINE
Definition: port.h:189
void ClearToEmptyNoArena(const ::std::string *default_value)
Definition: arenastring.h:249
Definition: arenastring.h:56
#define GOOGLE_ATTRIBUTE_ALWAYS_INLINE
Definition: port.h:175
const ::std::string & GetNoArena(const ::std::string *) const
Definition: arenastring.h:219
const FieldDescriptor const OneofDescriptor value
Definition: descriptor.h:1717
inline ::std::string * UnsafeArenaRelease(const ::std::string *default_value, ::google::protobuf::Arena *)
Definition: arenastring.h:104
void Destroy(const ::std::string *default_value, ::google::protobuf::Arena *arena)
Definition: arenastring.h:154
inline ::std::string * ReleaseNoArena(const ::std::string *default_value)
Definition: arenastring.h:225
EGLAttrib * value
Definition: eglext.h:120
inline ::std::string * Release(const ::std::string *default_value, ::google::protobuf::Arena *arena)
Definition: arenastring.h:83
const ::std::string & Get(const ::std::string *) const
Definition: arenastring.h:67
void UnsafeArenaSetAllocated(const ::std::string *default_value, ::std::string *value, ::google::protobuf::Arena *)
Definition: arenastring.h:136
void Set(const ::std::string *default_value, const ::std::string &value, ::google::protobuf::Arena *arena)
Definition: arenastring.h:57
Definition: __init__.py:1
GOOGLE_ATTRIBUTE_NOINLINE void Own(T *object)
Definition: arena.h:469
GLsizei const GLchar *const * string
Definition: gl2.h:479
Definition: document.h:393
void SetAllocatedNoArena(const ::std::string *default_value, ::std::string *value)
Definition: arenastring.h:235
#define NULL
Definition: common_types.h:41
#define LIBPROTOBUF_EXPORT
Definition: port.h:97
Definition: gflags_completions.h:115
void SetNoArena(const ::std::string *default_value, const ::std::string &value)
Definition: arenastring.h:208
void ClearToDefaultNoArena(const ::std::string *default_value)
Definition: arenastring.h:257
void swap(optional< T > &x, optional< T > &y) __NOEXCEPT_(__NOEXCEPT_(x.swap(y)))
Definition: Optional.h:1047