Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

FP::Tag Class Reference

#include <FP.H>

Inheritance diagram for FP::Tag:

Combine::FPTag List of all members.

Public Member Functions

 Tag () throw ()
 Tag (const char *s, int len=-1) throw ()
 Tag (const Text &t) throw ()
 Tag (RecoveryReader &rd) throw (VestaLog::Error, VestaLog::Eof)
 Tag (std::istream &ifs) throw (FS::Failure, FS::EndOfFile)
 Tag (SRPC &srpc) throw (SRPC::failure)
TagExtend (const char *s, int len=-1) throw ()
TagExtend (const Text &t) throw ()
TagExtend (const Tag &tag) throw ()
TagExtend (char c) throw ()
void Unpermute (RawFP &fp) const throw ()
void Permute (const RawFP &f) throw ()
void Log (VestaLog &log) const throw (VestaLog::Error)
void Recover (RecoveryReader &rd) throw (VestaLog::Error, VestaLog::Eof)
void Write (std::ostream &ofs) const throw (FS::Failure)
void Read (std::istream &ifs) throw (FS::EndOfFile, FS::Failure)
void Send (SRPC &srpc) const throw (SRPC::failure)
void Recv (SRPC &srpc) throw (SRPC::failure)
Word Hash () const throw ()
void Print (std::ostream &os, const char *word_separator=" ") const throw ()
bool operator== (const Tag &other) const throw ()
bool operator!= (const Tag &other) const throw ()
friend int::Compare (const Tag &fp1, const Tag &fp2) throw ()
int Size () const throw ()
void ToBytes (unsigned char *buffer) const throw ()
void FromBytes (const unsigned char *buffer) throw ()
WordWords () throw ()
Word Word0 () const throw ()
Word Word1 () const throw ()

Static Public Member Functions

static void ExtendRaw (RawFP &fp, const char *s, int len=-1) throw ()
static void ExtendRaw (RawFP &fp, const Text &t) throw ()
static void ExtendRaw (RawFP &fp, const Tag &tag) throw ()
static void ExtendRaw (RawFP &fp, char c) throw ()

Protected Attributes

Word w [WordCnt]

Private Member Functions

void Init (const char *s, int len) throw ()

Constructor & Destructor Documentation

FP::Tag::Tag  )  throw () [inline]
 

Definition at line 89 of file FP.H.

FP::Tag::Tag const char *  s,
int  len = -1
throw () [inline]
 

Definition at line 94 of file FP.H.

References Init().

FP::Tag::Tag const Text t  )  throw () [inline]
 

Definition at line 101 of file FP.H.

References Init().

FP::Tag::Tag RecoveryReader rd  )  throw (VestaLog::Error, VestaLog::Eof) [inline]
 

Definition at line 104 of file FP.H.

References Recover().

FP::Tag::Tag std::istream &  ifs  )  throw (FS::Failure, FS::EndOfFile) [inline]
 

Definition at line 107 of file FP.H.

References Read().

FP::Tag::Tag SRPC srpc  )  throw (SRPC::failure) [inline]
 

Definition at line 110 of file FP.H.

References Recv().


Member Function Documentation

Tag& FP::Tag::Extend char  c  )  throw ()
 

Tag& FP::Tag::Extend const Tag tag  )  throw () [inline]
 

Definition at line 124 of file FP.H.

References FP::ByteCnt, Extend(), and sizeof_assert.

Tag& FP::Tag::Extend const Text t  )  throw () [inline]
 

Definition at line 120 of file FP.H.

References Extend().

Tag& FP::Tag::Extend const char *  s,
int  len = -1
throw ()
 

Referenced by ApplicationFromCache(), VDirChangeable::copyMutableToImmutable(), do_one_test(), Extend(), AssocVC::FingerPrint(), ClosureVC::FingerPrint(), TextVC::FingerPrint(), PrimitiveVC::FingerPrint(), IntegerVC::FingerPrint(), BooleanVC::FingerPrint(), ClosureVC::FingerPrintExpr(), FP::FPStreambuf::flush(), FP::FPStreambuf::xsputn(), VDirChangeable::insertAppendableDirectory(), VDirChangeable::insertFile(), VDirChangeable::insertImmutableDirectory(), VDirChangeable::insertMutableFile(), main(), ModelFromCache(), ModelVC::ModelVC(), NormalModelFromCache(), Plus(), VDirChangeable::renameTo(), RunToolPK(), Sub(), TextVC::TextVC(), UniqueId(), and UniqueIdInit::UniqueIdInit().

static void FP::Tag::ExtendRaw RawFP fp,
char  c
throw () [static]
 

static void FP::Tag::ExtendRaw RawFP fp,
const Tag tag
throw () [inline, static]
 

Definition at line 145 of file FP.H.

References FP::ByteCnt, ExtendRaw(), and sizeof_assert.

static void FP::Tag::ExtendRaw RawFP fp,
const Text t
throw () [inline, static]
 

Definition at line 143 of file FP.H.

References ExtendRaw().

static void FP::Tag::ExtendRaw RawFP fp,
const char *  s,
int  len = -1
throw () [static]
 

