#include <cgicc/HTMLElementList.h>
Public Member Functions | |
Overloaded Operators | |
HTMLElementList & | operator= (const HTMLElementList &list) |
Assignment operator. | |
List Management | |
Manage the elements in the list | |
HTMLElementList & | add (const HTMLElement &element) |
Add an HTMLElement to the list. | |
HTMLElementList & | add (HTMLElement *element) |
Add an HTMLElement to the list. | |
void | render (std::ostream &out) const |
Render this HTMLElementList. |
An HTMLElementList represents any number of HTMLElement objects. To add HTMLElement objects to the list, use the add() methods:
cgicc::HTMLElementList list; list.add(br());
Definition at line 67 of file HTMLElementList.h.
cgicc::HTMLElementList::HTMLElementList | ( | ) |
Create an empty HTMLElementList.
HTMLElementLists are most often created with the add() functions
cgicc::HTMLElementList::HTMLElementList | ( | const HTMLElement & | head | ) |
Create a new HTMLElementList, specifying the first element.
The first element in the list is set to head
head | The first element of the list |
cgicc::HTMLElementList::HTMLElementList | ( | const HTMLElementList & | list | ) |
Copy constructor.
Sets the elements in this list to those of list
list | The HTMLElementList to copy. |
cgicc::HTMLElementList::~HTMLElementList | ( | ) |
Destructor.
Deletes this HTMLElementList object
cgicc::HTMLElementList::HTMLElementList | ( | ) |
Create an empty HTMLElementList.
HTMLElementLists are most often created with the add() functions
cgicc::HTMLElementList::HTMLElementList | ( | const HTMLElement & | head | ) |
Create a new HTMLElementList, specifying the first element.
The first element in the list is set to head
head | The first element of the list |
cgicc::HTMLElementList::HTMLElementList | ( | const HTMLElementList & | list | ) |
Copy constructor.
Sets the elements in this list to those of list
list | The HTMLElementList to copy. |
cgicc::HTMLElementList::~HTMLElementList | ( | ) |
Destructor.
Deletes this HTMLElementList object
HTMLElementList& cgicc::HTMLElementList::operator= | ( | const HTMLElementList & | list | ) |
Assignment operator.
Sets the elements in this list to those of list
list | The HTMLElementList to copy |
this
HTMLElementList& cgicc::HTMLElementList::add | ( | const HTMLElement & | element | ) |
Add an HTMLElement to the list.
element | The HTMLElement to add. |
this
HTMLElementList& cgicc::HTMLElementList::add | ( | HTMLElement * | element | ) |
Add an HTMLElement to the list.
element | The HTMLElement to add. |
this
void cgicc::HTMLElementList::render | ( | std::ostream & | out | ) | const |