Class Poco::DefaultStrategy
Author: Applied Informatics Software Engineering GmbH and Contributors

# Poco

# template < class TArgs, class TDelegate >

# class DefaultStrategy

Library: Foundation
Package: Events
Header: Poco/DefaultStrategy.h

## Description

Default notification strategy.

Internally, a std::vector<> is used to store delegate objects. Delegates are invoked in the order in which they have been registered.

## Inheritance

Direct Base Classes: NotificationStrategy < TArgs, TDelegate >

All Base Classes: NotificationStrategy < TArgs, TDelegate >

## Member Summary

Member Functions: add, clear, empty, notify, operator =, remove

## Types

### DelegateHandle

typedef TDelegate * DelegateHandle;

### DelegatePtr

typedef SharedPtr < TDelegate > DelegatePtr;

### Delegates

typedef std::vector < DelegatePtr > Delegates;

### Iterator

typedef typename Delegates::iterator Iterator;

## Constructors

### DefaultStrategy

DefaultStrategy();

### DefaultStrategy

DefaultStrategy(
const DefaultStrategy & s
);

## Destructor

### ~DefaultStrategy

~DefaultStrategy();

## Member Functions

### add

DelegateHandle add(
const TDelegate & delegate
);

### clear

void clear();

### empty

bool empty() const;

### notify

void notify(
const void * sender,
TArgs & arguments
);

### operator =

DefaultStrategy & operator = (
const DefaultStrategy & s
);

### remove

void remove(
const TDelegate & delegate
);

### remove

void remove(
DelegateHandle delegateHandle
);

## Variables

### _delegates

Delegates _delegates;