Referenced by DepPath::DepPathC::DepPathC(), DepPath::Extend(), DepPath::ExtendLow(), ExtendRaw(), BindingVC::FingerPrint(), ListVC::FingerPrint(), FingerPrintContext(), and main().

void FP::Tag::FromBytes const unsigned char *  buffer  )  throw ()
 

Referenced by InsertFileStep::InsertFileStep(), InsertImmutableDirectoryStep::InsertImmutableDirectoryStep(), main(), Read(), Recover(), and Recv().

Word FP::Tag::Hash  )  const throw ()
 

Referenced by FPShortIdTable::Get(), PkgBuild::Hash(), DepPath::Hash(), and FPShortIdTable::Set().

void FP::Tag::Init const char *  s,
int  len
throw () [private]
 

Referenced by Tag(), and Combine::XorFPTag::XorFPTag().

FP::Tag::int::Compare const Tag fp1,
const Tag fp2
throw ()
 

void FP::Tag::Log VestaLog log  )  const throw (VestaLog::Error) [inline]
 

Definition at line 172 of file FP.H.

References FP::ByteCnt, and ToBytes().

Referenced by Combine::XorFPTag::Log().

bool FP::Tag::operator!= const Tag other  )  const throw ()
 

bool FP::Tag::operator== const Tag other  )  const throw ()
 

void FP::Tag::Permute const RawFP f  )  throw ()
 

Referenced by DepPath::DepPathC::DepPathC(), DepPath::Extend(), DepPath::ExtendLow(), BindingVC::FingerPrint(), ListVC::FingerPrint(), FingerPrintContext(), and main().

void FP::Tag::Print std::ostream &  os,
const char *  word_separator = " "
const throw ()
 

void FP::Tag::Read std::istream &  ifs  )  throw (FS::EndOfFile, FS::Failure) [inline]
 

Definition at line 198 of file FP.H.

References FP::ByteCnt, FromBytes(), and FS::Read().

Referenced by Combine::XorFPTag::Read(), PickleDepPathSize(), PickleDPathsSize(), PickleValDpndSize(), Tag(), and PickleC::UnpickleVal().

void FP::Tag::Recover RecoveryReader rd  )  throw (VestaLog::Error, VestaLog::Eof) [inline]
 

Definition at line 181 of file FP.H.

References FP::ByteCnt, and FromBytes().

Referenced by Combine::XorFPTag::Recover(), Tag(), and Combine::XorFPTag::XorFPTag().

void FP::Tag::Recv SRPC srpc  )  throw (SRPC::failure) [inline]
 

Definition at line 215 of file FP.H.

References FP::ByteCnt, and FromBytes().

Referenced by VDirSurrogate::insertAppendableDirectory(), VDirSurrogate::insertFile(), VDirSurrogate::insertGhost(), VDirSurrogate::insertImmutableDirectory(), VDirSurrogate::insertMutableDirectory(), VDirSurrogate::insertMutableFile(), VDirSurrogate::insertStub(), VDirEvaluator::lookup(), VDirSurrogate::lookupIndex(), and Tag().

void FP::Tag::Send SRPC srpc  )  const throw (SRPC::failure) [inline]
 

Definition at line 208 of file FP.H.

References FP::ByteCnt, sizeof_assert, and ToBytes().

Referenced by VDirSurrogate::fpToShortId(), ExpCache::GetCacheInstance(), Info(), VDirSurrogate::insertFile(), and VDirSurrogate::insertImmutableDirectory().

int FP::Tag::Size  )  const throw () [inline]
 

Definition at line 241 of file FP.H.

References FP::ByteCnt.

void FP::Tag::ToBytes unsigned char *  buffer  )  const throw ()
 

Referenced by do_remove(), Log(), main(), Send(), and Write().

void FP::Tag::Unpermute RawFP fp  )  const throw ()
 

Referenced by DepPath::Extend(), BindingVC::FingerPrint(), ListVC::FingerPrint(), and main().

Word FP::Tag::Word0  )  const throw () [inline]
 

Definition at line 251 of file FP.H.

References w.

Referenced by Replicate().

Word FP::Tag::Word1  )  const throw () [inline]
 

Definition at line 252 of file FP.H.

References w.

Referenced by Replicate().

Word* FP::Tag::Words  )  throw () [inline]
 

Definition at line 250 of file FP.H.

References w.

Referenced by AcquireMastership(), cinFPTag(), coutFPTag(), VDirChangeable::efptag(), VDirChangeable::fptag(), VDirChangeable::getBase(), and GetFPTag().

void FP::Tag::Write std::ostream &  ofs  )  const throw (FS::Failure) [inline]
 

Definition at line 192 of file FP.H.

References FP::ByteCnt, ToBytes(), and FS::Write().

Referenced by Combine::XorFPTag::Write(), and SPKFile::Write().


Member Data Documentation

Word FP::Tag::w[WordCnt] [protected]
 

Definition at line 257 of file FP.H.

Referenced by FP::Tag::Hash(), Word0(), Word1(), and Words().


The documentation for this class was generated from the following file:
Generated on Mon May 8 00:49:18 2006 for Vesta by  doxygen 1.4.2