Changeset 535
- Timestamp:
- 08/16/09 18:13:28 (15 years ago)
- Location:
- library/bdm
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
library/bdm/base/user_info.h
r534 r535 551 551 } 552 552 553 #define CONCATENATE0( name, line ) name##line554 #define CONCATENATE( name, line ) CONCATENATE0( name, line )555 556 553 /*! 557 554 \def UIREGISTER(class_name) … … 564 561 */ 565 562 #ifndef BDMLIB 566 #define UIREGISTER(class_name) static bdm::ParticularUI<class_name> CONCATENATE(registrator, __LINE__)(#class_name)563 #define UIREGISTER(class_name) static bdm::ParticularUI<class_name> UI##class_name(#class_name) 567 564 #else 568 565 #define UIREGISTER(class_name) 569 566 #endif 570 567 568 //! Instrumental macro for UIREGISTER2 569 #define QUOTEME(x) #x 570 571 /*! 572 \def UIREGISTER2(class_name,template_name) 573 \brief Variant of UIREGISTER for templated classes 574 575 Technical meann of registering UIREGISTER(class_name<template_name>). 576 577 \ref ui_page 578 */ 579 #ifndef BDMLIB 580 #define UIREGISTER2(class_name, temp_name) static bdm::ParticularUI<class_name<temp_name> > UI##class_name##_##temp_name( QUOTEME(class_name<temp_name>) ) 581 #else 582 #define UIREGISTER2(class_name,temp_name) 583 #endif 584 571 585 #endif // #ifndef USER_INFO_H -
library/bdm/stat/exp_family.h
r529 r535 164 164 165 165 }; 166 UIREGISTER (enorm<chmat>);166 UIREGISTER2 (enorm, chmat); 167 167 SHAREDPTR2 ( enorm, chmat ); 168 UIREGISTER (enorm<ldmat>);168 UIREGISTER2 (enorm, ldmat); 169 169 SHAREDPTR2 ( enorm, ldmat ); 170 UIREGISTER (enorm<fsqmat>);170 UIREGISTER2 (enorm, fsqmat); 171 171 SHAREDPTR2 ( enorm, fsqmat ); 172 172 … … 571 571 }; 572 572 }; 573 UIREGISTER (mlnorm<ldmat>);573 UIREGISTER2 (mlnorm,ldmat); 574 574 SHAREDPTR2 ( mlnorm, ldmat ); 575 UIREGISTER (mlnorm<fsqmat>);575 UIREGISTER2 (mlnorm,fsqmat); 576 576 SHAREDPTR2 ( mlnorm, fsqmat ); 577 UIREGISTER (mlnorm<chmat>);577 UIREGISTER2 (mlnorm, chmat); 578 578 SHAREDPTR2 ( mlnorm, chmat ); 579 579 … … 635 635 }; 636 636 637 UIREGISTER (mgnorm<chmat>);637 UIREGISTER2 (mgnorm, chmat); 638 638 SHAREDPTR2 ( mgnorm, chmat ); 639 639