|
Go to the documentation of this file. 1 #ifndef NPSTAT_ARCHIVEDNTUPLE_HH_
2 #define NPSTAT_ARCHIVEDNTUPLE_HH_
15 #include "npstat/stat/NtupleBuffer.hh"
16 #include "npstat/stat/NtupleRecordTypesFwd.hh"
18 #include "geners/AbsArchive.hh"
22 class NtupleReference;
72 const char* name, const char* category,
73 unsigned long rowsPerBuffer,
74 bool writeColumnWise= false);
80 inline gs::AbsArchive& archive() const { return ar_;}
81 inline const std::string& name() const { return name_;}
82 inline const std::string& category() const { return category_;}
83 inline unsigned long rowsPerBuffer() const
84 { return fillBuffer_.maxrows();}
85 inline bool writesByColumn() const
86 { return fillBuffer_.writeByColumn();}
87 inline bool isReadable() const { return readable_;}
88 inline bool isWritable() const { return writable_;}
102 void fill( const T* values, unsigned long lenValues);
110 void fill( const T& v0, const T& v1);
111 void fill( const T& v0, const T& v1, const T& v2);
112 void fill( const T& v0, const T& v1, const T& v2, const T& v3);
113 void fill( const T& v0, const T& v1, const T& v2, const T& v3,
115 void fill( const T& v0, const T& v1, const T& v2, const T& v3,
116 const T& v4, const T& v5);
117 void fill( const T& v0, const T& v1, const T& v2, const T& v3,
118 const T& v4, const T& v5, const T& v6);
119 void fill( const T& v0, const T& v1, const T& v2, const T& v3,
120 const T& v4, const T& v5, const T& v6, const T& v7);
121 void fill( const T& v0, const T& v1, const T& v2, const T& v3,
122 const T& v4, const T& v5, const T& v6, const T& v7,
124 void fill( const T& v0, const T& v1, const T& v2, const T& v3,
125 const T& v4, const T& v5, const T& v6, const T& v7,
126 const T& v8, const T& v9);
133 inline unsigned long nRows() const { return fillBuffer_.nRows();}
137 const unsigned long column) const;
140 inline T at( const unsigned long row,
141 const unsigned long column) const;
148 T* buffer, unsigned long lenBuffer) const;
155 T* buffer, unsigned long lenBuffer) const;
166 virtual gs::ClassId classId() const { return gs::ClassId(* this);}
169 static const char* classname();
170 static inline unsigned version() { return 1;}
192 unsigned long long headId);
194 static unsigned long nextObjectNumber();
196 bool loadRowData( unsigned long rowNumber) const;
197 bool loadColumnSection( unsigned long firstRow, unsigned long col,
198 T* buf, unsigned long lenBuf) const;
200 void saveFillBuffer();
205 std::string category_;
209 gs::ClassId bufferClass_;
211 std::vector<unsigned long long> idlist_;
212 std::vector<long long> columnOffsets_;
213 unsigned long long headerSaved_;
214 unsigned long ncols_;
215 const unsigned long objectNumber_;
221 #include "npstat/stat/ArchivedNtuple.icc"
Interface definition for homogeneous ntuples (point clouds)
Definition: AbsNtuple.hh:39
const std::vector< std::string > & columnNames() const Definition: AbsNtuple.hh:77
const std::string & title() const Definition: AbsNtuple.hh:62
Definition: ArchivedNtuple.hh:32
void columnContents(const Column &c, T *buffer, unsigned long lenBuffer) const
virtual void clear() Definition: ArchivedNtuple.hh:161
ArchivedNtuple(const std::vector< std::string > &columnNames, const char *title, gs::AbsArchive &archive, const char *name, const char *category, unsigned long rowsPerBuffer, bool writeColumnWise=false)
virtual gs::ClassId classId() const Definition: ArchivedNtuple.hh:166
virtual bool isEqual(const AbsNtuple< T > &r) const
T operator()(const unsigned long row, const unsigned long column) const
unsigned long nRows() const Definition: ArchivedNtuple.hh:133
void rowContents(const unsigned long row, T *buffer, unsigned long lenBuffer) const
T at(const unsigned long row, const unsigned long column) const
void fill(const T *values, unsigned long lenValues)
unsigned long objectNumber() const Definition: ArchivedNtuple.hh:95
gs::AbsArchive & archive() const Definition: ArchivedNtuple.hh:80
Definition: NtupleBuffer.hh:25
Definition: NtupleReference.hh:28
Definition: NtupleRecordTypes.hh:88
Definition: NtupleRecordTypes.hh:108
Definition: NtupleRecordTypes.hh:136
Definition: AbsArrayProjector.hh:14
|