RemexHtml
Fast HTML 5 parser
Loading...
Searching...
No Matches
Wikimedia\RemexHtml\TreeBuilder\TemplateModeStack Class Reference

The stack of template insertion modes. More...

Public Member Functions

 push ( $mode)
 Push a mode on to the stack.
 
 pop ()
 Pop a mode from the stack.
 
bool isEmpty ()
 Return true if the stack is empty, false otherwise.
 

Public Attributes

int null $current
 The insertion mode at the top of the stack.
 

Detailed Description

The stack of template insertion modes.

We use a storage model optimised for access to the element at the top of the stack, which is stored separately from the rest of the stack.

Member Function Documentation

◆ isEmpty()

bool Wikimedia\RemexHtml\TreeBuilder\TemplateModeStack::isEmpty ( )

Return true if the stack is empty, false otherwise.

Returns
bool

◆ push()

Wikimedia\RemexHtml\TreeBuilder\TemplateModeStack::push ( $mode)

Push a mode on to the stack.

Parameters
int$mode

Member Data Documentation

◆ $current

int null Wikimedia\RemexHtml\TreeBuilder\TemplateModeStack::$current

The insertion mode at the top of the stack.

This is public for performance reasons but should be treated as read-only.


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