Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::LazyMutableCopy< T > Class Template Reference

Detailed Description

template<class T>
class operations_research::LazyMutableCopy< T >

Definition at line 44 of file lazy_mutable_copy.h.

#include <lazy_mutable_copy.h>

Public Member Functions

 LazyMutableCopy (const T &obj)
 LazyMutableCopy (T &&obj)
 LazyMutableCopy (LazyMutableCopy &&)=default
 LazyMutableCopy (const LazyMutableCopy &)=delete
class LazyMutableCopy< T > & operator= (LazyMutableCopy< T > &&)=default
class LazyMutableCopy< T > & operator= (const LazyMutableCopy< T > &)=delete
T * get_mutable ()
std::unique_ptr< T > copy_or_move_as_unique_ptr () &&
bool has_ownership () const
const T * get () const
const T & operator* () const
const T * operator-> () const
void dispose () &&

Constructor & Destructor Documentation

◆ LazyMutableCopy() [1/4]

template<class T>
operations_research::LazyMutableCopy< T >::LazyMutableCopy ( const T & obj)
inline

Definition at line 48 of file lazy_mutable_copy.h.

◆ LazyMutableCopy() [2/4]

template<class T>
operations_research::LazyMutableCopy< T >::LazyMutableCopy ( T && obj)
inline

Definition at line 53 of file lazy_mutable_copy.h.

◆ LazyMutableCopy() [3/4]

template<class T>
operations_research::LazyMutableCopy< T >::LazyMutableCopy ( LazyMutableCopy< T > && )
default

◆ LazyMutableCopy() [4/4]

template<class T>
operations_research::LazyMutableCopy< T >::LazyMutableCopy ( const LazyMutableCopy< T > & )
delete

Member Function Documentation

◆ copy_or_move_as_unique_ptr()

template<class T>
std::unique_ptr< T > operations_research::LazyMutableCopy< T >::copy_or_move_as_unique_ptr ( ) &&
inline

Definition at line 80 of file lazy_mutable_copy.h.

◆ dispose()

template<class T>
void operations_research::LazyMutableCopy< T >::dispose ( ) &&
inline

Definition at line 105 of file lazy_mutable_copy.h.

◆ get()

template<class T>
const T * operations_research::LazyMutableCopy< T >::get ( ) const
inline

Definition at line 96 of file lazy_mutable_copy.h.

◆ get_mutable()

template<class T>
T * operations_research::LazyMutableCopy< T >::get_mutable ( )
inline

Definition at line 64 of file lazy_mutable_copy.h.

◆ has_ownership()

template<class T>
bool operations_research::LazyMutableCopy< T >::has_ownership ( ) const
inline

Definition at line 92 of file lazy_mutable_copy.h.

◆ operator*()

template<class T>
const T & operations_research::LazyMutableCopy< T >::operator* ( ) const
inline

Definition at line 97 of file lazy_mutable_copy.h.

◆ operator->()

template<class T>
const T * operations_research::LazyMutableCopy< T >::operator-> ( ) const
inline

Definition at line 98 of file lazy_mutable_copy.h.

◆ operator=() [1/2]

template<class T>
class LazyMutableCopy< T > & operations_research::LazyMutableCopy< T >::operator= ( const LazyMutableCopy< T > & )
delete

◆ operator=() [2/2]

template<class T>
class LazyMutableCopy< T > & operations_research::LazyMutableCopy< T >::operator= ( LazyMutableCopy< T > && )
default

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