Click here to Skip to main content
15,885,757 members
Articles / High Performance Computing

HPC Template Library, A Supplement to the STL

Rate me:
Please Sign up or sign in to vote.
4.88/5 (11 votes)
15 Dec 2017MIT3 min read 38.1K   1.3K   39  
The HPC Template Library is a supplement to the Standard Template Library providing threadsafe containers.
/*
**	This file is part of the Hpc Template Library (Htl or HTL).
**  It is based on a merger of QT, STL, and SigSlots along with development of new classes.
**  License information is in the HtlLicense.h file
**	This software was merged and developed by:
**	
**  Anthony Daniels
**	QT, STL, SigSlots
**
**  HTL is free software: you can redistribute it and/or modify
**  it under the terms of the GNU Lesser General Public License as published by
**  the Free Software Foundation, either version 3 of the License, or
**  (at your option) any later version.
**
**  The United States of America Department of Defense has unlimited 
**	usage, redistribution, and modification rights to HtlStar.
**
**  HTL is distributed in the hope that it will be useful,
**  but WITHOUT ANY WARRANTY; without even the implied warranty of
**  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
**  GNU Lesser General Public License for more details.
**
**  You should have received a copy of the GNU Lesser General Public License
**  along with HTL.  If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef HTL_LCGENERATOR_H
#define HTL_LCGENERATOR_H

#include "..\HtlRandNumGen.h"

namespace HTL
{

	//!HtlLCGenerator is a Linear Congruental Random Number Generator
	/*!
	HtlLCGenerator is a Linear Congruental Random Number Generator
	
	*/

	class HTL_DLLAPI HtlLCGenerator: public HtlRandNumGen
	{

	public:
		
		//!HtlRandNumGen VOID Constructor
		/*!
			The HtlRandNumGen is the base class for all random number generators that are 
			in turn used for the distribution random number generator
		*/
		HtlLCGenerator(void);

		//!HtlRandNumGen VOID Destructor
		/*!
		HtlRandNumGen VOID Destructor. Note this is the virtual destructor.  
		*/
		virtual ~HtlLCGenerator();

		//!Initialize the random number generator
		virtual void initialize(void);
		//!Gets the next random number generated
		virtual double next(void);
		//!Updates All Stream random numbers
		virtual double nextStream(void);

   private:
      bool m_blnLocked;

	};//end HtlLCGenerator class definition

};//end HTL namespace

#endif //HTL_LCGENERATOR_H

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The MIT License


Written By
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions