network_link_registry Class

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The network_link_registry abstract base class manages the links between source and target blocks.

template<class _Block>
class network_link_registry;

Parameters

_Block
The block data type being stored in the network_link_registry.

Public Typedefs

NameDescription
const_pointerA type that provides a pointer to a const element in a network_link_registry object.
const_referenceA type that provides a reference to a const element stored in a network_link_registry object for reading and performing const operations.
iteratorA type that provides an iterator that can read or modify any element in a network_link_registry object.
typeA type that represents the block type stored in the network_link_registry object.

Public Methods

NameDescription
network_link_registry::add MethodWhen overridden in a derived class, adds a link to the network_link_registry object.
network_link_registry::begin MethodWhen overridden in a derived class, returns an iterator to the first element in the network_link_registry object.
network_link_registry::contains MethodWhen overridden in a derived class, searches the network_link_registry object for a specified block.
network_link_registry::count MethodWhen overridden in a derived class, returns the number of items in the network_link_registry object.
network_link_registry::remove MethodWhen 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;

Parameters

_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;

Return Value

An iterator addressing the first element in the network_link_registry object.

Remarks

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;

Parameters

_Link
A pointer to a block that is being searched for in the network_link_registry object.

Return Value

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;

Return Value

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;

Parameters

_Link
A pointer to a block to be removed, if found.

Return Value

true if the link was found and removed, false otherwise.

concurrency Namespace
single_link_registry Class
multi_link_registry Class

Show: