neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
neogfx::html_node< CharT, Alloc > Class Template Reference

#include <html.hpp>

Inheritance diagram for neogfx::html_node< CharT, Alloc >:
neogfx::html_comment< CharT, Alloc > neogfx::html_element< CharT, Alloc > neogfx::html_text< CharT, Alloc >

Classes

class  const_iterator
 
class  iterator
 

Public Types

enum  type_e {
  Document = 0x1 , Element = 0x2 , Text = 0x4 , Comment = 0x8 ,
  All = 0xFF
}
 
typedef Alloc allocator_type
 
typedef neolib::basic_quick_string< CharT > string
 
typedef html_node< CharT, allocator_typenode
 
typedef nodenode_ptr
 

Public Member Functions

 html_node (type_e aType=Document)
 
virtual ~html_node ()
 
type_e type () const
 
bool empty () const
 
const nodeback () const
 
nodeback ()
 
const_iterator begin (type_e aFilter=All) const
 
const_iterator end (type_e aFilter=All) const
 
iterator begin (type_e aFilter=All)
 
iterator end (type_e aFilter=All)
 
const_iterator find (const string &aName) const
 
template<typename Exception >
const_iterator find_or_throw (const string &aName) const
 
iterator find (const string &aName)
 
iterator find_or_append (const string &aName)
 
template<typename Exception >
iterator find_or_throw (const string &aName)
 
void push_back (node_ptr aNode)
 
iterator insert (iterator aIterator, node_ptr aNode)
 
void erase (iterator aIterator)
 
void clear ()
 

Detailed Description

template<typename CharT, typename Alloc = std::allocator<CharT>>
class neogfx::html_node< CharT, Alloc >

Definition at line 34 of file html.hpp.

Member Typedef Documentation

◆ allocator_type

template<typename CharT , typename Alloc = std::allocator<CharT>>
typedef Alloc neogfx::html_node< CharT, Alloc >::allocator_type

Definition at line 39 of file html.hpp.

◆ node

template<typename CharT , typename Alloc = std::allocator<CharT>>
typedef html_node<CharT, allocator_type> neogfx::html_node< CharT, Alloc >::node

Definition at line 41 of file html.hpp.

◆ node_ptr

template<typename CharT , typename Alloc = std::allocator<CharT>>
typedef node* neogfx::html_node< CharT, Alloc >::node_ptr

Definition at line 42 of file html.hpp.

◆ string

template<typename CharT , typename Alloc = std::allocator<CharT>>
typedef neolib::basic_quick_string<CharT> neogfx::html_node< CharT, Alloc >::string

Definition at line 40 of file html.hpp.

Member Enumeration Documentation

◆ type_e

template<typename CharT , typename Alloc = std::allocator<CharT>>
enum neogfx::html_node::type_e
Enumerator
Document 
Element 
Text 
Comment 
All 

Definition at line 38 of file html.hpp.

Constructor & Destructor Documentation

◆ html_node()

template<typename CharT , typename Alloc = std::allocator<CharT>>
neogfx::html_node< CharT, Alloc >::html_node ( type_e  aType = Document)
inline

Definition at line 129 of file html.hpp.

◆ ~html_node()

template<typename CharT , typename Alloc = std::allocator<CharT>>
virtual neogfx::html_node< CharT, Alloc >::~html_node ( )
inlinevirtual

Definition at line 130 of file html.hpp.

Member Function Documentation

◆ back() [1/2]

template<typename CharT , typename Alloc = std::allocator<CharT>>
node & neogfx::html_node< CharT, Alloc >::back ( )
inline

Definition at line 138 of file html.hpp.

◆ back() [2/2]

template<typename CharT , typename Alloc = std::allocator<CharT>>
const node & neogfx::html_node< CharT, Alloc >::back ( ) const
inline

Definition at line 137 of file html.hpp.

◆ begin() [1/2]

template<typename CharT , typename Alloc = std::allocator<CharT>>
iterator neogfx::html_node< CharT, Alloc >::begin ( type_e  aFilter = All)

◆ begin() [2/2]

template<typename CharT , typename Alloc = std::allocator<CharT>>
const_iterator neogfx::html_node< CharT, Alloc >::begin ( type_e  aFilter = All) const

◆ clear()

template<typename CharT , typename Alloc = std::allocator<CharT>>
void neogfx::html_node< CharT, Alloc >::clear ( )
inline

Definition at line 169 of file html.hpp.

◆ empty()

template<typename CharT , typename Alloc = std::allocator<CharT>>
bool neogfx::html_node< CharT, Alloc >::empty ( ) const
inline

Definition at line 136 of file html.hpp.

◆ end() [1/2]

template<typename CharT , typename Alloc = std::allocator<CharT>>
iterator neogfx::html_node< CharT, Alloc >::end ( type_e  aFilter = All)

◆ end() [2/2]

template<typename CharT , typename Alloc = std::allocator<CharT>>
const_iterator neogfx::html_node< CharT, Alloc >::end ( type_e  aFilter = All) const

◆ erase()

template<typename CharT , typename Alloc = std::allocator<CharT>>
void neogfx::html_node< CharT, Alloc >::erase ( iterator  aIterator)
inline

Definition at line 164 of file html.hpp.

◆ find() [1/2]

template<typename CharT , typename Alloc = std::allocator<CharT>>
iterator neogfx::html_node< CharT, Alloc >::find ( const string aName)

◆ find() [2/2]

template<typename CharT , typename Alloc = std::allocator<CharT>>
const_iterator neogfx::html_node< CharT, Alloc >::find ( const string aName) const

◆ find_or_append()

template<typename CharT , typename Alloc = std::allocator<CharT>>
iterator neogfx::html_node< CharT, Alloc >::find_or_append ( const string aName)

◆ find_or_throw() [1/2]

template<typename CharT , typename Alloc = std::allocator<CharT>>
template<typename Exception >
iterator neogfx::html_node< CharT, Alloc >::find_or_throw ( const string aName)

◆ find_or_throw() [2/2]

template<typename CharT , typename Alloc = std::allocator<CharT>>
template<typename Exception >
const_iterator neogfx::html_node< CharT, Alloc >::find_or_throw ( const string aName) const

◆ insert()

template<typename CharT , typename Alloc = std::allocator<CharT>>
iterator neogfx::html_node< CharT, Alloc >::insert ( iterator  aIterator,
node_ptr  aNode 
)
inline

Definition at line 157 of file html.hpp.

◆ push_back()

template<typename CharT , typename Alloc = std::allocator<CharT>>
void neogfx::html_node< CharT, Alloc >::push_back ( node_ptr  aNode)
inline

Definition at line 151 of file html.hpp.

◆ type()

template<typename CharT , typename Alloc = std::allocator<CharT>>
type_e neogfx::html_node< CharT, Alloc >::type ( ) const
inline

Definition at line 134 of file html.hpp.


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