corelinux_Adapter(3)

corelinux_Adapter3

An adapter converts the interface of a class into another interface that clients expect.

Usage

#include <Adapter.hpp>

Inherited by FooBarClassAdapter, and FooBarObjectAdapter.

Public Member Functions

Adapter (void)
Default Constructor. Adapter (AdapterCref)
Copy Constructor. virtual ~Adapter (void)
Virtual Destructor. AdapterRef operator= (AdapterCref)
Assignment operator overload. bool operator== (AdapterCref) const
Equality operator overload. bool operator!= (AdapterCref) const
Non-equality operator overload.

Detailed Description

An Adapter converts the interface of a class into another interface that clients expect.

This allows classes work together that couldn't otherwise because of the incompatible interfaces. Sometimes a toolkit class that's designed for reuse isn't reusable only because its interface doesn't match the domain specific interface an application requires.

Constructor & Destructor Documentation

corelinux::Adapter::Adapter (AdapterCref)

Copy Constructor. Parameters:

Adapter const reference

Member Function Documentation

bool corelinux::Adapter::operator!= (AdapterCref) const

Non-equality operator overload. Parameters:

Adapter const reference

Returns:

false if equal, true otherwise

AdapterRef corelinux::Adapter::operator= (AdapterCref)

Assignment operator overload. Parameters:

Adapter const reference

Returns:

Adapter reference to self

bool corelinux::Adapter::operator== (AdapterCref) const

Equality operator overload. Parameters:

Adapter const reference

Returns:

true if equal, false otherwise

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.