Point Cloud Library (PCL)
1.7.1
Main Page
Modules
Namespaces
Classes
surface
include
pcl
surface
3rdparty
opennurbs
opennurbs_fsp_defs.h
1
/* $NoKeywords: $ */
2
/*
3
//
4
// Copyright (c) 1993-2012 Robert McNeel & Associates. All rights reserved.
5
// OpenNURBS, Rhinoceros, and Rhino3D are registered trademarks of Robert
6
// McNeel & Associates.
7
//
8
// THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY.
9
// ALL IMPLIED WARRANTIES OF FITNESS FOR ANY PARTICULAR PURPOSE AND OF
10
// MERCHANTABILITY ARE HEREBY DISCLAIMED.
11
//
12
// For complete openNURBS copyright information see <http://www.opennurbs.org>.
13
//
14
////////////////////////////////////////////////////////////////
15
*/
16
17
#if !defined(ON_FSP_DEFS_INC_)
18
#define ON_FSP_DEFS_INC_
19
20
template
<
class
T>
21
ON_SimpleFixedSizePool<T>::ON_SimpleFixedSizePool
()
22
:
ON_FixedSizePool
()
23
{}
24
25
template
<
class
T>
26
ON_SimpleFixedSizePool<T>::~ON_SimpleFixedSizePool
()
27
{
28
ON_FixedSizePool::Destroy
();
29
}
30
31
template
<
class
T>
32
bool
ON_SimpleFixedSizePool<T>::Create
(
33
size_t
element_count_estimate,
34
size_t
block_element_count
35
)
36
{
37
return
ON_FixedSizePool::Create
(
sizeof
(T),element_count_estimate,block_element_count);
38
}
39
40
template
<
class
T>
41
size_t
ON_SimpleFixedSizePool<T>::SizeofElement
()
const
42
{
43
return
ON_FixedSizePool::SizeofElement
();
44
}
45
46
template
<
class
T>
47
T*
ON_SimpleFixedSizePool<T>::AllocateElement
()
48
{
49
return
(T *)
ON_FixedSizePool::AllocateElement
();
50
}
51
52
template
<
class
T>
53
void
ON_SimpleFixedSizePool<T>::ReturnElement
(T* p)
54
{
55
ON_FixedSizePool::ReturnElement
(p);
56
}
57
58
template
<
class
T>
59
void
ON_SimpleFixedSizePool<T>::ReturnAll
()
60
{
61
ON_FixedSizePool::ReturnAll
();
62
}
63
64
template
<
class
T>
65
void
ON_SimpleFixedSizePool<T>::Destroy
()
66
{
67
ON_FixedSizePool::Destroy
();
68
}
69
70
template
<
class
T>
71
size_t
ON_SimpleFixedSizePool<T>::ActiveElementCount
()
const
72
{
73
return
ON_FixedSizePool::ActiveElementCount
();
74
}
75
76
template
<
class
T>
77
size_t
ON_SimpleFixedSizePool<T>::TotalElementCount
()
const
78
{
79
return
ON_FixedSizePool::TotalElementCount
();
80
}
81
82
template
<
class
T>
83
T*
ON_SimpleFixedSizePool<T>::FirstElement
()
84
{
85
return
(T *)
ON_FixedSizePool::FirstElement
();
86
}
87
88
template
<
class
T>
89
T*
ON_SimpleFixedSizePool<T>::NextElement
()
90
{
91
return
(T *)
ON_FixedSizePool::NextElement
();
92
}
93
94
template
<
class
T>
95
T*
ON_SimpleFixedSizePool<T>::FirstBlock
(
size_t
* block_element_count )
96
{
97
return
(T *)
ON_FixedSizePool::FirstBlock
(block_element_count);
98
}
99
100
template
<
class
T>
101
T*
ON_SimpleFixedSizePool<T>::NextBlock
(
size_t
* block_element_count )
102
{
103
return
(T *)
ON_FixedSizePool::NextBlock
(block_element_count);
104
}
105
106
template
<
class
T>
107
T*
ON_SimpleFixedSizePool<T>::Element
(
size_t
element_index)
const
108
{
109
return
(T *)
ON_FixedSizePool::Element
(element_index);
110
}
111
112
template
<
class
T>
113
void
ON_SimpleFixedSizePool<T>::SetHeap
( ON_MEMORY_POOL* heap )
114
{
115
ON_FixedSizePool::SetHeap
(heap);
116
}
117
118
template
<
class
T>
119
ON_MEMORY_POOL*
ON_SimpleFixedSizePool<T>::Heap
()
120
{
121
return
ON_FixedSizePool::Heap
();
122
}
123
124
template
<
class
T>
125
void
ON_SimpleFixedSizePool<T>::EmergencyDestroy
()
126
{
127
ON_FixedSizePool::EmergencyDestroy
();
128
}
129
130
#endif