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

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

Member Function Documentation

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
template<typename T>
T* FlaggedPtr< T >::get ( ) const
inline
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
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
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_
Definition: FlaggedPtr.h:16
bool flag() const
Definition: FlaggedPtr.h:11

Member Data Documentation

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().

template<typename T>
T* FlaggedPtr< T >::pointer_
private