Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   Related Pages  

CODEX_Server::ShareCallbackBase< _ShareType, _OneWay > Class Template Reference

This base class defines the interface for share callbacks. More...

#include <ShareCallback.h>

Inheritance diagram for CODEX_Server::ShareCallbackBase< _ShareType, _OneWay >:

Inheritance graph
[legend]
List of all members.

Public Types

typedef _ShareType ShareType
 Export the type of the sharing.

typedef _OneWay OneWay
 Export the type of the one-way function.

typedef CODEX_VSS::LabeledShare<
ShareType, OneWay
LSType
 Shorthand for the type of a labeled sharing.

typedef CODEX_VSS::ShareLabel<
ShareType, OneWay
LabelType
 Shorthand for the type of a share label.


Public Methods

virtual ~ShareCallbackBase ()
 Virtual destructor.

virtual const LSTypeoperator() (const LabelType &label, unsigned int server) const=0
 Get the sharing for a specified label.


Detailed Description

template<class _ShareType, class _OneWay>
class CODEX_Server::ShareCallbackBase< _ShareType, _OneWay >

This base class defines the interface for share callbacks.

ServerState uses these callbacks to request specific sharings of a secret, allowing modules to set their own callbacks for sharings that they control.

Definition at line 33 of file ShareCallback.h.


Member Function Documentation

template<class _ShareType, class _OneWay>
virtual const LSType& CODEX_Server::ShareCallbackBase< _ShareType, _OneWay >::operator() const LabelType   label,
unsigned int    server
const [pure virtual]
 

Get the sharing for a specified label.

This method should be implemented by a derived class.

Parameters:
label  The label of the sharing to retrieve.
server  The requesting server.
Returns:
The corresponding labeled sharing.

Implemented in CODEX_APSS::APSSShareCallback, and CODEX_Server::DefaultShareCallback< _ShareType, _OneWay >.


The documentation for this class was generated from the following file:
Generated on Wed Jun 2 16:33:21 2004 for COrnell Data EXchange (CODEX) by doxygen1.2.18