Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5173 from Dr15Jones/useUniquePtrInTkCloner
Have TkCloner return std::unique_ptr for factory functions
- Loading branch information
Showing
10 changed files
with
98 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
#ifndef FWCore_Utilities_HideStdUniquePtrFromRoot_h | ||
#define FWCore_Utilities_HideStdUniquePtrFromRoot_h | ||
#if defined(__GCCXML__) | ||
// -*- C++ -*- | ||
// | ||
// Package: FWCore/Utilities | ||
// Class : HideStdUniquePtrFromRoot | ||
// | ||
/** | ||
Description: gccxml can't parse std::unique_ptr so we need to give a substitute | ||
Usage: | ||
gccxml has its own version of <memory> which does not include | ||
std::unique_ptr<> so we need a declaration of the class which has | ||
the same memory footprint and declares those methods which are seen | ||
by gccxml. | ||
*/ | ||
// | ||
// Original Author: Chris Jones | ||
// Created: Wed, 04 Dec 2013 16:39:12 GMT | ||
// | ||
|
||
// system include files | ||
|
||
// user include files | ||
|
||
// forward declarations | ||
namespace std { | ||
template< typename T> | ||
class unique_ptr { | ||
void* data_; | ||
public: | ||
unique_ptr(); | ||
unique_ptr(T*); | ||
template<typename U> unique_ptr(const U&); | ||
void reset(T* iValue=0); | ||
T* get(); | ||
T const* get() const; | ||
T* release(); | ||
|
||
T* operator->(); | ||
T const* operator->() const; | ||
|
||
T operator*() const; | ||
|
||
operator bool() const; | ||
}; | ||
} | ||
#endif | ||
#endif | ||
|
||
/* LocalWords: ifndef | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters