dillo
3.0.5
About: dillo is a small, fast, extensible Web browser particularly suitable for older or smaller computers and embedded systems (but only limited or no support for frames, CSS, JavaScript, Java).
![]() ![]() |
Simple (simpler than container::untyped::Vector and container::typed::Vector) template based vector. More...
#include <misc.hh>
Public Member Functions | |
SimpleVector (int initAlloc=1) | |
SimpleVector (const SimpleVector &o) | |
~SimpleVector () | |
int | size () const |
Return the number of elements put into this vector. More... | |
T * | getArray () const |
T * | detachArray () |
void | increase () |
Increase the vector size by one. More... | |
void | setSize (int newSize) |
Set the size explicitly. More... | |
void | setSize (int newSize, T t) |
Set the size explicitly and initialize new values. More... | |
T * | getRef (int i) const |
Return the reference of one element. More... | |
T | get (int i) const |
Return the one element, explicitly. More... | |
T * | getFirstRef () const |
Return the reference of the first element (convenience method). More... | |
T | getFirst () const |
Return the first element, explicitly. More... | |
T * | getLastRef () const |
Return the reference of the last element (convenience method). More... | |
T | getLast () const |
Return the last element, explicitly. More... | |
void | set (int i, T t) |
Store an object in the vector. More... | |
Private Member Functions | |
void | resize () |
Private Attributes | |
T * | array |
int | num |
int | numAlloc |
Simple (simpler than container::untyped::Vector and container::typed::Vector) template based vector.
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 123 of file misc.hh.
Referenced by dw::Hyphenator::hyphenateWord(), and dw::Trie::load().
|
inline |
Return the one element, explicitly.
The element is copied, so for complex elements, you should rather used misc::SimpleVector::getRef.
Definition at line 177 of file misc.hh.
Referenced by a_Menu_page_popup(), CssStyleSheet::addRule(), CssStyleSheet::apply(), dw::AlignedTextblock::List::getValue(), Html_contains_form(), Html_get_current_input(), Html_get_radio_input(), Html_set_link_coordinates(), Html_tag_close_head(), Html_tag_close_map(), Html_tag_content_area(), dw::Hyphenator::hyphenateSingleWord(), CssSimpleSelector::match(), CssParser::parseRuleset(), CssSimpleSelector::print(), dw::Table::setColWidth(), dw::Table::setCumHeight(), lout::misc::ZoneAllocator::zoneAlloc(), lout::misc::ZoneAllocator::zoneFree(), CssSimpleSelector::~CssSimpleSelector(), and DoctreeNode::~DoctreeNode().
|
inline |
Definition at line 121 of file misc.hh.
Referenced by dw::Hyphenator::insertPattern().
|
inline |
|
inline |
|
inline |
|
inline |
Return the reference of the last element (convenience method).
Definition at line 201 of file misc.hh.
Referenced by dw::Trie::load().
|
inline |
Return the reference of one element.
Definition at line 166 of file misc.hh.
Referenced by StyleEngine::apply(), Html_display_listitem(), Html_push_tag(), Html_table_get_border_model(), Html_table_set_border_model(), Html_tag_cleanup_at_close(), Html_tag_cleanup_nested_inputs(), Html_tag_open_li(), CssSelector::match(), and StyleEngine::style0().
|
inline |
Increase the vector size by one.
May be necessary before calling misc::SimpleVector::set.
Definition at line 136 of file misc.hh.
Referenced by a_Html_image_new(), Html_add_input(), Html_push_tag(), Html_read_coords(), Html_set_new_link(), dw::Hyphenator::hyphenateSingleWord(), dw::Trie::load(), CssParser::parseRuleset(), CssSimpleSelector::setSelect(), splitStr(), and lout::misc::ZoneAllocator::zoneAlloc().
|
inlineprivate |
Definition at line 77 of file misc.hh.
Referenced by lout::misc::SimpleVector< dw::Trie::TrieNode >::setSize(), and lout::misc::SimpleVector< dw::Trie::TrieNode >::SimpleVector().
|
inline |
Store an object in the vector.
Unlike in container::untyped::Vector and container::typed::Vector, you have to care about the size, so a call to misc::SimpleVector::increase or misc::SimpleVector::setSize may be necessary before.
Definition at line 222 of file misc.hh.
Referenced by a_Html_image_new(), Html_add_input(), Html_read_coords(), Html_set_new_link(), dw::Hyphenator::hyphenateSingleWord(), dw::Hyphenator::insertPattern(), CssParser::parseRuleset(), dw::Table::setColWidth(), dw::Table::setCumHeight(), CssSimpleSelector::setSelect(), lout::misc::SimpleVector< dw::Trie::TrieNode >::setSize(), dw::AlignedTextblock::List::setValue(), splitStr(), and lout::misc::ZoneAllocator::zoneAlloc().
|
inline |
Set the size explicitly.
May be necessary before calling misc::SimpleVector::set.
Definition at line 143 of file misc.hh.
Referenced by Html_real_pop_tag(), dw::Hyphenator::hyphenateSingleWord(), lout::misc::SimpleVector< dw::Trie::TrieNode >::increase(), dw::Hyphenator::insertPattern(), lout::misc::SimpleVector< dw::Trie::TrieNode >::setSize(), and lout::misc::ZoneAllocator::zoneFree().
|
inline |
Set the size explicitly and initialize new values.
May be necessary before calling misc::SimpleVector::set.
|
inline |
Return the number of elements put into this vector.
Definition at line 119 of file misc.hh.
Referenced by a_Html_common_image_attrs(), a_Html_image_new(), a_Menu_page_popup(), CssStyleSheet::addRule(), CssContext::addRule(), StyleEngine::apply(), CssStyleSheet::apply(), Html_add_input(), Html_contains_form(), Html_display_listitem(), Html_get_current_input(), Html_get_radio_input(), Html_process_tag(), Html_push_tag(), Html_read_coords(), Html_real_pop_tag(), Html_set_new_link(), Html_stack_cleanup_at_open(), Html_table_get_border_model(), Html_table_set_border_model(), Html_tag_cleanup_at_close(), Html_tag_cleanup_nested_inputs(), Html_tag_cleanup_to_idx(), Html_tag_close_head(), Html_tag_close_map(), Html_tag_content_area(), Html_tag_open_li(), Html_test_section(), dw::Hyphenator::hyphenateSingleWord(), dw::Hyphenator::hyphenateWord(), dw::Trie::load(), CssSimpleSelector::match(), CssParser::parseRuleset(), CssSimpleSelector::print(), CssSimpleSelector::setSelect(), CssSimpleSelector::specificity(), splitStr(), lout::misc::ZoneAllocator::zoneAlloc(), lout::misc::ZoneAllocator::zoneFree(), CssSimpleSelector::~CssSimpleSelector(), and DoctreeNode::~DoctreeNode().
|
private |
Definition at line 74 of file misc.hh.
Referenced by lout::misc::SimpleVector< dw::Trie::TrieNode >::detachArray(), lout::misc::SimpleVector< dw::Trie::TrieNode >::getArray(), lout::misc::SimpleVector< dw::Trie::TrieNode >::getFirstRef(), lout::misc::SimpleVector< dw::Trie::TrieNode >::getRef(), lout::misc::SimpleVector< dw::Trie::TrieNode >::resize(), and lout::misc::SimpleVector< dw::Trie::TrieNode >::SimpleVector().
|
private |
Definition at line 75 of file misc.hh.
Referenced by lout::misc::SimpleVector< dw::Trie::TrieNode >::detachArray(), lout::misc::SimpleVector< dw::Trie::TrieNode >::resize(), lout::misc::SimpleVector< dw::Trie::TrieNode >::setSize(), lout::misc::SimpleVector< dw::Trie::TrieNode >::SimpleVector(), and lout::misc::SimpleVector< dw::Trie::TrieNode >::size().
|
private |
Definition at line 75 of file misc.hh.
Referenced by lout::misc::SimpleVector< dw::Trie::TrieNode >::detachArray(), and lout::misc::SimpleVector< dw::Trie::TrieNode >::SimpleVector().