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

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

Inheritance diagram for IIndexedOpaqueUserData:
Collaboration diagram for IIndexedOpaqueUserData:

List of all members.


Detailed Description

Provides an interface that allows access to 'opaque user data' that is data that is stored as either a void * or an unsigned long and that is basically anything that the user wants to store. The data is stored by index and an implementation of this class is free to store the data in any way that it sees fit. An index represents a single storage location so a call to GetUserPointer() and GetUserData() on the same index will return the same data, just viewed in different ways.

Public Types

typedef unsigned short UserDataIndex

Public Member Functions

virtual void * GetUserPointer (UserDataIndex index) const =0
 Access the data stored at the specified index as a void pointer.
virtual void SetUserPointer (UserDataIndex index, void *pData)=0
 Update the data stored at the specified index as a void pointer.
virtual ULONG_PTR GetUserData (UserDataIndex index) const =0
 Access the data stored at the specified index as an unsigned long.
virtual void SetUserData (UserDataIndex index, ULONG_PTR data)=0
 Update the data stored at the specified index as an unsigned long.

Static Public Attributes

static
JETBYTE_CONSTEXPR
UserDataIndex 
InvalidUserDataIndex = 0xFFFF

Protected Member Functions

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

Member Typedef Documentation


Constructor & Destructor Documentation

virtual ~IIndexedOpaqueUserData (  )  [protected, virtual]

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


Member Function Documentation


Member Data Documentation

JETBYTE_CONSTEXPR UserDataIndex InvalidUserDataIndex = 0xFFFF [static]


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