Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

CODEX_VSS::CombinatoricScenario< NumT, FaultT > Class Template Reference

This is a compile-time version of DynamicCombinatoricScenario, which is more likely to be used. More...

#include <CombinatoricScenario.h>

Inheritance diagram for CODEX_VSS::CombinatoricScenario< NumT, FaultT >:

Inheritance graph
[legend]
Collaboration diagram for CODEX_VSS::CombinatoricScenario< NumT, FaultT >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

bool inScenario (unsigned int host, unsigned int scenario) const
 Is the host in a failure scenario?

Static Public Member Functions

static CombinatoricScenarioinstance ()
 Get the unique instance of the CombinatoricScenario.
static void destroy ()
 Destroy the unique instance.

Detailed Description

template<unsigned int NumT, unsigned int FaultT>
class CODEX_VSS::CombinatoricScenario< NumT, FaultT >

This is a compile-time version of DynamicCombinatoricScenario, which is more likely to be used.

The template parameters are the number of participants and the maximum number that might be faulty at any time. This class is a singleton in order to obviate the need to copy it from one location to another.

Definition at line 106 of file CombinatoricScenario.h.


Member Function Documentation

bool CODEX_VSS::DynamicCombinatoricScenario::inScenario unsigned int  host,
unsigned int  scenario
const [inline, inherited]
 

Is the host in a failure scenario?

Parameters:
host The host number, in [0,numServ)
scenario The failure scenario number
Returns:
Whether the host is in the failure scenario, and therefore should not be given any secrets protected against that scenario, such as shares in a Combinatoric secret sharing scheme.

Definition at line 62 of file CombinatoricScenario.h.


The documentation for this class was generated from the following file:
Generated on Fri May 6 17:42:53 2005 for COrnell Data EXchange (CODEX) by  doxygen 1.4.1