OpenCores
URL https://opencores.org/ocsvn/scarts/scarts/trunk

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [libstdc++-v3/] [docs/] [html/] [ext/] [pb_assoc/] [sample_probe_fn.hpp] - Blame information for rev 20

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 20 jlechner
/**
2
* @file sample_probe_fn.hpp
3
* Contains a sample probe policy.
4
*
5
* Copyright Ami Tavory, IBM-HRL, 2004.
6
*
7
* Permission to use, copy, modify, sell, and distribute this software
8
*   is hereby granted without fee, provided that the above copyright notice
9
*   appears in all copies, and that both that copyright notice and this
10
*   permission notice appear in supporting documentation.
11
*
12
* None of the above authors, nor IBM Haifa Research Laboratories, make any
13
*   representation about the suitability of this software for any
14
*   purpose. It is provided "as is" without express or implied warranty.
15
**/
16
 
17
 
18
#ifndef SAMPLE_PROBE_FN_HPP
19
#define SAMPLE_PROBE_FN_HPP
20
 
21
 
22
/**
23
* <class
24
*   description = "A sample probe policy."
25
*  comment = "This class serves to show the interface a probe functor
26
*       needs to support.">
27
**/
28
class sample_probe_fn
29
{
30
/**
31
*******************************************************************************
32
*******************************************************************************
33
* <public_methods_group>
34
**/
35
public:
36
        /**
37
        ***************************************************************************
38
        ***************************************************************************
39
        ** <group description = "Constructors, destructor, and related.">
40
        **/
41
 
42
        /*
43
        * <fn description = "Default constructor."
44
        *       comment = "Must be default constructible.">
45
        **/
46
                sample_probe_fn
47
                ();
48
        /** </fn> **/
49
 
50
        /*
51
        * <fn description = "Copy constructor."
52
        *       comment = "Must be copy constructible.">
53
        **/
54
                sample_probe_fn
55
                (const sample_probe_fn &r_other);
56
        /** </fn> **/
57
 
58
        /*
59
        * <fn description = "Swaps content."
60
        *       comment = "Must be swappable (if there is such a word).">
61
        **/
62
        inline void
63
                swap
64
                (sample_probe_fn &r_other);
65
        /** </fn> **/
66
 
67
        /*
68
        ***************************************************************************
69
        ***************************************************************************
70
        * </group>
71
        **/
72
 
73
 
74
/**
75
*******************************************************************************
76
*******************************************************************************
77
* </public_methods_group>
78
**/
79
 
80
 
81
/**
82
*******************************************************************************
83
*******************************************************************************
84
* <protected_methods_group>
85
**/
86
protected:
87
        /**
88
        ***************************************************************************
89
        ***************************************************************************
90
        ** <group description = "Offset methods.">
91
        **/
92
 
93
        /*
94
        * <fn description = "Returns the i-th offset from the hash value
95
        *               of some key r_key."
96
        *       comment = "@@sample_range_hashing_size_type_comment">
97
        **/
98
        inline size_type
99
                operator()
100
                (const_key_reference r_key,
101
                        size_type i) const;
102
        /** </fn> **/
103
 
104
        /**
105
        ***************************************************************************
106
        ***************************************************************************
107
        ** </group">
108
        **/
109
 
110
/**
111
*******************************************************************************
112
*******************************************************************************
113
* </protected_methods_group>
114
**/
115
};
116
/**
117
* </class>
118
**/
119
 
120
 
121
#endif // #ifndef SAMPLE_PROBE_FN_HPP

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.