Public Member Functions | Private Attributes | List of all members
art::RootSizeOnDisk::Record Class Reference

#include <RootSizeOnDisk.h>

Public Member Functions

 Record (std::string const &aname, std::string const &aclassName, Long64_t asize=0, double afraction=0.)
 
bool operator< (Record const &rhs) const
 
bool isTree () const
 
bool isTKey () const
 
std::string const & name () const
 
std::string const & className () const
 
Long64_t size () const
 
double fraction () const
 
std::vector< Record > const & contents () const
 
void size (Long64_t const s)
 
void fraction (double const f)
 
void contents (std::vector< Record > &c)
 

Private Attributes

std::string name_
 
std::string className_
 
Long64_t size_
 
double fraction_
 
std::vector< Recordcontents_
 

Detailed Description

Definition at line 36 of file RootSizeOnDisk.h.

Constructor & Destructor Documentation

art::RootSizeOnDisk::Record::Record ( std::string const &  aname,
std::string const &  aclassName,
Long64_t  asize = 0,
double  afraction = 0. 
)

Definition at line 47 of file RootSizeOnDisk.cc.

51  : name_(aname), className_(aclassName), size_(asize), fraction_(afraction)
52 {}

Member Function Documentation

std::string const& art::RootSizeOnDisk::Record::className ( ) const
inline

Definition at line 65 of file RootSizeOnDisk.h.

66  {
67  return className_;
68  }
std::vector<Record> const& art::RootSizeOnDisk::Record::contents ( ) const
inline

Definition at line 80 of file RootSizeOnDisk.h.

81  {
82  return contents_;
83  }
std::vector< Record > contents_
void art::RootSizeOnDisk::Record::contents ( std::vector< Record > &  c)
inline

Definition at line 97 of file RootSizeOnDisk.h.

98  {
99  contents_.swap(c);
100  }
std::vector< Record > contents_
double art::RootSizeOnDisk::Record::fraction ( ) const
inline

Definition at line 75 of file RootSizeOnDisk.h.

76  {
77  return fraction_;
78  }
void art::RootSizeOnDisk::Record::fraction ( double const  f)
inline

Definition at line 92 of file RootSizeOnDisk.h.

bool art::RootSizeOnDisk::Record::isTKey ( ) const
inline

Definition at line 54 of file RootSizeOnDisk.h.

55  {
56  return className_ == "TKey";
57  }
bool art::RootSizeOnDisk::Record::isTree ( ) const
inline

Definition at line 49 of file RootSizeOnDisk.h.

50  {
51  return className_ == "TTree";
52  }
std::string const& art::RootSizeOnDisk::Record::name ( ) const
inline

Definition at line 60 of file RootSizeOnDisk.h.

61  {
62  return name_;
63  }
bool art::RootSizeOnDisk::Record::operator< ( Record const &  rhs) const
inline

Definition at line 44 of file RootSizeOnDisk.h.

45  {
46  return name() < rhs.name();
47  }
std::string const & name() const
Long64_t art::RootSizeOnDisk::Record::size ( ) const
inline

Definition at line 70 of file RootSizeOnDisk.h.

71  {
72  return size_;
73  }
void art::RootSizeOnDisk::Record::size ( Long64_t const  s)
inline

Definition at line 87 of file RootSizeOnDisk.h.

88  {
89  size_ = s;
90  }
static const double s
Definition: Units.h:99

Member Data Documentation

std::string art::RootSizeOnDisk::Record::className_
private

Definition at line 104 of file RootSizeOnDisk.h.

std::vector<Record> art::RootSizeOnDisk::Record::contents_
private

Definition at line 108 of file RootSizeOnDisk.h.

double art::RootSizeOnDisk::Record::fraction_
private

Definition at line 106 of file RootSizeOnDisk.h.

std::string art::RootSizeOnDisk::Record::name_
private

Definition at line 103 of file RootSizeOnDisk.h.

Long64_t art::RootSizeOnDisk::Record::size_
private

Definition at line 105 of file RootSizeOnDisk.h.


The documentation for this class was generated from the following files: