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 119 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 121 of file stl_emulation.h.

121{}

◆ unique_ptr() [2/4]

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

Definition at line 122 of file stl_emulation.h.

122: std::unique_ptr<T>(p) {}
Configuration p

◆ unique_ptr() [3/4]

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

Definition at line 123 of file stl_emulation.h.

123{ *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 124 of file stl_emulation.h.

124{ *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 125 of file stl_emulation.h.

125 {
126 std::unique_ptr<T>::reset(u.release());
127 return *this;
128 }

◆ operator=() [2/3]

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

Definition at line 133 of file stl_emulation.h.

133 {
134 return std::unique_ptr<T>::operator=(p);
135 }

References p.

◆ operator=() [3/3]

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

Definition at line 129 of file stl_emulation.h.

129 {
130 std::unique_ptr<T>::reset(u.release());
131 return *this;
132 }

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