Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Examples  

corelinux::Prototype Template Class Reference

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

#include <Prototype.hpp>

Inheritance diagram for corelinux::Prototype

Inheritance graph
[legend]
Collaboration diagram for corelinux::Prototype:

Collaboration graph
[legend]
List of all members.

Public Methods

 Prototype ( void )
 Default constructor.

 Prototype ( const Prototype & aPrototype )
 Copy constructor. More...

virtual ~Prototype ( void )
 Virtual destructor.

Prototype& operator= ( const Prototype & aPrototype )
 Assignment operator. More...

bool operator== ( const Prototype & aPrototype ) const
 Equality operator. More...

virtual TypeImpl* clone ( void ) const = 0
 clone is used to create a copy of the current prototype instance. More...


Detailed Description

template<class TypeImpl> template class corelinux::Prototype

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


Constructor & Destructor Documentation

template<classTypeImpl>
corelinux::Prototype<TypeImpl>::Prototype<TypeImpl> ( const Prototype<TypeImpl> & aPrototype )
 

Copy constructor.

Parameters:
Prototype   const reference


Member Function Documentation

template<classTypeImpl>
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<classTypeImpl>
Prototype<TypeImpl> & corelinux::Prototype<TypeImpl>::operator= ( const Prototype<TypeImpl> & aPrototype ) [inline]
 

Assignment operator.

Parameters:
Prototype   const reference
Returns:
Prototype reference to this instance

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

Equality operator.

Parameters:
Prototype   const reference
Returns:
bool if instances are same


The documentation for this class was generated from the following file:
This is the CoreLinux++ reference manual
Provided by The CoreLinux Consortium