#include <ValidationPolicies.hpp>
Inheritance diagram for Hashes::Policies::ExtendedValidation< CheckingPolicyT >:


Public Types | |
| typedef CheckingPolicyT | CheckingPolicy |
| typedef CheckingPolicy::StoragePolicy | StoragePolicy |
| typedef StoragePolicy::RawStorage | RawStorage |
Public Member Functions | |
| ExtendedValidation () | |
| ExtendedValidation (const RawStorage &rhs) | |
| template<template< typename > class OVP, typename OCP> | |
| ExtendedValidation (const OVP< OCP > &rhs) | |
| template<typename OCP> | |
| ExtendedValidation (const ExtendedValidation< OCP > &rhs) | |
| template<template< typename > class OVP, typename OCP> | |
| ExtendedValidation & | operator= (const OVP< OCP > &rhs) |
| template<typename OCP> | |
| ExtendedValidation & | operator= (const ExtendedValidation< OCP > &rhs) |
| void | clear () |
| Overides clear() in order to clear the trusted flag as well. | |
| bool | validate () |
| Overides validate() in order to clear the trusted flag if validation fails. | |
| bool | signalTrusted () |
| Sets trusted flag, provided the Hash is valid. Returns the valid state of the hash. | |
| void | signalUntrusted () |
| Clears the trusted flag. | |
| bool | isTrusted () const |
| Queries the trusted flag. | |
Private Attributes | |
| bool | m_trusted |
This policy is a refinement of Hashes::Policies::BasicValidation. It associates another flag "trusted" with the hash. The exact semantics of trusted is unspecified, except that:
| typedef CheckingPolicyT Hashes::Policies::ExtendedValidation< CheckingPolicyT >::CheckingPolicy |
Reimplemented from Hashes::Policies::BasicValidation< CheckingPolicyT >.
| typedef CheckingPolicy::StoragePolicy Hashes::Policies::ExtendedValidation< CheckingPolicyT >::StoragePolicy |
Reimplemented from Hashes::Policies::BasicValidation< CheckingPolicyT >.
| typedef StoragePolicy::RawStorage Hashes::Policies::ExtendedValidation< CheckingPolicyT >::RawStorage |
Reimplemented from Hashes::Policies::BasicValidation< CheckingPolicyT >.
| Hashes::Policies::ExtendedValidation< CheckingPolicyT >::ExtendedValidation | ( | ) | [inline] |
| Hashes::Policies::ExtendedValidation< CheckingPolicyT >::ExtendedValidation | ( | const RawStorage & | rhs | ) | [inline] |
| Hashes::Policies::ExtendedValidation< CheckingPolicyT >::ExtendedValidation | ( | const OVP< OCP > & | rhs | ) | [inline] |
| Hashes::Policies::ExtendedValidation< CheckingPolicyT >::ExtendedValidation | ( | const ExtendedValidation< OCP > & | rhs | ) | [inline] |
| ExtendedValidation& Hashes::Policies::ExtendedValidation< CheckingPolicyT >::operator= | ( | const OVP< OCP > & | rhs | ) | [inline] |
Reimplemented from Hashes::Policies::BasicValidation< CheckingPolicyT >.
| ExtendedValidation& Hashes::Policies::ExtendedValidation< CheckingPolicyT >::operator= | ( | const ExtendedValidation< OCP > & | rhs | ) | [inline] |
| void Hashes::Policies::ExtendedValidation< CheckingPolicyT >::clear | ( | ) | [inline] |
Overides clear() in order to clear the trusted flag as well.
Reimplemented from Hashes::Policies::BasicValidation< CheckingPolicyT >.
| bool Hashes::Policies::ExtendedValidation< CheckingPolicyT >::validate | ( | ) | [inline] |
Overides validate() in order to clear the trusted flag if validation fails.
Reimplemented from Hashes::Policies::BasicValidation< CheckingPolicyT >.
| bool Hashes::Policies::ExtendedValidation< CheckingPolicyT >::signalTrusted | ( | ) | [inline] |
Sets trusted flag, provided the Hash is valid. Returns the valid state of the hash.
| void Hashes::Policies::ExtendedValidation< CheckingPolicyT >::signalUntrusted | ( | ) | [inline] |
Clears the trusted flag.
| bool Hashes::Policies::ExtendedValidation< CheckingPolicyT >::isTrusted | ( | ) | const [inline] |
Queries the trusted flag.
bool Hashes::Policies::ExtendedValidation< CheckingPolicyT >::m_trusted [private] |
1.5.2