Rechercher une page de manuel
QuantLib_ObservableValue
Langue: en
Version: 382090 (fedora - 01/12/10)
Section: 3 (Bibliothèques de fonctions)
Sommaire
NAME
QuantLib::ObservableValue -observable and assignable proxy to concrete value
SYNOPSIS
#include <ql/utilities/observablevalue.hpp>
Public Member Functions
ObservableValue (const T &)
ObservableValue (const ObservableValue< T > &)
operator T () const
implicit conversion
operator boost::shared_ptr< Observable > () const
const T & value () const
explicit inspector
controlled assignment
ObservableValue< T > & operator= (const T &)
ObservableValue< T > & operator= (const ObservableValue< T > &)
Detailed Description
template<class T> class QuantLib::ObservableValue< T >
observable and assignable proxy to concrete valueObservers can be registered with instances of this class so that they are notified when a different value is assigned to such instances. Client code can copy the contained value or pass it to functions via implicit conversion.
Note:
- it is not possible to call non-const method on the returned value. This is by design, as this possibility would necessarily bypass the notification code; client code should modify the value via re-assignment instead.
Author
Generated automatically by Doxygen for QuantLib from the source code.
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre