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

LongId Struct Reference

#include <VestaSource.H>

List of all members.

Public Types

enum  lockKindTag {
  readLock, writeLock, noLock, checkLock,
  readLockV, writeLockV
}

Public Member Functions

int length () const throw ()
void append (unsigned int index) throw ()
 LongId ()
LongId append (unsigned int index) const throw ()
LongId getParent (unsigned int *index=NULL) const throw ()
bool isAncestorOf (const LongId &child) const throw ()
bool operator== (const LongId &child) throw ()
int length () const throw ()
VestaSourcelookup (lockKindTag lockKind=noLock, ReadersWritersLock **lock=NULL) throw (SRPC::failure)
bool valid () throw (SRPC::failure)

Static Public Member Functions

static LongId fromShortId (ShortId sid, const FP::Tag *fptag=NULL) throw ()

Public Attributes

struct {
   unsigned char   byte [32]
value
Byte32 value


Member Enumeration Documentation

enum LongId::lockKindTag
 

Enumeration values:
readLock 
writeLock 
noLock 
checkLock 
readLockV 
writeLockV 

Definition at line 107 of file VestaSource.H.


Constructor & Destructor Documentation

LongId::LongId  )  [inline]
 

Definition at line 91 of file TestBufStream.C.

References append(), and length().


Member Function Documentation

LongId LongId::append unsigned int  index  )  const throw ()
 

Definition at line 76 of file VestaSourceCommon.C.

References NullShortId, and value.

void LongId::append unsigned int  index  )  throw () [inline]
 

Definition at line 74 of file TestBufStream.C.

References value.

Referenced by VDirVolatileRoot::createVolatileDirectory(), fromShortId(), VDirChangeable::insertFile(), VDirChangeable::insertMutableFile(), LongId(), VDirEvaluator::lookup(), VDirEvaluator::lookupIndex(), test(), test_thread(), and VDCLookupResult().

LongId LongId::fromShortId ShortId  sid,
const FP::Tag fptag = NULL
throw () [static]
 

Definition at line 57 of file VestaSourceCommon.C.

References append(), FP::ByteCnt, SourceOrDerived::dirShortId(), and value.

Referenced by VDirChangeable::getBase(), VDirChangeable::insertFile(), VDirChangeable::insertMutableFile(), VDirEvaluator::lookup(), VDirEvaluator::lookupIndex(), test_thread(), PickleC::UnpickleVal(), and VDCLookupResult().

LongId LongId::getParent unsigned int *  index = NULL  )  const throw ()
 

Definition at line 132 of file VestaSourceCommon.C.

References value.

Referenced by any_fattr(), check(), do_hardlink(), do_lookup(), do_readdir(), do_readlink(), VestaSource::getParent(), VDirChangeable::list(), VDirChangeable::lookup(), VDirSurrogate::setMaster(), volatileDirName(), ReposUI::vsToFilename(), and vsToFilename().

bool LongId::isAncestorOf const LongId child  )  const throw ()
 

Definition at line 171 of file VestaSourceCommon.C.

Referenced by AcquireMastership(), Proc_Totals::add_call(), any_fattr(), apply_sattr(), VestaSource::cedeMastership(), check(), do_hardlink(), do_readlink(), do_rename(), do_setattr(), WriteAttribStep::execute(), fh_fd(), file_fattr(), VDirChangeable::insertFile(), VDirChangeable::list(), VDirChangeable::lookupIndex(), MutableSidrefCheck(), VDirChangeable::renameTo(), ReplicateMissing(), upToVersion(), upToWorkingDir(), VDCLookupResult(), and RecursiveStats::visit().

int LongId::length  )  const throw ()
 

int LongId::length  )  const throw () [inline]
 

Definition at line 64 of file TestBufStream.C.

References value.

Referenced by check(), coutLongId(), LongId(), operator<<(), and RunTool().

VestaSource * LongId::lookup lockKindTag  lockKind = noLock,
ReadersWritersLock **  lock = NULL
throw (SRPC::failure)
 

Definition at line 63 of file VDirSurrogateOnly.C.

References VDirSurrogate::defaultHost(), VDirSurrogate::defaultPort(), VDirSurrogate::LongIdLookup(), and noLock.

Referenced by do_cow(), do_lookup(), WriteAttribStep::execute(), DeclStep::execute(), MakeFilesImmutable(), Replicate(), SetIndexMaster(), PickleC::UnpickleExpr(), VSRead(), VSSetExecutable(), VSSetSize(), VSSetTimestamp(), VSStat(), and VSWrite().

bool LongId::operator== const LongId child  )  throw () [inline]
 

Definition at line 71 of file VestaSource.H.

bool LongId::valid  )  throw (SRPC::failure)
 

Definition at line 73 of file VDirSurrogateOnly.C.

References VDirSurrogate::defaultHost(), VDirSurrogate::defaultPort(), and VDirSurrogate::LongIdValid().


Member Data Documentation

unsigned char LongId::byte[32]
 

Definition at line 62 of file TestBufStream.C.

Byte32 LongId::value
 

Definition at line 53 of file VestaSource.H.

struct { ... } LongId::value
 

Referenced by append(), VDirSurrogate::cedeMastership(), check(), cinLongId(), VDirSurrogate::collapseBase(), coutLongId(), DeclStep::DeclStep(), do_lookup(), fromShortId(), VDirSurrogate::getAttrib(), VDirSurrogate::getAttribHistory(), getParent(), VDirSurrogate::inAttribs(), VDirSurrogate::insertAppendableDirectory(), VDirSurrogate::insertFile(), VDirSurrogate::insertGhost(), VDirSurrogate::insertImmutableDirectory(), VDirSurrogate::insertMutableDirectory(), VDirSurrogate::insertMutableFile(), VDirSurrogate::insertStub(), length(), VDirSurrogate::list(), VDirSurrogate::listAttribs(), VDirSurrogate::lookupIndex(), VDirSurrogate::lookupPathname(), MakeFilesImmutable(), VDirSurrogate::makeFilesImmutable(), VDirSurrogate::measureDirectory(), operator<<(), PickleC::PickleLongId(), VDirSurrogate::read(), Call_Data::read(), VDirSurrogate::readWhole(), RunTool(), VDirSurrogate::setExecutable(), SetIndexMaster(), VDirSurrogate::setIndexMaster(), VDirSurrogate::setMaster(), VDirSurrogate::setSize(), VDirSurrogate::setTimestamp(), PickleC::UnpicklLongId(), VSRead(), VSSetExecutable(), VSSetSize(), VSSetTimestamp(), VSStat(), vsToFilename(), VSWrite(), VDirSurrogate::write(), and VDirSurrogate::writeAttrib().


The documentation for this struct was generated from the following files:
Generated on Mon May 8 00:49:11 2006 for Vesta by  doxygen 1.4.2