Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
CGUIManager::PageStackType Class Reference

The page stack must not move pointers on push/pop, or pushing a page in a page's init method may crash (as the pusher page will suddenly have moved, and the stack will be confused). More...

Inheritance diagram for CGUIManager::PageStackType:
Collaboration diagram for CGUIManager::PageStackType:

Public Member Functions

 ~PageStackType ()
 
void clear ()
 

Detailed Description

The page stack must not move pointers on push/pop, or pushing a page in a page's init method may crash (as the pusher page will suddenly have moved, and the stack will be confused).

Therefore use std::deque over std::vector. Also the elements have to be destructed back to front.

Constructor & Destructor Documentation

◆ ~PageStackType()

CGUIManager::PageStackType::~PageStackType ( )
inline

Member Function Documentation

◆ clear()

void CGUIManager::PageStackType::clear ( )
inline

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