Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

LinkedPropertyList Class Reference

#include <LinkedPropertyList.hpp>

Inheritance diagram for LinkedPropertyList:

PropertyList List of all members.

Public Methods

 LinkedPropertyList ()
 ~LinkedPropertyList ()
virtual const Property * getProperty (const char *name) const
virtual void startIteration () const
 Starts iteration over properties.

virtual const Property * nextEntry () const
virtual bool hasMore () const
 Tests to see whether there are more properties in the iteration.

virtual void setProperty (const Property *property)
virtual void removeProperty (const char *name)
virtual void clear ()
 Clears all properties from the list.


Protected Methods

virtual Property * getAProperty ()
virtual Property * getPropertyInternal (const char *name) const

Protected Attributes

plist::iterator iterator
plist properties
plist cache
Property returnProp

Constructor & Destructor Documentation

LinkedPropertyList::LinkedPropertyList (    ) 
 

LinkedPropertyList::~LinkedPropertyList (    ) 
 


Member Function Documentation

void LinkedPropertyList::clear (    )  [virtual]
 

Clears all properties from the list.

Implements PropertyList.

Property * LinkedPropertyList::getAProperty (    )  [protected, virtual]
 

const Property * LinkedPropertyList::getProperty (  const char *    name )  const [virtual]
 

Returns the property with a given name. Returns NULL if there is no property in the list with that name. Do not deallocate the returned pointer.

Implements PropertyList.

Property * LinkedPropertyList::getPropertyInternal (  const char *    name )  const [protected, virtual]
 

bool LinkedPropertyList::hasMore (    )  [virtual]
 

Tests to see whether there are more properties in the iteration.

Implements PropertyList.

const Property * LinkedPropertyList::nextEntry (    )  [virtual]
 

Returns the next Property in the iteration. Do not deallocate the returned pointer.

Implements PropertyList.

void LinkedPropertyList::removeProperty (  const char *    name )  [virtual]
 

Removes a property from the list with the passed in name. If no property in the list has the name, the function fails silently.

Implements PropertyList.

void LinkedPropertyList::setProperty (  const Property *    property )  [virtual]
 

Adds/changes a property into the list. Overwrites a property with the same value. The actual property stored is a copy of the property passed in. Changes after calling this function to the property passed in will not affect the property in the list.

Implements PropertyList.

void LinkedPropertyList::startIteration (    )  [virtual]
 

Starts iteration over properties.

Implements PropertyList.


Member Data Documentation

plist LinkedPropertyList::cache [protected]
 

plist::iterator LinkedPropertyList::iterator [protected]
 

plist LinkedPropertyList::properties [protected]
 

Property LinkedPropertyList::returnProp [protected]
 


The documentation for this class was generated from the following files:
Generated on Wed Nov 3 12:59:44 2004 for Lemur Toolkit by doxygen1.2.18