Lines Matching refs:wrapperStruct
87 WrapperStruct* wrapperStruct = GetWrapperStruct(s); in UnwrapOwn() local
91 if (wrapperStruct->type_ != kWrapperType) in UnwrapOwn()
92 return UnwrapDerivedOwn(wrapperStruct->type_, s); in UnwrapOwn()
95 DCHECK(wrapperStruct->wrapper_->owned_); in UnwrapOwn()
96 DCHECK(wrapperStruct->object_); in UnwrapOwn()
100 BaseName* object = wrapperStruct->object_; in UnwrapOwn()
101 wrapperStruct->object_ = nullptr; in UnwrapOwn()
103 delete wrapperStruct->wrapper_; in UnwrapOwn()
121 WrapperStruct* wrapperStruct = GetWrapperStruct(s); in UnwrapRaw() local
125 if (wrapperStruct->type_ != kWrapperType) in UnwrapRaw()
126 return UnwrapDerivedRaw(wrapperStruct->type_, s); in UnwrapRaw()
129 return wrapperStruct->object_; in UnwrapRaw()
136 WrapperStruct* wrapperStruct = GetWrapperStruct(s); in GetWrapper() local
138 DCHECK_EQ(kWrapperType, wrapperStruct->type_); in GetWrapper()
139 return static_cast<ClassName*>(wrapperStruct->wrapper_); in GetWrapper()
147 WrapperStruct* wrapperStruct = GetWrapperStruct(s); in Get() local
149 DCHECK_EQ(kWrapperType, wrapperStruct->type_); in Get()
150 return wrapperStruct->object_; in Get()
211 WrapperStruct* wrapperStruct = in struct_del() local
214 DCHECK_EQ(kWrapperType, wrapperStruct->type_); in struct_del()
217 DCHECK(wrapperStruct->wrapper_->owned_); in struct_del()
218 delete wrapperStruct->wrapper_; in struct_del()