Changeset 3392 in Sophya for trunk/SophyaLib/HiStats/basedtable.h
- Timestamp:
- Nov 22, 2007, 7:25:40 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/HiStats/basedtable.h
r2962 r3392 63 63 { row.Print(s); return(s); } 64 64 65 // Forward class declaration for Thread-safe operations 66 class ThSafeOp; 67 65 68 //! Interface definition for classes handling data in a table. 66 69 class BaseDataTable : public AnyDataObj , public NTupleInterface { … … 81 84 BaseDataTable(sa_size_t segsz=512); 82 85 virtual ~BaseDataTable(); 86 87 // Activate/deactivate thread-safe AddRow()/GetRow() operation 88 virtual void SetThreadSafe(bool fg=true); 89 //! Return true if AddRow()/GetRow() operations are thread-safe 90 inline bool IsThreadSafe() const { return ((mThS)?true:false); } 83 91 84 92 //! Adds a column holding integer, named \b cnom … … 193 201 virtual DataTableRow& GetRow(sa_size_t n, DataTableRow& row) const ; 194 202 //! Return the information stored in line (row) \b n of the table 195 virtual MuTyV * GetRow(sa_size_t n ) const ;203 virtual MuTyV * GetRow(sa_size_t n, MuTyV* mtvp=NULL) const ; 196 204 //! Return the information stored in line \b n of the table. Alias of GetLine 197 205 inline MuTyV * GetLine(sa_size_t n) const … … 316 324 std::vector< SegDBInterface<string> * > mSColsP; 317 325 std::vector< sa_size_t > mSColIdx; 326 327 ThSafeOp* mThS; // != NULL -> Thread safe operations 318 328 319 329 };
Note:
See TracChangeset
for help on using the changeset viewer.