TensorFlow Serving C++ API Documentation
Public Member Functions | List of all members
tensorflow::serving::UniqueAnyPtr Class Reference

#include <any_ptr.h>

Public Member Functions

 UniqueAnyPtr ()=default
 UniqueAnyPtr is void and null by default.
 
 UniqueAnyPtr (std::nullptr_t)
 
template<typename T >
 UniqueAnyPtr (std::unique_ptr< T > ptr)
 Construct from a unique pointer to any type.
 
 UniqueAnyPtr (const UniqueAnyPtr &other)=delete
 
UniqueAnyPtroperator= (const UniqueAnyPtr &other)=delete
 
 UniqueAnyPtr (UniqueAnyPtr &&other)
 
UniqueAnyPtroperator= (UniqueAnyPtr &&other)
 
template<typename T >
T * get () const
 Accessor for the underlying pointer if it is of type T, otherwise null.
 
const AnyPtras_any_ptr () const
 Accessor for the underlying pointer as an AnyPtr.
 
void swap (UniqueAnyPtr &other)
 

Detailed Description

Like AnyPtr, but owns the pointed-to object (calls delete upon destruction). This class is move-only, like std::unique_ptr.

Definition at line 109 of file any_ptr.h.


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