glibmm: Glib::ArrayHandle< T, Tr > Class Template Reference
This is an intermediate type. More...
#include <glibmm/arrayhandle.h>
Public Types |
|
using | CppType = typename Tr::CppType |
using | CType = typename Tr::CType |
using | value_type = CppType |
using | size_type = std::size_t |
using | difference_type = std::ptrdiff_t |
using | const_iterator = Glib::Container_Helpers::ArrayHandleIterator < Tr > |
using | iterator = Glib::Container_Helpers::ArrayHandleIterator < Tr > |
Public Member Functions |
|
template<class Cont > | |
ArrayHandle (const Cont& container) | |
ArrayHandle (const CType * array, std::size_t array_size, Glib::OwnershipType ownership) | |
ArrayHandle (const CType * array, Glib::OwnershipType ownership) | |
ArrayHandle (const ArrayHandle < T, Tr >& other) | |
~ArrayHandle () noexcept | |
const_iterator | begin () const |
const_iterator | end () const |
template<class U > | |
operator std::vector< U > () const | |
template<class U > | |
operator std::deque< U > () const | |
template<class U > | |
operator std::list< U > () const | |
template<class Cont > | |
void | assign_to (Cont& container) const |
template<class Out > | |
void | copy (Out pdest) const |
const CType * | data () const |
std::size_t | size () const |
bool | empty () const |
Detailed Description
template<class T, class Tr = Glib::Container_Helpers::TypeTraits<T>>
class Glib::ArrayHandle< T, Tr >
This is an intermediate type.
When a method takes this, or returns this, you should use a standard C++ container of your choice, such as std::list or std::vector .
However, this is not used in new API. We now prefer to just use std::vector , which is less flexibile, but makes the API clearer.
Member Typedef Documentation
template <class T , class Tr = Glib::Container_Helpers::TypeTraits<T>>
using Glib::ArrayHandle < T, Tr >:: const_iterator = Glib::Container_Helpers::ArrayHandleIterator <Tr> |
template <class T , class Tr = Glib::Container_Helpers::TypeTraits<T>>
using Glib::ArrayHandle < T, Tr >:: CppType = typename Tr::CppType |
template <class T , class Tr = Glib::Container_Helpers::TypeTraits<T>>
using Glib::ArrayHandle < T, Tr >:: CType = typename Tr::CType |
template <class T , class Tr = Glib::Container_Helpers::TypeTraits<T>>
using Glib::ArrayHandle < T, Tr >:: difference_type = std::ptrdiff_t |
template <class T , class Tr = Glib::Container_Helpers::TypeTraits<T>>
using Glib::ArrayHandle < T, Tr >:: iterator = Glib::Container_Helpers::ArrayHandleIterator <Tr> |
template <class T , class Tr = Glib::Container_Helpers::TypeTraits<T>>
using Glib::ArrayHandle < T, Tr >:: size_type = std::size_t |
template <class T , class Tr = Glib::Container_Helpers::TypeTraits<T>>
using Glib::ArrayHandle < T, Tr >:: value_type = CppType |
Constructor & Destructor Documentation
template <class T , class Tr = Glib::Container_Helpers::TypeTraits<T>>
template <class Cont >
|
inline |
template <class T , class Tr = Glib::Container_Helpers::TypeTraits<T>>
|
inline |
template <class T , class Tr = Glib::Container_Helpers::TypeTraits<T>>
|
inline |
template <class T , class Tr = Glib::Container_Helpers::TypeTraits<T>>
|
inline |
template <class T , class Tr = Glib::Container_Helpers::TypeTraits<T>>
|
noexcept |
Member Function Documentation
template <class T , class Tr = Glib::Container_Helpers::TypeTraits<T>>
template <class Cont >
|
inline |
template <class T , class Tr = Glib::Container_Helpers::TypeTraits<T>>
|
inline |
template <class T , class Tr = Glib::Container_Helpers::TypeTraits<T>>
template <class Out >
|
inline |
template <class T , class Tr = Glib::Container_Helpers::TypeTraits<T>>
|
inline |
template <class T , class Tr = Glib::Container_Helpers::TypeTraits<T>>
|
inline |
template <class T , class Tr = Glib::Container_Helpers::TypeTraits<T>>
|
inline |
template <class T , class Tr = Glib::Container_Helpers::TypeTraits<T>>
template <class U >
|
inline |
template <class T , class Tr = Glib::Container_Helpers::TypeTraits<T>>
template <class U >
|
inline |
template <class T , class Tr = Glib::Container_Helpers::TypeTraits<T>>
template <class U >
|
inline |
template <class T , class Tr = Glib::Container_Helpers::TypeTraits<T>>
|
inline |