GCC Middle and Back End API Reference
auto_flag< T > Class Template Reference

#include <cfg.h>

Inheritance diagram for auto_flag< T >:

Public Member Functions

 auto_flag (T *sptr)
 
 ~auto_flag ()
 
 operator T () const
 

Private Attributes

Tm_sptr
 
T m_flag
 

Detailed Description

template<class T>
class auto_flag< T >
Generic RAII class to allocate a bit from storage of integer type T.
The allocated bit is accessible as mask with the single bit set
via the conversion operator to T.   

Constructor & Destructor Documentation

◆ auto_flag()

template<class T>
auto_flag< T >::auto_flag ( T * sptr)
inline

◆ ~auto_flag()

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

References gcc_checking_assert, m_flag, and m_sptr.

Member Function Documentation

◆ operator T()

template<class T>
auto_flag< T >::operator T ( ) const
inline

Field Documentation

◆ m_flag

template<class T>
T auto_flag< T >::m_flag
private

Referenced by auto_flag(), and ~auto_flag().

◆ m_sptr

template<class T>
T* auto_flag< T >::m_sptr
private

Referenced by auto_flag(), and ~auto_flag().


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