PPL
1.2
|
A pool of temporary items of type T
.
More...
#include <Temp_defs.hh>
Classes | |
class | Free_List |
Public Member Functions | |
T & | item () |
Returns a reference to the encapsulated item. More... | |
Static Public Member Functions | |
static Temp_Item & | obtain () |
Obtains a reference to a temporary item. More... | |
static void | release (Temp_Item &p) |
Releases the temporary item p . More... | |
Private Member Functions | |
Temp_Item () | |
Default constructor. More... | |
Temp_Item (const Temp_Item &) | |
Copy constructor: private and intentionally not implemented. More... | |
Temp_Item & | operator= (const Temp_Item &) |
Assignment operator: private and intentionally not implemented. More... | |
Static Private Member Functions | |
static Temp_Item *& | free_list_ref () |
Head of the free list. More... | |
Private Attributes | |
T | item_ |
The encapsulated item. More... | |
Temp_Item * | next |
Pointer to the next item in the free list. More... | |
Friends | |
class | Free_List |
A pool of temporary items of type T
.
Definition at line 36 of file Temp_defs.hh.
|
inlineprivate |
Default constructor.
Definition at line 33 of file Temp_inlines.hh.
Referenced by Parma_Polyhedra_Library::Temp_Item< T >::obtain().
|
private |
Copy constructor: private and intentionally not implemented.
|
inlinestaticprivate |
Head of the free list.
Definition at line 51 of file Temp_inlines.hh.
References Parma_Polyhedra_Library::Temp_Item< T >::Free_List::head_ptr.
Referenced by Parma_Polyhedra_Library::Temp_Item< T >::obtain(), and Parma_Polyhedra_Library::Temp_Item< T >::release().
|
inline |
|
inlinestatic |
Obtains a reference to a temporary item.
Definition at line 58 of file Temp_inlines.hh.
References Parma_Polyhedra_Library::Temp_Item< T >::free_list_ref(), Parma_Polyhedra_Library::Temp_Item< T >::next, and Parma_Polyhedra_Library::Temp_Item< T >::Temp_Item().
|
private |
Assignment operator: private and intentionally not implemented.
|
inlinestatic |
Releases the temporary item p
.
Definition at line 71 of file Temp_inlines.hh.
References Parma_Polyhedra_Library::Temp_Item< T >::free_list_ref(), and Parma_Polyhedra_Library::Temp_Item< T >::next.
Referenced by Parma_Polyhedra_Library::Temp_Reference_Holder< T >::~Temp_Reference_Holder().
|
friend |
Definition at line 64 of file Temp_defs.hh.
|
private |
The encapsulated item.
Definition at line 49 of file Temp_defs.hh.
|
private |
Pointer to the next item in the free list.
Definition at line 52 of file Temp_defs.hh.
Referenced by Parma_Polyhedra_Library::Temp_Item< T >::obtain(), Parma_Polyhedra_Library::Temp_Item< T >::release(), and Parma_Polyhedra_Library::Temp_Item< T >::Free_List::~Free_List().