Logo Search packages:      
Sourcecode: ardour version File versions  Download package

Glib::ArrayHandle< T, Tr > Class Template Reference
[Generic container converters]

#include <arrayhandle.h>

List of all members.


Detailed Description

template<class T, class Tr = Glib::Container_Helpers::TypeTraits<T>>
class Glib::ArrayHandle< T, Tr >

If a method takes this as an argument, or has this as a return type, then you can use a standard container such as std::list or std::vector.

Definition at line 188 of file arrayhandle.h.


Public Types

typedef
Glib::Container_Helpers::ArrayHandleIterator
< Tr > 
const_iterator
typedef Tr::CppType CppType
typedef Tr::CType CType
typedef ptrdiff_t difference_type
typedef
Glib::Container_Helpers::ArrayHandleIterator
< Tr > 
iterator
typedef size_t size_type
typedef CppType value_type

Public Member Functions

 ArrayHandle (const ArrayHandle< T, Tr > &other)
 ArrayHandle (const CType *array, Glib::OwnershipType ownership)
 ArrayHandle (const CType *array, size_t array_size, Glib::OwnershipType ownership)
template<class Cont>
 ArrayHandle (const Cont &container)
template<class Cont>
void assign_to (Cont &container) const
const_iterator begin () const
template<class Out>
void copy (Out pdest) const
const CType * data () const
bool empty () const
const_iterator end () const
template<class U>
 operator std::deque< U > () const
template<class U>
 operator std::list< U > () const
template<class U>
 operator std::vector< U > () const
size_t size () const

Private Member Functions

ArrayHandle< T, Tr > & operator= (const ArrayHandle< T, Tr > &)

Private Attributes

Glib::OwnershipType ownership_
const CType * parray_
size_t size_

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index