corelinux_Prototype(3)

corelinux_Prototype3

Specify the kinds of objects to create using a prototypical instance, and create new objects by copying (cloning) this prototype.

Usage

#include <Prototype.hpp>

Inherits corelinux::CoreLinuxObject.

Public Member Functions

Prototype (void)
Default constructor. Prototype (const Prototype &aPrototype)
Copy constructor. virtual ~Prototype (void)
Virtual destructor. Prototype & operator= (const Prototype &aPrototype)
Assignment operator. bool operator== (const Prototype &aPrototype) const
Equality operator. virtual TypeImpl * clone (void) const =0
clone is used to create a copy of the current prototype instance.

Detailed Description

template<class TypeImpl> class corelinux::Prototype< TypeImpl >

Specify the kinds of objects to create using a prototypical instance, and create new objects by copying (cloning) this prototype.

Constructor & Destructor Documentation

template<class TypeImpl> corelinux::Prototype< TypeImpl >::Prototype (const Prototype< TypeImpl > & aPrototype) [inline]

Copy constructor. Parameters:

Prototype const reference

Member Function Documentation

template<class TypeImpl> virtual TypeImpl* corelinux::Prototype< TypeImpl >::clone (void) const [pure virtual]

clone is used to create a copy of the current prototype instance. Returns:

TypeImpl pointer

template<class TypeImpl> Prototype& corelinux::Prototype< TypeImpl >::operator= (const Prototype< TypeImpl > & aPrototype) [inline]

Assignment operator. Parameters:

Prototype const reference

Returns:

Prototype reference to this instance

template<class TypeImpl> bool corelinux::Prototype< TypeImpl >::operator== (const Prototype< TypeImpl > & aPrototype) const [inline]

Equality operator. Parameters:

Prototype const reference

Returns:

bool if instances are same

Releases

2 releases since Debian 3.0 (Woody); the text changed 1 time.

  1. 3.0
  2. 3.1

Author

Generated automatically by Doxygen for CoreLinux++ from the source code.

From libcorelinux-dev 0.4.32-5 in Debian 3.1 (Sarge). Parsed by carta from the page's man source.