Changeset 889 for library/bdm/base/bdmbase.h
- Timestamp:
- 03/30/10 00:01:05 (14 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
library/bdm/base/bdmbase.h
r871 r889 306 306 //! Names of logged quantities, e.g. names of algorithm variants 307 307 Array<string> names; 308 //!separator of prefixes of entries309 const string separator;310 308 //! Root Setting for storing Settings 311 309 Config setting_conf; … … 316 314 logger ( const string separator0 ) : entries ( 0 ), names ( 0 ), separator ( separator0 ) {} 317 315 316 //!separator of prefixes of entries 317 //! 318 //! It is a constant string, thus it can be safely declared as public without creating any accessor method 319 const string separator; 320 321 318 322 //! returns an identifier which will be later needed for calling the \c logit() function 319 323 //! For empty RV it returns -1, this entry will be ignored by \c logit(). 320 virtual int add_vector ( const RV &rv, string prefix= "" );324 virtual int add_vector ( const RV &rv, const string &prefix, const string &name = "" ); 321 325 322 326 virtual int add_setting ( const string &prefix ); … … 339 343 //! Initialize the storage 340 344 virtual void init() {}; 341 342 //!separator of prefixes for this logger343 const string& prefix_sep() {344 return separator;345 }346 345 }; 347 346 … … 512 511 513 512 The following constructors should be supported for convenience: 514 \li constructor followed by calling \c set_parameters() 513 \li constructor followed by calling \c set_parameters() WHICH IS OBSOLETE (TODO) 515 514 \li constructor accepting random variables calling \c set_rv() 516 515 517 All internal data structures are constructed as empty. Their values (including sizes) will be set by method \c set_parameters(). This way references can be initialized in constructors. 516 All internal data structures are constructed as empty. Their values (including sizes) will be 517 set by method \c set_parameters() WHICH IS OBSOLETE (TODO). This way references can be initialized in constructors. 518 518 @{*/ 519 519 epdf() {};