QuantLib_Clone

Langue: en

Autres versions - même langue

Version: 377357 (fedora - 01/12/10)

Section: 3 (Bibliothèques de fonctions)

NAME

QuantLib::Clone -

cloning proxy to an underlying object

SYNOPSIS


#include <ql/utilities/clone.hpp>

Public Member Functions


Clone (std::auto_ptr< T >)

Clone (const T &)

Clone (const Clone< T > &)

Clone< T > & operator= (const T &)

Clone< T > & operator= (const Clone< T > &)

T & operator* () const

T * operator-> () const

bool empty () const

void swap (Clone< T > &t)

(Note that these are not member functions.)
template<class T > void swap (Clone< T > &, Clone< T > &)

Detailed Description

template<class T> class QuantLib::Clone< T >

cloning proxy to an underlying object

When copied, this class will make a clone of its underlying object (which must provide a clone() method returning a std::auto_ptr to a newly-allocated instance.)

void swap (Clone< T > &, Clone< T > &) [related]

Author

Generated automatically by Doxygen for QuantLib from the source code.