The C++ framework for developing highly scalable, high performance servers on Windows platforms.

IProvideUserData Class Reference
[InterfacesOpaque user dataProtected destructors on abstract base classes]

Inheritance diagram for IProvideUserData:

List of all members.


Detailed Description

An interface that works with IIndexedOpaqueUserData to allow users of a class that provides opaque user data to request a named 'slot' for their data. Generally what happens is that an allocator will expose this interface and the allocated items will expose the interface to access the user data. Users of the allocator can request named slots of user data before allocating the first item and then all items are created with the required amount of user data space.

Public Member Functions

virtual
IIndexedOpaqueUserData::UserDataIndex 
RequestUserDataSlot (const _tstring &name)=0
 Request a named user data slot and get an index to use in calls to methods on IIndexedOpaqueUserData.
virtual
IIndexedOpaqueUserData::UserDataIndex 
LockUserDataSlots ()=0
 Prevent more user data slots from being allocated. Returns the number of user data slots that have been allocated.

Protected Member Functions

virtual ~IProvideUserData ()
 We never delete instances of this interface; you must manage the lifetime of the class that implements it.

Constructor & Destructor Documentation

virtual ~IProvideUserData (  )  [protected, virtual]

We never delete instances of this interface; you must manage the lifetime of the class that implements it.


Member Function Documentation


Generated on Sun Sep 12 19:08:36 2021 for The Server Framework - v7.4 by doxygen 1.5.3