• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 API Reference
  • KDE Home
  • Contact Us
 

WTF

  • WTF
  • OwnPtr
Public Types | Public Member Functions | List of all members
WTF::OwnPtr< T > Class Template Reference

#include <OwnPtr.h>

Inheritance diagram for WTF::OwnPtr< T >:
WTFNoncopyable::Noncopyable

Public Types

typedef T *(OwnPtr::* UnspecifiedBoolType) () const
 

Public Member Functions

 OwnPtr (T *ptr=0)
 
 ~OwnPtr ()
 
void clear ()
 
T * get () const
 
 operator UnspecifiedBoolType () const
 
bool operator! () const
 
T & operator* () const
 
T * operator-> () const
 
T * release ()
 
void set (T *ptr)
 
void swap (OwnPtr &o)
 

Detailed Description

template<typename T>
class WTF::OwnPtr< T >

Definition at line 31 of file OwnPtr.h.

Member Typedef Documentation

◆ UnspecifiedBoolType

template<typename T >
typedef T *(OwnPtr::* WTF::OwnPtr< T >::UnspecifiedBoolType) () const

Definition at line 48 of file OwnPtr.h.

Constructor & Destructor Documentation

◆ OwnPtr()

template<typename T >
WTF::OwnPtr< T >::OwnPtr ( T *  ptr = 0)
inlineexplicit

Definition at line 33 of file OwnPtr.h.

◆ ~OwnPtr()

template<typename T >
WTF::OwnPtr< T >::~OwnPtr ( )
inline

Definition at line 34 of file OwnPtr.h.

Member Function Documentation

◆ clear()

template<typename T >
void WTF::OwnPtr< T >::clear ( )
inline

Definition at line 40 of file OwnPtr.h.

◆ get()

template<typename T >
T * WTF::OwnPtr< T >::get ( ) const
inline

Definition at line 36 of file OwnPtr.h.

◆ operator UnspecifiedBoolType()

template<typename T >
WTF::OwnPtr< T >::operator UnspecifiedBoolType ( ) const
inline

Definition at line 49 of file OwnPtr.h.

◆ operator!()

template<typename T >
bool WTF::OwnPtr< T >::operator! ( ) const
inline

Definition at line 45 of file OwnPtr.h.

◆ operator*()

template<typename T >
T & WTF::OwnPtr< T >::operator* ( ) const
inline

Definition at line 42 of file OwnPtr.h.

◆ operator->()

template<typename T >
T * WTF::OwnPtr< T >::operator-> ( ) const
inline

Definition at line 43 of file OwnPtr.h.

◆ release()

template<typename T >
T * WTF::OwnPtr< T >::release ( )
inline

Definition at line 37 of file OwnPtr.h.

◆ set()

template<typename T >
void WTF::OwnPtr< T >::set ( T *  ptr)
inline

Definition at line 39 of file OwnPtr.h.

◆ swap()

template<typename T >
void WTF::OwnPtr< T >::swap ( OwnPtr< T > &  o)
inline

Definition at line 51 of file OwnPtr.h.


The documentation for this class was generated from the following files:
  • Forward.h
  • OwnPtr.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

WTF

Skip menu "WTF"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal