libabigail
|
Namespace for the utilities to wrap C types into std::shared_ptr. More...
Classes | |
struct | noop_deleter |
A deleter for shared pointers that ... doesn't delete the object managed by the shared pointer. More... | |
Functions | |
template<class T > | |
shared_ptr< T > | build_sptr () |
This is to be specialized for the diverse C types that needs wrapping in shared_ptr. | |
template<class T > | |
shared_ptr< T > | build_sptr (T *p) |
This is to be specialized for the diverse C types that needs wrapping in shared_ptr. | |
template<> | |
regex::regex_t_sptr | build_sptr< regex_t > () |
Specialization of sptr_utils::build_sptr for regex_t. | |
template<> | |
regex::regex_t_sptr | build_sptr< regex_t > (regex_t *p) |
Specialization of sptr_utils::build_sptr for regex_t. | |
template<> | |
xml::xml_char_sptr | build_sptr< xmlChar > (xmlChar *p) |
Specialization of build_str for xmlChar. | |
template<> | |
shared_ptr< xmlChar > | build_sptr< xmlChar > (xmlChar *p) |
Build and return a shared_ptr for a pointer to xmlChar. | |
template<> | |
shared_ptr< xmlTextReader > | build_sptr< xmlTextReader > (::xmlTextReader *p) |
Build and return a shared_ptr for a pointer to xmlTextReader. | |
template<> | |
xml::reader_sptr | build_sptr< xmlTextReader > (xmlTextReader *p) |
Specialization of sptr_utils::build_sptr for xmlTextReader. | |
Namespace for the utilities to wrap C types into std::shared_ptr.
shared_ptr< T > build_sptr | ( | ) |
This is to be specialized for the diverse C types that needs wrapping in shared_ptr.
This variant creates a pointer to T and wraps it into a shared_ptr<T>.
T | the type of the C type to wrap in a shared_ptr. |
shared_ptr< T > build_sptr | ( | T * | p | ) |
This is to be specialized for the diverse C types that needs wrapping in shared_ptr.
T | the type of the C type to wrap in a shared_ptr. |
p | a pointer to wrap in a shared_ptr. |
regex::regex_t_sptr build_sptr< regex_t > | ( | ) |
Specialization of sptr_utils::build_sptr for regex_t.
This creates a pointer to regex_t and wraps it into a shared_ptr<regex_t>.
regex::regex_t_sptr build_sptr< regex_t > | ( | regex_t * | p | ) |
Specialization of sptr_utils::build_sptr for regex_t.
This is used to wrap a pointer to regex_t into a shared_ptr<regex_t>.
p | the bare pointer to regex_t to wrap into a shared_ptr<regex_t>. |
p
. xml::xml_char_sptr build_sptr< xmlChar > | ( | xmlChar * | p | ) |
Specialization of build_str for xmlChar.
Specialization of build_str for xmlChar.
Definition at line 17 of file abg-libxml-utils.cc.
shared_ptr< xmlChar > build_sptr< xmlChar > | ( | xmlChar * | p | ) |
Build and return a shared_ptr for a pointer to xmlChar.
Specialization of build_str for xmlChar.
Definition at line 17 of file abg-libxml-utils.cc.
shared_ptr< xmlTextReader > build_sptr< xmlTextReader > | ( | ::xmlTextReader * | p | ) |
Build and return a shared_ptr for a pointer to xmlTextReader.
Definition at line 17 of file abg-libxml-utils.cc.
xml::reader_sptr build_sptr< xmlTextReader > | ( | xmlTextReader * | p | ) |
Specialization of sptr_utils::build_sptr for xmlTextReader.