Changeset 665 for library/bdm/base/bdmbase.h
- Timestamp:
- 10/19/09 22:24:45 (15 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
library/bdm/base/bdmbase.h
r660 r665 149 149 friend std::ostream &operator<< ( std::ostream &os, const RV &rv ); 150 150 151 string to_string() {ostringstream o; o <<this; return o.str();}151 string to_string() const {ostringstream o; o << *this; return o.str();} 152 152 153 153 //! total size of a random variable … … 303 303 //! Length of the output vector 304 304 int dimy; 305 //! Length of the input vector 306 int dimc; 305 307 public: 306 308 //!default constructor … … 317 319 int dimension() const { 318 320 return dimy; 321 } 322 //! access function 323 int dimensionc() const { 324 return dimc; 319 325 } 320 326 }; … … 671 677 return downsize; 672 678 } 679 //! for future use 680 virtual ~datalink(){} 673 681 }; 674 682 … … 1219 1227 } 1220 1228 string opt; 1221 if ( !UI::get ( opt, set, "options", UI::optional ) ) {1229 if ( UI::get ( opt, set, "options", UI::optional ) ) { 1222 1230 set_options ( opt ); 1223 1231 }