cgicc::HTMLElementList Class Reference

An expandable list of HTMLElement objects. More...

#include <cgicc/HTMLElementList.h>


Public Member Functions

Overloaded Operators
HTMLElementListoperator= (const HTMLElementList &list)
 Assignment operator.
List Management
Manage the elements in the list

HTMLElementListadd (const HTMLElement &element)
 Add an HTMLElement to the list.
HTMLElementListadd (HTMLElement *element)
 Add an HTMLElement to the list.
void render (std::ostream &out) const
 Render this HTMLElementList.


Detailed Description

An expandable list of HTMLElement objects.

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());
See also:
HTMLAttribute

HTMLElement

Definition at line 67 of file HTMLElementList.h.


Constructor & Destructor Documentation

cgicc::HTMLElementList::HTMLElementList (  ) 

Create an empty HTMLElementList.

HTMLElementLists are most often created with the add() functions

Definition at line 36 of file HTMLElementList.cpp.

cgicc::HTMLElementList::HTMLElementList ( const HTMLElement head  ) 

Create a new HTMLElementList, specifying the first element.

The first element in the list is set to head

Parameters:
head The first element of the list

Definition at line 41 of file HTMLElementList.cpp.

References cgicc::HTMLElement::clone().

cgicc::HTMLElementList::HTMLElementList ( const HTMLElementList list  ) 

Copy constructor.

Sets the elements in this list to those of list

Parameters:
list The HTMLElementList to copy.

Definition at line 47 of file HTMLElementList.cpp.

References operator=().

cgicc::HTMLElementList::~HTMLElementList (  ) 

Destructor.

Deletes this HTMLElementList object

Definition at line 52 of file HTMLElementList.cpp.

cgicc::HTMLElementList::HTMLElementList (  ) 

Create an empty HTMLElementList.

HTMLElementLists are most often created with the add() functions

Definition at line 36 of file HTMLElementList.cpp.

cgicc::HTMLElementList::HTMLElementList ( const HTMLElement head  ) 

Create a new HTMLElementList, specifying the first element.

The first element in the list is set to head

Parameters:
head The first element of the list

Definition at line 41 of file HTMLElementList.cpp.

References cgicc::HTMLElement::clone().

cgicc::HTMLElementList::HTMLElementList ( const HTMLElementList list  ) 

Copy constructor.

Sets the elements in this list to those of list

Parameters:
list The HTMLElementList to copy.

Definition at line 47 of file HTMLElementList.cpp.

References operator=().

cgicc::HTMLElementList::~HTMLElementList (  ) 

Destructor.

Deletes this HTMLElementList object

Definition at line 52 of file HTMLElementList.cpp.


Member Function Documentation

cgicc::HTMLElementList & cgicc::HTMLElementList::operator= ( const HTMLElementList list  ) 

Assignment operator.

Sets the elements in this list to those of list

Parameters:
list The HTMLElementList to copy
Returns:
A reference to this

Definition at line 60 of file HTMLElementList.cpp.

References fElements.

Referenced by HTMLElementList().

cgicc::HTMLElementList & cgicc::HTMLElementList::add ( const HTMLElement element  ) 

Add an HTMLElement to the list.

Parameters:
element The HTMLElement to add.
Returns:
A reference to this

Definition at line 72 of file HTMLElementList.cpp.

References cgicc::HTMLElement::clone().

Referenced by cgicc::HTMLElement::add().

cgicc::HTMLElementList & cgicc::HTMLElementList::add ( HTMLElement element  ) 

Add an HTMLElement to the list.

Parameters:
element The HTMLElement to add.
Returns:
A reference to the this

Definition at line 79 of file HTMLElementList.cpp.

void cgicc::HTMLElementList::render ( std::ostream &  out  )  const

Render this HTMLElementList.

Parameters:
out The ostream to which to write

Definition at line 86 of file HTMLElementList.cpp.

Referenced by cgicc::HTMLElement::render().


The documentation for this class was generated from the following files:
Generated on Tue Jul 3 15:44:42 2007 for GNUCgicc by  doxygen 1.5.1