Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

UseContext Class Reference

List of all members.

Public Member Functions

 UseContext ()
 UseContext (const UseContext &other)
UseContextoperator= (const UseContext &other)

Static Public Member Functions

UseContextcurrent ()
void set_current (State auto_imports)
State get_current_auto_imports ()

Private Attributes

State m_auto_imports

Constructor & Destructor Documentation

UseContext::UseContext  )  [inline]
 

Definition at line 70 of file cmt_use.cxx.

References m_auto_imports, and On.

00071   {
00072     m_auto_imports = On;
00073   }

UseContext::UseContext const UseContext other  )  [inline]
 

Definition at line 75 of file cmt_use.cxx.

References m_auto_imports.

00076   {
00077     m_auto_imports = other.m_auto_imports;
00078   }


Member Function Documentation

UseContext& UseContext::current  )  [inline, static]
 

Definition at line 63 of file cmt_use.cxx.

Referenced by get_current_auto_imports(), use_action_iterator::get_use(), and set_current().

00064   {
00065     static UseContext me;
00066 
00067     return (me);
00068   }

State UseContext::get_current_auto_imports  )  [inline, static]
 

Definition at line 94 of file cmt_use.cxx.

References current(), m_auto_imports, and State.

Referenced by use_action_iterator::get_use().

00095   {
00096     UseContext& c = current ();
00097 
00098     return (c.m_auto_imports);
00099   }

UseContext& UseContext::operator= const UseContext other  )  [inline]
 

Definition at line 80 of file cmt_use.cxx.

References m_auto_imports.

00081   {
00082     m_auto_imports = other.m_auto_imports;
00083 
00084     return (*this);
00085   }

void UseContext::set_current State  auto_imports  )  [inline, static]
 

Definition at line 87 of file cmt_use.cxx.

References current(), and m_auto_imports.

Referenced by use_action_iterator::get_use().

00088   {
00089     UseContext& c = current ();
00090 
00091     c.m_auto_imports = auto_imports;
00092   }


Member Data Documentation

State UseContext::m_auto_imports [private]
 

Definition at line 102 of file cmt_use.cxx.

Referenced by get_current_auto_imports(), operator=(), set_current(), and UseContext().


The documentation for this class was generated from the following file:
Generated on Mon May 2 10:26:05 2005 for CMT by doxygen 1.3.5