ONE - On-device Neural Engine
Loading...
Searching...
No Matches
flatbuffers::unique_ptr< T > Class Template Reference

#include <stl_emulation.h>

Collaboration diagram for flatbuffers::unique_ptr< T >:

Public Member Functions

 unique_ptr ()
 
 unique_ptr (T *p)
 
 unique_ptr (std::unique_ptr< T > &&u)
 
 unique_ptr (unique_ptr &&u)
 
unique_ptroperator= (std::unique_ptr< T > &&u)
 
unique_ptroperator= (unique_ptr &&u)
 
unique_ptroperator= (T *p)
 

Detailed Description

template<class T>
class flatbuffers::unique_ptr< T >

Definition at line 222 of file stl_emulation.h.

Constructor & Destructor Documentation

◆ unique_ptr() [1/4]

template<class T >
flatbuffers::unique_ptr< T >::unique_ptr ( )
inline

Definition at line 224 of file stl_emulation.h.

224{}

◆ unique_ptr() [2/4]

template<class T >
flatbuffers::unique_ptr< T >::unique_ptr ( T *  p)
inlineexplicit

Definition at line 225 of file stl_emulation.h.

225: std::unique_ptr<T>(p) {}

◆ unique_ptr() [3/4]

template<class T >
flatbuffers::unique_ptr< T >::unique_ptr ( std::unique_ptr< T > &&  u)
inline

Definition at line 226 of file stl_emulation.h.

226{ *this = std::move(u); }

◆ unique_ptr() [4/4]

template<class T >
flatbuffers::unique_ptr< T >::unique_ptr ( unique_ptr< T > &&  u)
inline

Definition at line 227 of file stl_emulation.h.

227{ *this = std::move(u); }

Member Function Documentation

◆ operator=() [1/3]

template<class T >
unique_ptr & flatbuffers::unique_ptr< T >::operator= ( std::unique_ptr< T > &&  u)
inline

Definition at line 228 of file stl_emulation.h.

228 {
229 std::unique_ptr<T>::reset(u.release());
230 return *this;
231 }

◆ operator=() [2/3]

template<class T >
unique_ptr & flatbuffers::unique_ptr< T >::operator= ( T *  p)
inline

Definition at line 236 of file stl_emulation.h.

236 {
237 return std::unique_ptr<T>::operator=(p);
238 }

◆ operator=() [3/3]

template<class T >
unique_ptr & flatbuffers::unique_ptr< T >::operator= ( unique_ptr< T > &&  u)
inline

Definition at line 232 of file stl_emulation.h.

232 {
233 std::unique_ptr<T>::reset(u.release());
234 return *this;
235 }

The documentation for this class was generated from the following file: