JKQTPlotter trunk/v5.0.0
an extensive Qt5+Qt6 Plotter framework (including a feature-richt plotter widget, a speed-optimized, but limited variant and a LaTeX equation renderer!), written fully in C/C++ and without external dependencies
Loading...
Searching...
No Matches
JKQTPArrayScopedPointer< T > Class Template Reference

this class ensures that the given pointer is freed when the class is destroyed. More...

#include <jkqtparraytools.h>

Public Member Functions

 JKQTPArrayScopedPointer ()
 
 JKQTPArrayScopedPointer (const JKQTPArrayScopedPointer &other)
 
 JKQTPArrayScopedPointer (T *pnt)
 
 ~JKQTPArrayScopedPointer ()
 
T * data () const
 
T & operator* () const
 
T * operator-> () const
 
JKQTPArrayScopedPointer< T > & operator= (const JKQTPArrayScopedPointer< T > &p)
 
JKQTPArrayScopedPointer< T > & operator= (T *p)
 
T & operator[] (long long i)
 
const T & operator[] (long long i) const
 

Private Attributes

T * pntr
 

Detailed Description

template<typename T>
class JKQTPArrayScopedPointer< T >

this class ensures that the given pointer is freed when the class is destroyed.

Constructor & Destructor Documentation

◆ JKQTPArrayScopedPointer() [1/3]

template<typename T >
JKQTPArrayScopedPointer< T >::JKQTPArrayScopedPointer ( T *  pnt)
inlineexplicit

◆ JKQTPArrayScopedPointer() [2/3]

template<typename T >
JKQTPArrayScopedPointer< T >::JKQTPArrayScopedPointer ( )
inlineexplicit

◆ JKQTPArrayScopedPointer() [3/3]

template<typename T >
JKQTPArrayScopedPointer< T >::JKQTPArrayScopedPointer ( const JKQTPArrayScopedPointer< T > &  other)
inlineexplicit

◆ ~JKQTPArrayScopedPointer()

template<typename T >
JKQTPArrayScopedPointer< T >::~JKQTPArrayScopedPointer ( )
inline

Member Function Documentation

◆ data()

template<typename T >
T * JKQTPArrayScopedPointer< T >::data ( ) const
inline

◆ operator*()

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

◆ operator->()

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

◆ operator=() [1/2]

template<typename T >
JKQTPArrayScopedPointer< T > & JKQTPArrayScopedPointer< T >::operator= ( const JKQTPArrayScopedPointer< T > &  p)
inline

◆ operator=() [2/2]

template<typename T >
JKQTPArrayScopedPointer< T > & JKQTPArrayScopedPointer< T >::operator= ( T *  p)
inline

◆ operator[]() [1/2]

template<typename T >
T & JKQTPArrayScopedPointer< T >::operator[] ( long long  i)
inline

◆ operator[]() [2/2]

template<typename T >
const T & JKQTPArrayScopedPointer< T >::operator[] ( long long  i) const
inline

Member Data Documentation

◆ pntr

template<typename T >
T* JKQTPArrayScopedPointer< T >::pntr
private

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