glibmm
2.33.2
|
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 size_t | size_type |
typedef 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, 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 |
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 Tr::CppType Glib::ArrayHandle::CppType |
typedef Tr::CType Glib::ArrayHandle::CType |
typedef size_t Glib::ArrayHandle::size_type |
typedef CppType Glib::ArrayHandle::value_type |
Glib::ArrayHandle::ArrayHandle | ( | const Cont & | container | ) | [inline] |
Glib::ArrayHandle::ArrayHandle | ( | const CType* | array, |
size_t | array_size, | ||
Glib::OwnershipType | ownership | ||
) | [inline] |
Glib::ArrayHandle::ArrayHandle | ( | const CType* | array, |
Glib::OwnershipType | ownership | ||
) | [inline] |
Glib::ArrayHandle::ArrayHandle | ( | const ArrayHandle< T, Tr >& | other | ) | [inline] |
Glib::ArrayHandle::~ArrayHandle | ( | ) |
void Glib::ArrayHandle::assign_to | ( | Cont & | container | ) | const [inline] |
const_iterator Glib::ArrayHandle::begin | ( | ) | const [inline] |
void Glib::ArrayHandle::copy | ( | Out | pdest | ) | const [inline] |
const CType* Glib::ArrayHandle::data | ( | ) | const [inline] |
bool Glib::ArrayHandle::empty | ( | ) | const [inline] |
const_iterator Glib::ArrayHandle::end | ( | ) | const [inline] |
Glib::ArrayHandle::operator std::deque< U > | ( | ) | const [inline] |
Glib::ArrayHandle::operator std::list< U > | ( | ) | const [inline] |
Glib::ArrayHandle::operator std::vector< U > | ( | ) | const [inline] |
size_t Glib::ArrayHandle::size | ( | ) | const [inline] |