Public Types | Public Member Functions | Public Attributes | List of all members
SFCGAL::detail::PrimitiveHandle< Dim > Struct Template Reference

Primitive handle. More...

#include <GeometrySet.h>

Public Types

typedef boost::variant< const typename Point_d< Dim >::Type *, const typename Segment_d< Dim >::Type *, const typename Surface_d< Dim >::Type *, const typename Volume_d< Dim >::Type * > Type

Public Member Functions

template<class T >
 PrimitiveHandle (const T *p)
template<class T >
const T * as () const

Public Attributes

Type handle

Detailed Description

template<int Dim>
struct SFCGAL::detail::PrimitiveHandle< Dim >

Primitive handle.

Holds a pointer to a primitive, through the 'handle' member

Member Typedef Documentation

◆ Type

template<int Dim>
typedef boost::variant<const typename Point_d<Dim>::Type *, const typename Segment_d<Dim>::Type *, const typename Surface_d<Dim>::Type *, const typename Volume_d<Dim>::Type *> SFCGAL::detail::PrimitiveHandle< Dim >::Type

Constructor & Destructor Documentation

◆ PrimitiveHandle()

template<int Dim>
template<class T >
SFCGAL::detail::PrimitiveHandle< Dim >::PrimitiveHandle ( const T *  p)

Member Function Documentation

◆ as()

template<int Dim>
template<class T >
const T * SFCGAL::detail::PrimitiveHandle< Dim >::as ( ) const

Member Data Documentation

◆ handle

template<int Dim>
Type SFCGAL::detail::PrimitiveHandle< Dim >::handle