Limbo 3.5.4
Loading...
Searching...
No Matches
limbo::geometry::container_traits< std::vector< T > > Struct Template Reference

partial specialization of limbo::geometry::container_traits for commonly used data structures like std::vector More...

#include <Geometry.h>

Public Types

typedef std::vector< T > 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, iterator_type it)
 erase an element from container with iterator
template<typename PointCompareType>
static container_type construct (PointCompareType const &)
 a default construct function

Detailed Description

template<typename T>
struct limbo::geometry::container_traits< std::vector< T > >

partial specialization of limbo::geometry::container_traits for commonly used data structures like std::vector

Template Parameters
Tdata type

Definition at line 307 of file Geometry.h.

Member Typedef Documentation

◆ const_iterator_type

template<typename T>
typedef container_type::const_iterator limbo::geometry::container_traits< std::vector< T > >::const_iterator_type

Definition at line 312 of file Geometry.h.

◆ container_type

template<typename T>
typedef std::vector<T> limbo::geometry::container_traits< std::vector< T > >::container_type

Definition at line 310 of file Geometry.h.

◆ iterator_type

template<typename T>
typedef container_type::iterator limbo::geometry::container_traits< std::vector< T > >::iterator_type

Definition at line 313 of file Geometry.h.

◆ value_type

template<typename T>
typedef container_type::value_type limbo::geometry::container_traits< std::vector< T > >::value_type

Definition at line 311 of file Geometry.h.

Member Function Documentation

◆ construct()

template<typename T>
template<typename PointCompareType>
container_type limbo::geometry::container_traits< std::vector< T > >::construct ( PointCompareType const & )
inlinestatic

a default construct function

Template Parameters
PointCompareTypecomparison type for point, not used here

Definition at line 325 of file Geometry.h.

◆ erase()

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

erase an element from container with iterator

Definition at line 321 of file Geometry.h.

◆ insert() [1/2]

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

insert value to container with hint of iterator

Definition at line 319 of file Geometry.h.

◆ insert() [2/2]

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

insert value to container

Definition at line 317 of file Geometry.h.


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