Changeset 2901


Ignore:
Timestamp:
Dec 13, 2012, 2:30:24 AM (9 years ago)
Author:
Peter
Message:

make random generators to model adaptable Generators

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/random/random.h

    r2889 r2901  
    254254  {
    255255  public:
     256    /**
     257       type returned by operator()
     258
     259       \since New in yat 0.10
     260     */
     261    typedef unsigned long int result_type;
     262
    256263    ///
    257264    /// @brief Constructor
     
    289296    /// @return A random number.
    290297    ///
    291     virtual unsigned long operator()(void) const = 0;
     298    virtual result_type operator()(void) const = 0;
    292299
    293300  protected:
     
    485492  {
    486493  public:
     494    /**
     495       type returned by operator()
     496
     497       \since New in yat 0.10
     498     */
     499    typedef double result_type;
    487500
    488501    ///
     
    521534    /// @return A random number
    522535    ///
    523     virtual double operator()(void) const = 0;
     536    virtual result_type operator()(void) const = 0;
    524537
    525538  protected:
Note: See TracChangeset for help on using the changeset viewer.