Interface< Iface > Class Template Reference

A base class for all interfaces, parametrized by the interface's type. More...

#include <modules.h>

Inheritance diagram for Interface< Iface >:

Inheritance graph
[legend]
Collaboration diagram for Interface< Iface >:

Collaboration graph
[legend]

List of all members.

Public Member Functions

Iface * clone (CloneMethod method=DeepCopy) const
 Works like abstractClone(), but is public and returns the correct type.

Static Public Member Functions

static const std::vector< int > & getCompMods ()
 Returns a reference to compMods_ (initializes it if empty).
static const Iface & compatiblePrototype (int index=0)
 Returns a reference to the index-th prototype implementing this interface.
static Iface * newCompatibleModule (int index=0)
 Creates a new instance of the index-th compatible module (deep copy of the prototype).

Static Private Attributes

static std::vector< int > compMods_
 IDs of modules derived from this interface.


Detailed Description

template<class Iface>
class Interface< Iface >

A base class for all interfaces, parametrized by the interface's type.

Definition at line 301 of file modules.h.


The documentation for this class was generated from the following files:

Generated on Thu Aug 6 22:33:14 2009 for Fractal Image Compressor by  doxygen 1.5.8