Searched defs:ResourceHolder (Results 1 – 2 of 2) sorted by relevance
859 template< class T > struct ResourceHolder struct863 T m_value;865 explicit ResourceHolder (T const & value = T()) : m_value (value) {} in ResourceHolder() argument866 ~ResourceHolder() { reset(); } in ~ResourceHolder()868 T & get() { return m_value; } in get()869 T const & get() const { return m_value; } in get()871 void set (T const & value) { m_value = value; } in set()872 void reset (T const & value = T()) in reset()879 T release() in release()886 ResourceHolder (ResourceHolder & rhs) in ResourceHolder() argument[all …]
893 template< class T > struct ResourceHolder struct899 explicit ResourceHolder (T const & value = T()) : m_value (value) {} in ResourceHolder() argument900 ~ResourceHolder() { reset(); } in ~ResourceHolder() argument920 ResourceHolder (ResourceHolder & rhs) in ResourceHolder() argument924 ResourceHolder & operator= (ResourceHolder & rhs) in operator =() argument
Completed in 52 milliseconds