libetonyek::IWORKZoneManager Class Reference

A manager for output zones. More...

#include <IWORKZoneManager.h>

Public Member Functions

 IWORKZoneManager ()
 
 ~IWORKZoneManager ()
 
void push ()
 Push a new zone onto the stack. More...
 
void pop ()
 Pop a zone from the stack. More...
 
IWORKZoneID_t save ()
 Save the current zone. More...
 
IWORKOutputElementsget (IWORKZoneID_t id)
 Get zone with ID id. More...
 
const IWORKOutputElementsget (IWORKZoneID_t id) const
 Get zone with ID id. More...
 
IWORKOutputElementsgetCurrent ()
 Get the current zone. More...
 
const IWORKOutputElementsgetCurrent () const
 Get the current zone. More...
 

Private Types

typedef std::deque
< IWORKOutputElements
ZoneList_t
 
typedef std::stack
< IWORKOutputElements
ZoneStack_t
 

Private Member Functions

 IWORKZoneManager (const IWORKZoneManager &)
 
IWORKZoneManageroperator= (const IWORKZoneManager &)
 

Private Attributes

ZoneStack_t m_active
 
ZoneList_t m_saved
 

Detailed Description

A manager for output zones.

It keeps a stack of currently opened zones and a list of saved zones.

There is always at least one zone on the stack.

Member Typedef Documentation

Constructor & Destructor Documentation

libetonyek::IWORKZoneManager::IWORKZoneManager ( const IWORKZoneManager )
private
libetonyek::IWORKZoneManager::IWORKZoneManager ( )
libetonyek::IWORKZoneManager::~IWORKZoneManager ( )

Member Function Documentation

IWORKOutputElements & libetonyek::IWORKZoneManager::get ( IWORKZoneID_t  id)

Get zone with ID id.

  • [in] id ID of the zone to get.

Referenced by libetonyek::KEYCollector::insertLayer().

const IWORKOutputElements & libetonyek::IWORKZoneManager::get ( IWORKZoneID_t  id) const

Get zone with ID id.

  • [in] id ID of the zone to get.
const IWORKOutputElements & libetonyek::IWORKZoneManager::getCurrent ( ) const

Get the current zone.

IWORKZoneManager& libetonyek::IWORKZoneManager::operator= ( const IWORKZoneManager )
private
void libetonyek::IWORKZoneManager::pop ( )

Pop a zone from the stack.

Referenced by libetonyek::KEYCollector::endLayer(), and ~IWORKZoneManager().

void libetonyek::IWORKZoneManager::push ( )

Push a new zone onto the stack.

Referenced by IWORKZoneManager(), and libetonyek::KEYCollector::startLayer().

IWORKZoneID_t libetonyek::IWORKZoneManager::save ( )

Save the current zone.

It remains on the stack.

Returns
The ID of the saved zone.

Referenced by libetonyek::KEYCollector::collectLayer().

Member Data Documentation

ZoneStack_t libetonyek::IWORKZoneManager::m_active
private
ZoneList_t libetonyek::IWORKZoneManager::m_saved
private

Referenced by get(), and save().


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

Generated for libetonyek by doxygen 1.8.5