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

Primitive handle. Holds a pointer to a primitive, through the 'handle' member. 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

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

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

Member Function Documentation

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

Member Data Documentation

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