glibmm
2.42.0
|
This is an intermediate type. More...
#include <glibmm/arrayhandle.h>
Public Types | |
typedef Tr::CppType | CppType |
typedef Tr::CType | CType |
typedef CppType | value_type |
typedef std::size_t | size_type |
typedef std::ptrdiff_t | difference_type |
typedef Glib::Container_Helpers::ArrayHandleIterator < Tr > | const_iterator |
typedef Glib::Container_Helpers::ArrayHandleIterator < Tr > | iterator |
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 () | |
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 |
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.
typedef Glib::Container_Helpers::ArrayHandleIterator<Tr> Glib::ArrayHandle< T, Tr >::const_iterator |
typedef Tr::CppType Glib::ArrayHandle< T, Tr >::CppType |
typedef Tr::CType Glib::ArrayHandle< T, Tr >::CType |
typedef std::ptrdiff_t Glib::ArrayHandle< T, Tr >::difference_type |
typedef Glib::Container_Helpers::ArrayHandleIterator<Tr> Glib::ArrayHandle< T, Tr >::iterator |
typedef std::size_t Glib::ArrayHandle< T, Tr >::size_type |
typedef CppType Glib::ArrayHandle< T, Tr >::value_type |
|
inline |
|
inline |
|
inline |
|
inline |
Glib::ArrayHandle< T, Tr >::~ArrayHandle | ( | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |