k3d::property_collection Class Reference

Provides a default implementation of iproperty_collection. More...

#include <property_collection.h>

Inheritance diagram for k3d::property_collection:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 property_collection ()
virtual ~property_collection ()
void register_property (iproperty &Property)
 Registers a property with the collection - note: the collection will assume responsibility for the lifetime of user properties only.
void register_properties (const properties_t &Properties)
 Registers a set of properties with the collection - note: the collection will assume responsibility for the lifetime of user properties only.
void unregister_property (iproperty &Property)
 Removes a property from the collection.
void unregister_properties (const properties_t &Properties)
 Removes a set of properties from the collection.
const properties_tproperties ()
 Returns the set of all properties in the collection.
sigc::connection connect_properties_changed_signal (const sigc::slot< void, ihint * > &Slot)
 Connects a slot to a signal emitted whenever the collection changes - note: the signal is emitted when the collection changes (properties are registered and unregistered), not when individual property values are changed.

Private Attributes

properties_t m_properties
 Contains the collection of all properties.
sigc::signal< void, ihint * > m_changed_signal
 Change-notification signal for the collection.

Detailed Description

Provides a default implementation of iproperty_collection.


Constructor & Destructor Documentation

k3d::property_collection::property_collection (  ) 
k3d::property_collection::~property_collection (  )  [virtual]

References m_properties.


Member Function Documentation

sigc::connection k3d::property_collection::connect_properties_changed_signal ( const sigc::slot< void, ihint * > &  Slot  )  [virtual]

Connects a slot to a signal emitted whenever the collection changes - note: the signal is emitted when the collection changes (properties are registered and unregistered), not when individual property values are changed.

Implements k3d::iproperty_collection.

References m_changed_signal.

const iproperty_collection::properties_t & k3d::property_collection::properties (  )  [virtual]
void k3d::property_collection::register_properties ( const properties_t Properties  )  [virtual]

Registers a set of properties with the collection - note: the collection will assume responsibility for the lifetime of user properties only.

Implements k3d::iproperty_collection.

References m_changed_signal, m_properties, and k3d::filesystem::remove().

void k3d::property_collection::register_property ( iproperty Property  )  [virtual]

Registers a property with the collection - note: the collection will assume responsibility for the lifetime of user properties only.

Implements k3d::iproperty_collection.

References m_changed_signal, m_properties, and k3d::filesystem::remove().

void k3d::property_collection::unregister_properties ( const properties_t Properties  )  [virtual]

Removes a set of properties from the collection.

Implements k3d::iproperty_collection.

References m_changed_signal, m_properties, and k3d::filesystem::remove().

Referenced by k3d::ri::shader::delete_arguments().

void k3d::property_collection::unregister_property ( iproperty Property  )  [virtual]

Removes a property from the collection.

Implements k3d::iproperty_collection.

References m_changed_signal, m_properties, and k3d::filesystem::remove().


Member Data Documentation

sigc::signal<void, ihint*> k3d::property_collection::m_changed_signal [private]

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

Generated on Mon Mar 21 07:42:10 2011 for K-3D by doxygen 1.6.3