BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Event/GeneratorObject/include/DataModel/tools/RemoveDataPtr.h
Go to the documentation of this file.
1#ifndef DATAMODEL_TOOLS_REMOVEDATAPTR_H
2#define DATAMODEL_TOOLS_REMOVEDATAPTR_H
3/***************************************************************************
4 helper struct to treat pointers and DataPtr uniformly
5 -----------------------------------------------------
6 ATLAS Collaboration
7 ***************************************************************************/
8
9// $Id: RemoveDataPtr.h,v 1.1 2003/04/07 23:58:32 calaf Exp $
10
11//<<<<<< INCLUDES >>>>>>
12
13#ifndef DATAMODEL_DATAPTR_H
14# include "DataModel/DataPtr.h"
15#endif
16
17// namespace type_tools {
18template <typename T> struct RemoveDataPtr {
19 typedef T type;
20};
21template <typename T> struct RemoveDataPtr<DataPtr<T>> {
22 typedef typename DataPtr<T>::DataPtr_type* type;
23};
24//}
25
26#endif // TOOLS_REMOVEDATAPTR_H
T DataPtr_type
A wrapper around boost shared_ptr. Adds automatic conversion to/from T*.