logo top
Main Page  glibmm Namespaces  Book 

Generic container converters

Collaboration diagram for Generic container converters:

Classes

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. More...
class Glib::Sequence< Iterator >
 Utility class holding an iterator sequence. More...
class Glib::ListHandle< T, Tr >
class Glib::SListHandle< T, Tr >

Modules

 Helper classes

Typedefs

typedef ArrayHandle
< Glib::ustring
Glib::StringArrayHandle
 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<Glib::ustring> or std::vector<Glib::ustring>.

Enumerations

enum Glib::OwnershipType {
  Glib::OWNERSHIP_NONE = 0,
  Glib::OWNERSHIP_SHALLOW,
  Glib::OWNERSHIP_DEEP
}

Functions

template<class Iterator >
Sequence< Iterator > Glib::sequence (Iterator pbegin, Iterator pend)
 Helper function to create a Glib::Sequence<> object, which in turn can be used to initialize a container handle.

Typedef Documentation

typedef ArrayHandle<Glib::ustring> Glib::StringArrayHandle

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<Glib::ustring> or std::vector<Glib::ustring>.


Enumeration Type Documentation

Ownership of the container

Defines how and if the container will release the list and its elemens when it is destroyed

Enumerator:
OWNERSHIP_NONE  Do not release anything
OWNERSHIP_SHALLOW  Release the list, but not its elements, when the container is deleted
OWNERSHIP_DEEP  Release the list, and its elements, when the container is deleted.


Function Documentation

template <class Iterator >
Sequence<Iterator> Glib::sequence ( Iterator  pbegin,
Iterator  pend 
) [inline]

Helper function to create a Glib::Sequence<> object, which in turn can be used to initialize a container handle.

Usage example:
 combo.set_popdown_strings(Glib::sequence(foo_begin, foo_end));


Generated for glibmm by Doxygen 1.5.9 © 1997-2001