forked from HeliumProject/Foundation
-
Notifications
You must be signed in to change notification settings - Fork 1
/
ConcurrentHashSet.inl
41 lines (37 loc) · 1.35 KB
/
ConcurrentHashSet.inl
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
/// Constructor.
///
/// @param[in] bucketCount Number of buckets to allocate in the hash table.
template< typename Key, typename HashFunction, typename EqualKey, typename Allocator >
Helium::ConcurrentHashSet< Key, HashFunction, EqualKey, Allocator >::ConcurrentHashSet( size_t bucketCount )
: Base( bucketCount, HashFunction(), EqualKey() )
{
}
/// Copy constructor.
///
/// @param[in] rSource Source hash set from which to copy.
template< typename Key, typename HashFunction, typename EqualKey, typename Allocator >
Helium::ConcurrentHashSet< Key, HashFunction, EqualKey, Allocator >::ConcurrentHashSet(
const ConcurrentHashSet& rSource )
: Base( rSource )
{
}
/// Destructor.
template< typename Key, typename HashFunction, typename EqualKey, typename Allocator >
Helium::ConcurrentHashSet< Key, HashFunction, EqualKey, Allocator >::~ConcurrentHashSet()
{
}
/// Assignment operator.
///
/// @param[in] rSource Source hash set from which to copy.
///
/// @return Reference to this object.
template< typename Key, typename HashFunction, typename EqualKey, typename Allocator >
Helium::ConcurrentHashSet< Key, HashFunction, EqualKey, Allocator >&
Helium::ConcurrentHashSet< Key, HashFunction, EqualKey, Allocator >::operator=( const ConcurrentHashSet& rSource )
{
if( this != &rSource )
{
Base::operator=( rSource );
}
return *this;
}