|
|
using | original = std::weak_ptr<T> |
|
using | element_type = typename original::element_type |
|
| template<class U, typename std::enable_if< compatible_with_t< U, T >::value, int >::type = 0> |
| | weak_ptr (shared_ptr< U, SAFE > const &ptr) noexcept |
| | weak_ptr (weak_ptr const &other) noexcept |
| template<class U, typename std::enable_if< compatible_with_t< U, T >::value, int >::type = 0> |
| | weak_ptr (weak_ptr< U > const &ptr) noexcept |
| | weak_ptr (weak_ptr &&ptr) noexcept |
| template<class U, typename std::enable_if< compatible_with_t< U, T >::value, int >::type = 0> |
| | weak_ptr (weak_ptr< U > &&ptr) noexcept |
| weak_ptr & | operator= (const weak_ptr &other) |
| template<class U, typename std::enable_if< compatible_with_t< U, T >::value, int >::type = 0> |
| weak_ptr & | operator= (const shared_ptr< U, SAFE > &ptr) |
| void | reset () |
| long | use_count () const |
| bool | expired () const |
| shared_ptr< T, SAFE > | lock () const |
| template<typename U> |
| bool | operator== (const weak_ptr< U > &other) const noexcept |
| template<typename U> |
| bool | operator!= (const weak_ptr< U > &other) const noexcept |
| template<typename U> |
| bool | operator< (const weak_ptr< U > &other) const noexcept |
| template<typename U> |
| bool | operator<= (const weak_ptr< U > &other) const noexcept |
| template<typename U> |
| bool | operator> (const weak_ptr< U > &other) const noexcept |
| template<typename U> |
| bool | operator>= (const weak_ptr< U > &other) const noexcept |
|
|
template<class U, bool SAFE_P> |
| class | shared_ptr |
◆ weak_ptr() [1/6]
template<typename T, bool SAFE>
1800 : internal() {
1801 }
◆ weak_ptr() [2/6]
template<typename T, bool SAFE>
template<class U, typename std::enable_if<
compatible_with_t< U, T >::value, int >::type = 0>
1805 : internal(
ptr.internal) {
1806 }
Definition duckdb.hpp:1786
◆ weak_ptr() [3/6]
template<typename T, bool SAFE>
1807 : internal(
other.internal) {
1808 }
◆ weak_ptr() [4/6]
template<typename T, bool SAFE>
template<class U, typename std::enable_if<
compatible_with_t< U, T >::value, int >::type = 0>
1810 : internal(
ptr.internal) {
1811 }
◆ weak_ptr() [5/6]
template<typename T, bool SAFE>
◆ weak_ptr() [6/6]
template<typename T, bool SAFE>
template<class U, typename std::enable_if<
compatible_with_t< U, T >::value, int >::type = 0>
◆ operator=() [1/2]
template<typename T, bool SAFE>
| weak_ptr & duckdb::weak_ptr< T, SAFE >::operator= |
( |
const weak_ptr< T, SAFE > & | other | ) |
|
|
inline |
1830 {
1831 if (
this == &
other) {
1832 return *this;
1833 }
1834 internal =
other.internal;
1835 return *this;
1836 }
◆ operator=() [2/2]
template<typename T, bool SAFE>
template<class U, typename std::enable_if<
compatible_with_t< U, T >::value, int >::type = 0>
| weak_ptr & duckdb::weak_ptr< T, SAFE >::operator= |
( |
const shared_ptr< U, SAFE > & | ptr | ) |
|
|
inline |
1839 {
1840 internal =
ptr.internal;
1841 return *this;
1842 }
◆ reset()
template<typename T, bool SAFE>
1850 {
1851 internal.reset();
1852 }
◆ use_count()
template<typename T, bool SAFE>
1855 {
1856 return internal.use_count();
1857 }
◆ expired()
template<typename T, bool SAFE>
1859 {
1860 return internal.expired();
1861 }
◆ lock()
template<typename T, bool SAFE>
1863 {
1864 return shared_ptr<T, SAFE>(internal.lock());
1865 }
◆ operator==()
template<typename T, bool SAFE>
template<typename U>
| bool duckdb::weak_ptr< T, SAFE >::operator== |
( |
const weak_ptr< U > & | other | ) |
const |
|
inlinenoexcept |
1869 {
1870 return internal ==
other.internal;
1871 }
◆ operator!=()
template<typename T, bool SAFE>
template<typename U>
1874 {
1875 return internal !=
other.internal;
1876 }
◆ operator<()
template<typename T, bool SAFE>
template<typename U>
| bool duckdb::weak_ptr< T, SAFE >::operator< |
( |
const weak_ptr< U > & | other | ) |
const |
|
inlinenoexcept |
1879 {
1880 return internal <
other.internal;
1881 }
◆ operator<=()
template<typename T, bool SAFE>
template<typename U>
| bool duckdb::weak_ptr< T, SAFE >::operator<= |
( |
const weak_ptr< U > & | other | ) |
const |
|
inlinenoexcept |
1884 {
1885 return internal <=
other.internal;
1886 }
◆ operator>()
template<typename T, bool SAFE>
template<typename U>
| bool duckdb::weak_ptr< T, SAFE >::operator> |
( |
const weak_ptr< U > & | other | ) |
const |
|
inlinenoexcept |
1889 {
1890 return internal >
other.internal;
1891 }
◆ operator>=()
template<typename T, bool SAFE>
template<typename U>
| bool duckdb::weak_ptr< T, SAFE >::operator>= |
( |
const weak_ptr< U > & | other | ) |
const |
|
inlinenoexcept |
1894 {
1895 return internal >=
other.internal;
1896 }
The documentation for this class was generated from the following file: