Rechercher une page de manuel
QuantLib_Composite
Langue: en
Version: 377821 (fedora - 01/12/10)
Section: 3 (Bibliothèques de fonctions)
Sommaire
NAME
QuantLib::Composite -Composite pattern.
SYNOPSIS
#include <ql/patterns/composite.hpp>
Inherits T.
Protected Types
typedef std::list< boost::shared_ptr< T > >::iterator iterator
typedef std::list< boost::shared_ptr< T > >::const_iterator const_iterator
Protected Member Functions
void add (const boost::shared_ptr< T > &c)
Protected Attributes
std::list< boost::shared_ptr< T > > components_
Detailed Description
template<class T> class QuantLib::Composite< T >
Composite pattern.The typical use of this class is:
class CompositeFoo : public Composite<Foo> { ... };
which causes CompositeFoo to inherit from Foo and provides it with methods for adding components. Of course, any abstract Foo interface must still be implemented.
Author
Generated automatically by Doxygen for QuantLib from the source code.
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre