trsl logo

common.hpp File Reference

#include <cstdlib>
#include <algorithm>

Go to the source code of this file.

Classes

class  trsl::detail::identity< T >

Namespaces

namespace  trsl
 

Public namespace.


namespace  trsl::detail
 

Implementation details.


namespace  trsl::rand_gen
 

Random number wrapper functions.


Defines

#define TRSL_VERSION   "0.2.2"
 Code version string.
#define TRSL_VERSION_NR   100020200
 Code version number.

Functions

template<typename RandomAccessIterator , typename RandomNumberGenerator >
void trsl::detail::partial_random_shuffle (RandomAccessIterator first, RandomAccessIterator middle, RandomAccessIterator last, RandomNumberGenerator &rg)
unsigned int trsl::rand_gen::uniform_int (unsigned int n)
 Returns an integer in [0,n[. Used internally.
template<typename Real >
Real trsl::rand_gen::uniform_01 ()
 Returns a float in [0,1[. Used internally.

Detailed Description

Definition in file common.hpp.


Define Documentation

#define TRSL_VERSION   "0.2.2"

Code version string.

Defined as major.minor.bugfix.

Definition at line 19 of file common.hpp.

#define TRSL_VERSION_NR   100020200

Code version number.

Defined as 1MMmmbbii, where MM is the major release number, mm is the minor release number, bb is the bug-fix release number, and ii is the internal release number.

Definition at line 27 of file common.hpp.

© Copyright 2007-2011 Renaud Detry.
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or copy at www.boost.org/LICENSE_1_0.txt.)
Revised Wed Apr 6 16:30:07 2011.
SourceForge.net Logo