Public Member Functions | Private Member Functions | List of all members
HtmlAttribList Class Reference

A list of Html attributes. More...

#include <htmlattrib.h>

Inheritance diagram for HtmlAttribList:
QList< HtmlAttrib > QGList

Public Member Functions

 HtmlAttribList ()
 
 ~HtmlAttribList ()
 
 HtmlAttribList (const HtmlAttribList &l)
 
HtmlAttribListoperator= (const HtmlAttribList &l)
 
QCString find (const QCString name) const
 
QCString toString () const
 
- Public Member Functions inherited from QList< HtmlAttrib >
 QList ()
 
 QList (const QList< HtmlAttrib > &l)
 
 ~QList ()
 
QList< HtmlAttrib > & operator= (const QList< HtmlAttrib > &l)
 
bool operator== (const QList< HtmlAttrib > &list) const
 
uint count () const
 
bool isEmpty () const
 
bool insert (uint i, const HtmlAttrib *d)
 
void inSort (const HtmlAttrib *d)
 
void prepend (const HtmlAttrib *d)
 
void append (const HtmlAttrib *d)
 
bool remove (uint i)
 
bool remove (const HtmlAttrib *d)
 
bool removeRef (const HtmlAttrib *d)
 
bool removeFirst ()
 
bool removeLast ()
 
HtmlAttribtake (uint i)
 
void clear ()
 
void sort ()
 
int find (const HtmlAttrib *d) const
 
int findRef (const HtmlAttrib *d) const
 
uint contains (const HtmlAttrib *d) const
 
uint containsRef (const HtmlAttrib *d) const
 
HtmlAttribat (uint i) const
 
HtmlAttribgetFirst () const
 
HtmlAttribgetLast () const
 
void setAutoDelete (bool enable)
 

Private Member Functions

HtmlAttribnewValue (HtmlAttrib *v) const
 
void deleteValue (HtmlAttrib *v) const
 

Detailed Description

A list of Html attributes.

The Html attributes are deeply copied into the list.

Definition at line 32 of file htmlattrib.h.

Constructor & Destructor Documentation

HtmlAttribList::HtmlAttribList ( )
inline

Definition at line 35 of file htmlattrib.h.

void setAutoDelete(bool enable)
Definition: qlist.h:99
const bool TRUE
Definition: qglobal.h:371
HtmlAttribList::~HtmlAttribList ( )
inline

Definition at line 36 of file htmlattrib.h.

36 { clear(); }
void clear()
Definition: qlist.h:82
HtmlAttribList::HtmlAttribList ( const HtmlAttribList l)
inline

Definition at line 37 of file htmlattrib.h.

38  { operator=(l); }
HtmlAttribList & operator=(const HtmlAttribList &l)
Definition: htmlattrib.h:39

Member Function Documentation

void HtmlAttribList::deleteValue ( HtmlAttrib v) const
inlineprivatevirtual

Reimplemented from QList< HtmlAttrib >.

Definition at line 66 of file htmlattrib.h.

67  { delete v; }
QCString HtmlAttribList::find ( const QCString  name) const
inline

Definition at line 41 of file htmlattrib.h.

42  {
43  QListIterator<HtmlAttrib> it(*this);
45  HtmlAttrib *attr;
46  for (;(attr=it.current());++it)
47  {
48  if (attr->name==name) return attr->value;
49  }
50  return result;
51  }
static QCString result
QCString value
Definition: htmlattrib.h:25
QCString name
Definition: htmlattrib.h:24
HtmlAttrib* HtmlAttribList::newValue ( HtmlAttrib v) const
inlineprivatevirtual

Reimplemented from QList< HtmlAttrib >.

Definition at line 64 of file htmlattrib.h.

65  { return new HtmlAttrib(*v); }
HtmlAttribList& HtmlAttribList::operator= ( const HtmlAttribList l)
inline

Definition at line 39 of file htmlattrib.h.

40  { clear(); QList<HtmlAttrib>::operator=(l); return *this; }
void clear()
Definition: qlist.h:82
QList< type > & operator=(const QList< type > &l)
Definition: qlist.h:60
QCString HtmlAttribList::toString ( ) const
inline

Definition at line 52 of file htmlattrib.h.

53  {
54  QListIterator<HtmlAttrib> it(*this);
56  HtmlAttrib *attr;
57  for (;(attr=it.current());++it)
58  {
59  result+=" "+attr->name+"=\""+attr->value+"\"";
60  }
61  return result;
62  }
static QCString result
QCString value
Definition: htmlattrib.h:25
QCString name
Definition: htmlattrib.h:24

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