2 * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
5 #ifndef _PACKAGE__HPKG__PRIVATE__STACKER_H_
6 #define _PACKAGE__HPKG__PRIVATE__STACKER_H_
9 namespace BPackageKit
{
16 template<typename Type
>
19 Stacker(Type
*& location
, Type
* element
)
22 fPreviousElement(location
)
27 Stacker(Type
** location
, Type
* element
)
30 fPreviousElement(*location
)
37 if (fLocation
!= NULL
)
38 *fLocation
= fPreviousElement
;
43 Type
* fPreviousElement
;
47 } // namespace BPrivate
51 } // namespace BPackageKit
54 #endif // _PACKAGE__HPKG__PRIVATE__STACKER_H_