From ec05778d5718a7912e506764d443a78d6a6179e3 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Mon, 5 Nov 2012 22:41:51 +0000 Subject: Converted tabs to spaces with tabconv. --- src/stable/random.h | 88 ++++++++++++++++++++++++++--------------------------- 1 file changed, 44 insertions(+), 44 deletions(-) (limited to 'src/stable/random.h') diff --git a/src/stable/random.h b/src/stable/random.h index 43b8917..7989188 100644 --- a/src/stable/random.h +++ b/src/stable/random.h @@ -12,50 +12,50 @@ namespace Bu { - class RandomBase; - class Random : public Bu::Singleton - { - friend class Bu::Singleton; - private: - Random(); - virtual ~Random(); - - public: - template - static void setGenerator() - { - delete getInstance().pGen; - getInstance().pGen = new cl(); - } - - template - static void setGenerator( t1 p1 ) - { - delete getInstance().pGen; - getInstance().pGen = new cl( p1 ); - } - - template - static void setGenerator( t1 p1, t2 p2 ) - { - delete getInstance().pGen; - getInstance().pGen = new cl( p1, p2 ); - } - - RandomBase &getGenerator() { return *pGen; } - - static void seed( int32_t iSeed ); - static int32_t rand(); - static int32_t rand( int32_t iMax ); - static int32_t rand( int32_t iMin, int32_t iMax ); - static double randNorm(); - - private: - void checkInit(); - - private: - Bu::RandomBase *pGen; - }; + class RandomBase; + class Random : public Bu::Singleton + { + friend class Bu::Singleton; + private: + Random(); + virtual ~Random(); + + public: + template + static void setGenerator() + { + delete getInstance().pGen; + getInstance().pGen = new cl(); + } + + template + static void setGenerator( t1 p1 ) + { + delete getInstance().pGen; + getInstance().pGen = new cl( p1 ); + } + + template + static void setGenerator( t1 p1, t2 p2 ) + { + delete getInstance().pGen; + getInstance().pGen = new cl( p1, p2 ); + } + + RandomBase &getGenerator() { return *pGen; } + + static void seed( int32_t iSeed ); + static int32_t rand(); + static int32_t rand( int32_t iMax ); + static int32_t rand( int32_t iMin, int32_t iMax ); + static double randNorm(); + + private: + void checkInit(); + + private: + Bu::RandomBase *pGen; + }; }; #endif -- cgit v1.2.3