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) {}
bool flag() const
Definition: FlaggedPtr.h:11
bool flag_
Definition: FlaggedPtr.h:16
T * pointer_
Definition: FlaggedPtr.h:15

Member Function Documentation

◆ flag()

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

Definition at line 11 of file FlaggedPtr.h.

References FlaggedPtr< T >::flag_.

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

11 { return flag_; }
bool flag_
Definition: FlaggedPtr.h:16

◆ 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.

References FlaggedPtr< T >::pointer_.

8 { return *pointer_; }
T * pointer_
Definition: FlaggedPtr.h:15

◆ operator->()

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

Definition at line 9 of file FlaggedPtr.h.

References FlaggedPtr< T >::pointer_.

9 { return pointer_; }
T * pointer_
Definition: FlaggedPtr.h:15

◆ setFlag()

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

Definition at line 12 of file FlaggedPtr.h.

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

12 { flag_ = flag; }
bool flag() const
Definition: FlaggedPtr.h:11
bool flag_
Definition: FlaggedPtr.h:16

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