glibmm  2.33.3
Public Types | Public Member Functions
Glib::ArrayHandle Class Reference

This is an intermediate type. More...

#include <glibmm/arrayhandle.h>

List of all members.

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 CTypedata () const
size_t size () const
bool empty () const

Detailed Description

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

typedef Tr::CppType Glib::ArrayHandle::CppType
typedef Tr::CType Glib::ArrayHandle::CType

Constructor & Destructor Documentation

template <class Cont >
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 ( )

Member Function Documentation

template <class Cont >
void Glib::ArrayHandle::assign_to ( Cont &  container) const [inline]
const_iterator Glib::ArrayHandle::begin ( ) const [inline]
template <class Out >
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]
template <class U >
Glib::ArrayHandle::operator std::deque< U > ( ) const [inline]
template <class U >
Glib::ArrayHandle::operator std::list< U > ( ) const [inline]
template <class U >
Glib::ArrayHandle::operator std::vector< U > ( ) const [inline]
size_t Glib::ArrayHandle::size ( ) const [inline]