File: randbuffer.yo

package info (click to toggle)
bobcat 2.08.01-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 5,668 kB
  • ctags: 953
  • sloc: cpp: 10,403; makefile: 9,042; perl: 401; sh: 195
file content (60 lines) | stat: -rw-r--r-- 1,767 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
includefile(header.inc)

COMMENT(manpage, section, releasedate, archive, short name)
manpage(FBB::RandBuffer)(3bobcat)(_CurYrs_)(libbobcat1-dev__CurVers_-x.tar.gz)
                    (random number streambuf)

manpagename(FBB::RandBuffer)(std::streambuf generating random numbers)

manpagesynopsis()
    bf(#include <bobcat/randbuffer>)nl()
    Linking option: tt(-lbobcat) 

manpagedescription()

    bf(FBB:RandBuffer) objects may be used as a bf(std::streambuf) of
tt(std::istream) objects to allow the extraction of random numbers from the
stream.

includefile(namespace.inc)

manpagesection(INHERITS FROM)
    std::streambuf

manpagesection(CONSTRUCTOR)
    itemization(
    itb(Randbuffer(int min, int max, size_t seed = 1))
    This bf(Randbuffer()) constructor initializes the random generator. The
seed is used to initialze the random number generator.Random values between
tt(min) and tt(max) (inclusive) are returned.
    )

manpagesection(VIRTUAL MEMBERS)

    itemization(
    itb(int underflow())
    This function is called by tt(std::istream) objects using
bf(Randbuffer). It produces the next available random number, separating the
random numbers by one blanks space. Random values between tt(min) and tt(max)
(inclusive) are returned (see the description of the constructor).
    )

manpagesection(INHERITED MEMBERS)

    Since the class uses public derivation from 
bf(std::streambuf), all members of this class can be used.

manpagesection(EXAMPLE)
    verbinclude(../../randbuffer/driver/driver.cc)

manpagefiles()
    em(bobcat/randbuffer) - defines the class interface

manpageseealso()
    bf(bobcat)(7), bf(irandstream)(3bobcat), bf(rand)(3), bf(srand)(3),
    bf(std::streambuf)

manpagebugs()
    None Reported.

includefile(trailer.inc)