WSF
UtSharablePointer< T > Class Template Reference

#include <WsfParseGrammar.hpp>

Public Member Functions

 UtSharablePointer ()
 UtSharablePointer (T *aObjectPtr)
 UtSharablePointer (const UtSharablePointer< T > &aSrc)
 Create a copy of shared object pointer.
 ~UtSharablePointer ()
UtSharablePointer< T > & operator= (const UtSharablePointer< T > &aRhs)
bool IsNull () const
 Return 'true' if the pointer to the object is null.
bool operator== (const UtSharablePointer< T > &aRHS) const
 Returns true if both point to the same object.
bool operator!= (const UtSharablePointer< T > &aRHS) const
 Returns false if both point to the same object.
bool operator< (const UtSharablePointer< T > &aRHS) const
 Provides strict weak ordering based on what the UtSharedPtr is referencing.
const T * Read ()
T * Write ()
void Swap (UtSharablePointer< T > &aRhs)

Constructor & Destructor Documentation

◆ UtSharablePointer() [1/3]

template<class T>
UtSharablePointer< T >::UtSharablePointer ( )
inlineexplicit

Create an empty shared pointer. Must be initialized with an assignment operation using another UtSharedPtr.

Referenced by operator!=(), operator<(), operator=(), operator==(), Swap(), and UtSharablePointer().

◆ UtSharablePointer() [2/3]

template<class T>
UtSharablePointer< T >::UtSharablePointer ( T * aObjectPtr)
inlineexplicit

Create a shared pointer that takes ownership of the specified object.

Parameters
aObjectPtrA pointer to the object to be managed as a shared object.

◆ UtSharablePointer() [3/3]

template<class T>
UtSharablePointer< T >::UtSharablePointer ( const UtSharablePointer< T > & aSrc)
inline

Create a copy of shared object pointer.

References UtSharablePointer().

◆ ~UtSharablePointer()

template<class T>
UtSharablePointer< T >::~UtSharablePointer ( )
inline

Destroy this shared object pointer. If all shared pointers pointing to the underlying a

Member Function Documentation

◆ IsNull()

template<class T>
bool UtSharablePointer< T >::IsNull ( ) const
inline

Return 'true' if the pointer to the object is null.

◆ operator!=()

template<class T>
bool UtSharablePointer< T >::operator!= ( const UtSharablePointer< T > & aRHS) const
inline

Returns false if both point to the same object.

References UtSharablePointer().

◆ operator<()

template<class T>
bool UtSharablePointer< T >::operator< ( const UtSharablePointer< T > & aRHS) const
inline

Provides strict weak ordering based on what the UtSharedPtr is referencing.

References UtSharablePointer().

◆ operator=()

template<class T>
UtSharablePointer< T > & UtSharablePointer< T >::operator= ( const UtSharablePointer< T > & aRhs)
inline

Assignment operator.

Note
: operator=(T*) is explicitly not provided for safety. Use lhs = std::shared_ptr<T>(tPtr); This is for compatibility with the 'shared_ptr'.

References UtSharablePointer().

◆ operator==()

template<class T>
bool UtSharablePointer< T >::operator== ( const UtSharablePointer< T > & aRHS) const
inline

Returns true if both point to the same object.

References UtSharablePointer().

◆ Read()

template<class T>
const T * UtSharablePointer< T >::Read ( )
inline

◆ Swap()

template<class T>
void UtSharablePointer< T >::Swap ( UtSharablePointer< T > & aRhs)
inline

References std::swap(), and UtSharablePointer().

Referenced by std::swap().

◆ Write()

template<class T>
T * UtSharablePointer< T >::Write ( )
inline

The documentation for this class was generated from the following file:
Copyrights Multiple, All Rights Reserved