1 #ifndef INCLUDE_ORA_HANDLE_H
2 #define INCLUDE_ORA_HANDLE_H
7 #include <boost/shared_ptr.hpp>
41 operator bool ()
const;
84 m_holder( new
Holder<
T>( ptr ) ){
90 m_holder( rhs.m_holder ){
105 template <
typename T>
111 template <
typename T>
114 if(!m_holder->ptr.get()) {
119 template <
typename T>
123 return m_holder->ptr.get();
126 template <
typename T>
130 return *m_holder->ptr.get();
133 template <
typename T>
136 return m_holder->ptr.
get()!=0;
139 template <
typename T>
142 return m_holder->ptr.get()==0;
145 template <
typename T>
148 return m_holder->ptr.get();
151 template <
typename T>
154 if(m_holder.get()) m_holder->ptr.reset();
void throwException(const std::string &message, const std::string &methodName) __attribute__((noreturn))
boost::shared_ptr< Holder< T > > m_holder
Handle & operator=(const Handle< T > &rhs)