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

PerRecordTags Class Reference

#include <PerRecordTags.h>

List of all members.

Public Member Functions

 PerRecordTags ()
 PerRecordTags (std::string streamname, std::string treename, std::string filename, Int_t treeindexlo, Int_t treeindexhi, const VldContext &vldcontext)
virtual ~PerRecordTags ()
void SetStreamName (std::string streamname)
void SetTreeName (std::string treename)
void SetFileName (std::string filename)
void SetIndexLo (Int_t indexlo)
void SetIndexHi (Int_t indexhi)
void SetVldContext (const VldContext &vld)
bool IsBegin () const
bool IsComplete () const
bool IsEnd () const
bool IsValid () const
std::string GetStreamName () const
std::string GetTreeName () const
std::string GetFileName () const
Int_t GetIndexLo () const
Int_t GetIndexHi () const
const VldContextGetVldContext () const
std::ostream & Print (std::ostream &s) const

Private Attributes

std::string fStreamName
std::string fTreeName
std::string fFileName
Int_t fIndexLo
Int_t fIndexHi
VldContext fVldContext

Friends

bool operator< (const PerRecordTags &lhs, const PerRecordTags &rhs)
bool operator== (const PerRecordTags &lhs, const PerRecordTags &rhs)
bool operator!= (const PerRecordTags &lhs, const PerRecordTags &rhs)
bool operator<= (const PerRecordTags &lhs, const PerRecordTags &rhs)
bool operator> (const PerRecordTags &lhs, const PerRecordTags &rhs)
bool operator>= (const PerRecordTags &lhs, const PerRecordTags &rhs)


Constructor & Destructor Documentation

PerRecordTags::PerRecordTags  ) 
 

Definition at line 30 of file PerRecordTags.cxx.

00030                             :
00031   fStreamName(""),fTreeName(""),fFileName(""),
00032   fIndexLo(-2),fIndexHi(-2),fVldContext() {
00033   //
00034   //  Purpose:  Normal constructor.
00035   //
00036   //  Arguments: self-describing. IndexLo&Hi default is -2 because -1 may
00037   //             be used for beginning-of-stream marker
00038   //
00039   //  Return:    n/a.
00040   //
00041   //  Contact:   S. Kasahara
00042   // 
00043 
00044 }

PerRecordTags::PerRecordTags std::string  streamname,
std::string  treename,
std::string  filename,
Int_t  treeindexlo,
Int_t  treeindexhi,
const VldContext vldcontext
 

Definition at line 46 of file PerRecordTags.cxx.

00048                                                    :
00049   fStreamName(streamname),fTreeName(treename),fFileName(filename),
00050   fIndexLo(indexlo),fIndexHi(indexhi),fVldContext(vld) {
00051   //
00052   //  Purpose:  Normal constructor.
00053   //
00054   //  Arguments: self-describing
00055   //
00056   //  Return:    n/a.
00057   //
00058   //  Contact:   S. Kasahara
00059   // 
00060 
00061 }

PerRecordTags::~PerRecordTags  )  [virtual]
 

Definition at line 63 of file PerRecordTags.cxx.

00063                               {
00064   //
00065   //  Purpose:  PerRecordTags destructor.  
00066   //
00067   //  Contact:   S. Kasahara
00068   // 
00069 
00070 }


Member Function Documentation

std::string PerRecordTags::GetFileName  )  const [inline]
 

Definition at line 51 of file PerRecordTags.h.

Referenced by PerInputStreamManager::LoadRecordWithTag().

00051 { return fFileName; }

Int_t PerRecordTags::GetIndexHi  )  const [inline]
 

Definition at line 53 of file PerRecordTags.h.

Referenced by PerInputStream::AdvanceTagsList(), PerInputStreamManager::IsSelectedSet(), PerInputStreamManager::LoadRecordWithTag(), PerInputStream::RewindTagsList(), and PerValidate::StreamTagsSeq().

00053 { return fIndexHi; }

Int_t PerRecordTags::GetIndexLo  )  const [inline]
 

Definition at line 52 of file PerRecordTags.h.

Referenced by PerInputStream::AdvanceTagsList(), PerInputStreamManager::IsSelectedSet(), PerInputStreamManager::LoadRecordWithTag(), PerInputStream::RewindTagsList(), and PerValidate::StreamTagsSeq().

00052 { return fIndexLo; }

std::string PerRecordTags::GetStreamName  )  const [inline]
 

Definition at line 49 of file PerRecordTags.h.

00049 { return fStreamName; }

std::string PerRecordTags::GetTreeName  )  const [inline]
 

Definition at line 50 of file PerRecordTags.h.

Referenced by PerInputStreamManager::LoadRecordWithTag().

00050 { return fTreeName; }

const VldContext& PerRecordTags::GetVldContext  )  const [inline]
 

Definition at line 54 of file PerRecordTags.h.

Referenced by PerInputStream::AdvanceLowerBoundTags(), PerInputStreamManager::AdvanceRecordTags(), PerInputStream::AdvanceTagsList(), PerInputStream::AdvanceWindowTags(), PerInputStreamManager::GetCurrentKeyVld(), PerInputStreamManager::GoToFile(), PerInputStreamManager::IsSelectedSet(), PerInputStreamManager::LoadRecord(), PerInputStreamManager::RewindRecordTags(), and PerInputStream::RewindTagsList().

00054 { return fVldContext; }

bool PerRecordTags::IsBegin  )  const [inline]
 

Definition at line 45 of file PerRecordTags.h.

References Per::IsBegin().

Referenced by PerInputStream::AdvanceLowerBoundTags(), PerInputStreamManager::AdvanceRecordTags(), PerInputStream::AdvanceWindowTags(), PerInputStreamManager::LoadRecord(), PerInputStreamManager::RewindRecordTags(), PerInputStream::RewindTagsList(), and PerValidate::StreamTagsSeq().

00045 { return Per::IsBegin(fVldContext); }

bool PerRecordTags::IsComplete  )  const [inline]
 

Definition at line 46 of file PerRecordTags.h.

Referenced by PerInputStream::AdvanceTagsList(), PerInputStream::NextTags(), and PerInputStream::RewindTagsList().

00046 {return(fIndexHi>=-1 && fIndexLo>=-1) ? true : false; }

bool PerRecordTags::IsEnd  )  const [inline]
 

Definition at line 47 of file PerRecordTags.h.

References Per::IsEnd().

Referenced by PerInputStream::AdvanceLowerBoundTags(), PerInputStreamManager::AdvanceRecordTags(), PerInputStream::AdvanceTags(), PerInputStream::AdvanceTagsList(), PerInputStream::AdvanceWindowTags(), PerInputStreamManager::LoadRecord(), PerInputStreamManager::RewindRecordTags(), and PerValidate::StreamTagsSeq().

00047 { return Per::IsEnd(fVldContext); }

bool PerRecordTags::IsValid  )  const [inline]
 

Definition at line 48 of file PerRecordTags.h.

References VldContext::IsValid().

00048 { return fVldContext.IsValid(); }

std::ostream & PerRecordTags::Print std::ostream &  s  )  const
 

Definition at line 72 of file PerRecordTags.cxx.

References fFileName, fIndexHi, fIndexLo, fStreamName, fTreeName, and fVldContext.

00072                                                      {
00073   //
00074   //  Purpose:  Print status of tags on ostream.
00075   //
00076   //  Arguments: ms ostream to display on.
00077   //
00078   //  Return:  ostream reference.
00079   //
00080   //  Contact:   S. Kasahara
00081   //
00082 
00083   ms << " PerRecordTags::Print" << endl;
00084   ms << "   StreamName " << fStreamName << ", TreeName " << fTreeName << endl;
00085   ms << "   FileName " << fFileName << endl;
00086   ms << "   Tree Indices " << fIndexLo << " to " << fIndexHi << endl;
00087   ms << "   VldContext " << fVldContext << endl;
00088 
00089   return ms;
00090 
00091 }

void PerRecordTags::SetFileName std::string  filename  )  [inline]
 

Definition at line 39 of file PerRecordTags.h.

00039 { fFileName = filename; }

void PerRecordTags::SetIndexHi Int_t  indexhi  )  [inline]
 

Definition at line 41 of file PerRecordTags.h.

Referenced by PerInputStream::AdvanceTagsList().

00041 { fIndexHi = indexhi; }

void PerRecordTags::SetIndexLo Int_t  indexlo  )  [inline]
 

Definition at line 40 of file PerRecordTags.h.

Referenced by PerInputStream::RewindTagsList().

00040 { fIndexLo = indexlo; } 

void PerRecordTags::SetStreamName std::string  streamname  )  [inline]
 

Definition at line 37 of file PerRecordTags.h.

00037 { fStreamName = streamname; }

void PerRecordTags::SetTreeName std::string  treename  )  [inline]
 

Definition at line 38 of file PerRecordTags.h.

00038 { fTreeName = treename; }

void PerRecordTags::SetVldContext const VldContext vld  )  [inline]
 

Definition at line 42 of file PerRecordTags.h.

Referenced by PerInputStream::PerInputStream().

00042 { fVldContext = vld; } 


Friends And Related Function Documentation

bool operator!= const PerRecordTags lhs,
const PerRecordTags rhs
[friend]
 

Definition at line 87 of file PerRecordTags.h.

00087                                                                            {
00088   return !( lhs == rhs );
00089 }

bool operator< const PerRecordTags lhs,
const PerRecordTags rhs
[friend]
 

Definition at line 79 of file PerRecordTags.h.

00079                                                                            {
00080   return ( lhs.fVldContext < rhs.fVldContext );
00081 }

bool operator<= const PerRecordTags lhs,
const PerRecordTags rhs
[friend]
 

Definition at line 91 of file PerRecordTags.h.

00091                                                                            {
00092   return ( lhs < rhs )  ||  ( lhs == rhs );
00093 }

bool operator== const PerRecordTags lhs,
const PerRecordTags rhs
[friend]
 

Definition at line 83 of file PerRecordTags.h.

00083                                                                            {
00084   return ( lhs.fVldContext == rhs.fVldContext );
00085 }

bool operator> const PerRecordTags lhs,
const PerRecordTags rhs
[friend]
 

Definition at line 95 of file PerRecordTags.h.

00095                                                                            {
00096   return !( lhs < rhs ) && !( lhs == rhs ); 
00097 }

bool operator>= const PerRecordTags lhs,
const PerRecordTags rhs
[friend]
 

Definition at line 99 of file PerRecordTags.h.

00099                                                                            {
00100   return !( lhs < rhs );
00101 }


Member Data Documentation

std::string PerRecordTags::fFileName [private]
 

Definition at line 70 of file PerRecordTags.h.

Referenced by Print().

Int_t PerRecordTags::fIndexHi [private]
 

Definition at line 72 of file PerRecordTags.h.

Referenced by Print().

Int_t PerRecordTags::fIndexLo [private]
 

Definition at line 71 of file PerRecordTags.h.

Referenced by Print().

std::string PerRecordTags::fStreamName [private]
 

Definition at line 68 of file PerRecordTags.h.

Referenced by Print().

std::string PerRecordTags::fTreeName [private]
 

Definition at line 69 of file PerRecordTags.h.

Referenced by Print().

VldContext PerRecordTags::fVldContext [private]
 

Definition at line 73 of file PerRecordTags.h.

Referenced by operator<(), operator==(), and Print().


The documentation for this class was generated from the following files:
Generated on Mon Feb 15 11:10:01 2010 for loon by  doxygen 1.3.9.1