| description | Learn more about: network_link_registry Class | |||||||
|---|---|---|---|---|---|---|---|---|
| title | network_link_registry Class | |||||||
| ms.date | 11/04/2016 | |||||||
| f1_keywords |
|
|||||||
| helpviewer_keywords |
|
|||||||
| ms.assetid | 3e7b4097-09f1-4252-964e-b15b8f7f7fc6 |
The network_link_registry abstract base class manages the links between source and target blocks.
template<class _Block>
class network_link_registry;_Block
The block data type being stored in the network_link_registry.
| Name | Description |
|---|---|
const_pointer |
A type that provides a pointer to a const element in a network_link_registry object. |
const_reference |
A type that provides a reference to a const element stored in a network_link_registry object for reading and performing const operations. |
iterator |
A type that provides an iterator that can read or modify any element in a network_link_registry object. |
type |
A type that represents the block type stored in the network_link_registry object. |
| Name | Description |
|---|---|
| add | When overridden in a derived class, adds a link to the network_link_registry object. |
| begin | When overridden in a derived class, returns an iterator to the first element in the network_link_registry object. |
| contains | When overridden in a derived class, searches the network_link_registry object for a specified block. |
| count | When overridden in a derived class, returns the number of items in the network_link_registry object. |
| remove | When overridden in a derived class, removes a specified block from the network_link_registry object. |
The network link registry is not safe for concurrent access.
network_link_registry
Header: agents.h
Namespace: concurrency
When overridden in a derived class, adds a link to the network_link_registry object.
virtual void add(_EType _Link) = 0;_Link
A pointer to a block to be added.
When overridden in a derived class, returns an iterator to the first element in the network_link_registry object.
virtual iterator begin() = 0;An iterator addressing the first element in the network_link_registry object.
The end state of the iterator is indicated by a NULL link.
When overridden in a derived class, searches the network_link_registry object for a specified block.
virtual bool contains(_EType _Link) = 0;_Link
A pointer to a block that is being searched for in the network_link_registry object.
true if the block was found, false otherwise.
When overridden in a derived class, returns the number of items in the network_link_registry object.
virtual size_t count() = 0;The number of items in the network_link_registry object.
When overridden in a derived class, removes a specified block from the network_link_registry object.
virtual bool remove(_EType _Link) = 0;_Link
A pointer to a block to be removed, if found.
true if the link was found and removed, false otherwise.
concurrency Namespace
single_link_registry Class
multi_link_registry Class