Limbo 3.5.4
Loading...
Searching...
No Matches
limbo::geometry::container_traits< ContainerType > Class Template Reference

type traits for containers such as vector, list, multiset More...

#include <Geometry.h>

Public Types

typedef ContainerType container_type
typedef container_type::value_type value_type
typedef container_type::const_iterator const_iterator_type
typedef container_type::iterator iterator_type

Static Public Member Functions

static void insert (container_type &container, value_type const &v)
 insert value to container
static void insert (container_type &container, iterator_type it, value_type const &v)
 insert value to container with hint of iterator
static void erase (container_type &container, value_type const &v)
 erase value from iterator
static void erase (container_type &container, iterator_type it)
 erase an element from container with iterator
template<typename PointCompareType>
static container_type construct (PointCompareType const &comp)
 a default construct function is necessary, because std::set needs a compare function, but vector does not

Detailed Description

template<typename ContainerType>
class limbo::geometry::container_traits< ContainerType >

type traits for containers such as vector, list, multiset

Template Parameters
ContainerTypecontainer type

Definition at line 281 of file Geometry.h.

Member Typedef Documentation

◆ const_iterator_type

template<typename ContainerType>
typedef container_type::const_iterator limbo::geometry::container_traits< ContainerType >::const_iterator_type

Definition at line 286 of file Geometry.h.

◆ container_type

template<typename ContainerType>
typedef ContainerType limbo::geometry::container_traits< ContainerType >::container_type

Definition at line 284 of file Geometry.h.

◆ iterator_type

template<typename ContainerType>
typedef container_type::iterator limbo::geometry::container_traits< ContainerType >::iterator_type

Definition at line 287 of file Geometry.h.

◆ value_type

template<typename ContainerType>
typedef container_type::value_type limbo::geometry::container_traits< ContainerType >::value_type

Definition at line 285 of file Geometry.h.

Member Function Documentation

◆ construct()

template<typename ContainerType>
template<typename PointCompareType>
container_type limbo::geometry::container_traits< ContainerType >::construct ( PointCompareType const & comp)
inlinestatic

a default construct function is necessary, because std::set needs a compare function, but vector does not

Definition at line 300 of file Geometry.h.

◆ erase() [1/2]

template<typename ContainerType>
void limbo::geometry::container_traits< ContainerType >::erase ( container_type & container,
iterator_type it )
inlinestatic

erase an element from container with iterator

Definition at line 297 of file Geometry.h.

◆ erase() [2/2]

template<typename ContainerType>
void limbo::geometry::container_traits< ContainerType >::erase ( container_type & container,
value_type const & v )
inlinestatic

erase value from iterator

Definition at line 295 of file Geometry.h.

◆ insert() [1/2]

template<typename ContainerType>
void limbo::geometry::container_traits< ContainerType >::insert ( container_type & container,
iterator_type it,
value_type const & v )
inlinestatic

insert value to container with hint of iterator

Definition at line 293 of file Geometry.h.

◆ insert() [2/2]

template<typename ContainerType>
void limbo::geometry::container_traits< ContainerType >::insert ( container_type & container,
value_type const & v )
inlinestatic

insert value to container

Definition at line 291 of file Geometry.h.


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