Changeset 390
- Timestamp:
- 06/19/09 12:41:37 (16 years ago)
- Location:
- library
- Files:
-
- 5 modified
Legend:
- Unmodified
- Added
- Removed
-
library/bdm/base/bdmbase.h
r388 r390 84 84 */ 85 85 86 class RV : public bdmroot86 class RV : public root 87 87 { 88 88 protected: … … 207 207 //! Class representing function \f$f(x)\f$ of variable \f$x\f$ represented by \c rv 208 208 209 class fnc : public bdmroot209 class fnc : public root 210 210 { 211 211 protected: … … 231 231 //! Probability density function with numerical statistics, e.g. posterior density. 232 232 233 class epdf : public bdmroot233 class epdf : public root 234 234 { 235 235 protected: … … 319 319 //TODO Samplecond can be generalized 320 320 321 class mpdf : public bdmroot321 class mpdf : public root 322 322 { 323 323 protected: … … 522 522 This class abstracts logging of results from implementation. This class replaces direct logging of results (e.g. to files or to global variables) by calling methods of a logger. Specializations of this abstract class for specific storage method are designed. 523 523 */ 524 class logger : public bdmroot524 class logger : public root 525 525 { 526 526 protected: … … 602 602 */ 603 603 604 class DS : public bdmroot604 class DS : public root 605 605 { 606 606 protected: … … 674 674 */ 675 675 676 class BM : public bdmroot676 class BM : public root 677 677 { 678 678 protected: -
library/bdm/base/user_info.cpp
r384 r390 222 222 if ( link.result.isList() ) 223 223 { 224 if ( link.result.getLength() != 3 ) 225 ui_error( "the setting supposed to represent a matrix element has wrong syntax", link.result ); 226 227 Setting &rows_setting = link.result[0]; 228 Setting &cols_setting = link.result[1]; 229 Setting &elements = link.result[2]; 224 int data_offset; 225 226 if ( link.result.getLength() == 3 ) 227 data_offset = 0; 228 else if ( link.result.getLength() == 4 ) 229 { 230 ASSERT_UITYPE(link.result[0],TypeString); 231 if( link.result[0] != "matrix" ) 232 ui_error( "the setting supposed to represent a matrix element has wrong syntax", link.result ); 233 234 data_offset = 1; 235 } 236 else 237 ui_error( "the setting supposed to represent a matrix element has wrong syntax", link.result ); 238 239 Setting &rows_setting = link.result[0 + data_offset]; 240 Setting &cols_setting = link.result[1 + data_offset]; 241 Setting &elements = link.result[2 + data_offset]; 230 242 231 243 ASSERT_UITYPE(cols_setting,TypeInt); -
library/bdm/base/user_info.h
r388 r390 113 113 114 114 //! internal method assembling a typeless instance from components obtained by the 'AssemblyComponentsFromSetting()' method 115 virtual bdmroot* new_instance() const = 0;115 virtual root* new_instance() const = 0; 116 116 117 117 //! This methods tries to save an instance of type T (or some of its descendant types) … … 150 150 const UI& related_UI = Mapped_UI::retrieve_ui( class_name ); 151 151 152 bdmroot* typeless_instance = related_UI.new_instance();152 root* typeless_instance = related_UI.new_instance(); 153 153 154 154 instance = NULL; … … 339 339 static const Particular_UI<T>& ui; 340 340 341 bdmroot* new_instance() const341 root* new_instance() const 342 342 { 343 343 return new T(); -
library/bdm/bdmroot.h
r387 r390 11 11 */ 12 12 13 #ifndef BDMROOT_H14 #define BDMROOT_H13 #ifndef root_H 14 #define root_H 15 15 16 16 #include <string> … … 26 26 27 27 //! Root class of BDM objects 28 class bdmroot {28 class root { 29 29 public: 30 30 //! make sure this is a virtual object 31 virtual ~ bdmroot()31 virtual ~root() 32 32 { 33 33 } … … 56 56 57 57 }; //namespace 58 #endif // BDMROOT_H58 #endif // root_H -
library/tests/test_user_info.cpp
r386 r390 7 7 using namespace bdm; 8 8 9 class Passenger : public bdmroot9 class Passenger : public root 10 10 { 11 11 public: … … 74 74 UIREGISTER(Robot); 75 75 76 class Transport : public bdmroot76 class Transport : public root 77 77 { 78 78 public: