CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
FlaggedPtr< T > Class Template Reference

#include <FlaggedPtr.h>

Public Member Functions

bool flag () const
 
 FlaggedPtr (T *pointer, bool flag)
 
Tget () const
 
Toperator* () const
 
Toperator-> () const
 
void setFlag (bool flag)
 

Private Attributes

bool flag_
 
Tpointer_
 

Detailed Description

template<typename T>
class FlaggedPtr< T >

Definition at line 5 of file FlaggedPtr.h.

Constructor & Destructor Documentation

◆ FlaggedPtr()

template<typename T>
FlaggedPtr< T >::FlaggedPtr ( T pointer,
bool  flag 
)
inline

Definition at line 7 of file FlaggedPtr.h.

7 : pointer_(pointer), flag_(flag) {}

Member Function Documentation

◆ flag()

template<typename T>
bool FlaggedPtr< T >::flag ( void  ) const
inline

Definition at line 11 of file FlaggedPtr.h.

11 { return flag_; }

References FlaggedPtr< T >::flag_.

Referenced by FlaggedPtr< T >::setFlag().

◆ get()

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

◆ operator*()

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

Definition at line 8 of file FlaggedPtr.h.

8 { return *pointer_; }

References FlaggedPtr< T >::pointer_.

◆ operator->()

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

Definition at line 9 of file FlaggedPtr.h.

9 { return pointer_; }

References FlaggedPtr< T >::pointer_.

◆ setFlag()

template<typename T>
void FlaggedPtr< T >::setFlag ( bool  flag)
inline

Definition at line 12 of file FlaggedPtr.h.

12 { flag_ = flag; }

References FlaggedPtr< T >::flag(), and FlaggedPtr< T >::flag_.

Member Data Documentation

◆ flag_

template<typename T>
bool FlaggedPtr< T >::flag_
private

Definition at line 16 of file FlaggedPtr.h.

Referenced by FlaggedPtr< T >::flag(), and FlaggedPtr< T >::setFlag().

◆ pointer_

template<typename T>
T* FlaggedPtr< T >::pointer_
private
FlaggedPtr::pointer_
T * pointer_
Definition: FlaggedPtr.h:15
FlaggedPtr::flag
bool flag() const
Definition: FlaggedPtr.h:11
FlaggedPtr::flag_
bool flag_
Definition: FlaggedPtr.h:16