SFCGAL  2.3.0
Public Member Functions | List of all members
SFCGAL::detail::CollectionElement< Primitive > Class Template Reference

CollectionElement, a Primitive with flags Primitive : Point_d, Segment_d, Surface_d, Volume_d. More...

#include <GeometrySet.h>

Public Member Functions

auto flags () const -> int
 Get element flags. More...
 
auto setFlags (int flags) -> void
 Set element flags. More...
 
auto primitive () -> Primitive &
 Get mutable reference to primitive. More...
 
auto primitive () const -> const Primitive &
 Get const reference to primitive. More...
 
 CollectionElement ()
 Default constructor. More...
 
 CollectionElement (const Primitive &primitive)
 Constructor from primitive. More...
 
 CollectionElement (const Primitive &primitive, int flags)
 Constructor from primitive with flags. More...
 
 CollectionElement (const CollectionElement &other)
 Copy constructor. More...
 
auto operator= (const CollectionElement &other) -> CollectionElement &=default
 Copy assignment operator. More...
 
auto operator< (const CollectionElement &other) const -> bool
 Less-than comparison operator. More...
 

Detailed Description

template<class Primitive>
class SFCGAL::detail::CollectionElement< Primitive >

CollectionElement, a Primitive with flags Primitive : Point_d, Segment_d, Surface_d, Volume_d.

Constructor & Destructor Documentation

template<class Primitive >
SFCGAL::detail::CollectionElement< Primitive >::CollectionElement ( )
inline

Default constructor.

template<class Primitive >
SFCGAL::detail::CollectionElement< Primitive >::CollectionElement ( const Primitive &  primitive)
inline

Constructor from primitive.

Parameters
primitiveThe primitive to wrap
template<class Primitive >
SFCGAL::detail::CollectionElement< Primitive >::CollectionElement ( const Primitive &  primitive,
int  flags 
)
inline

Constructor from primitive with flags.

Parameters
primitiveThe primitive to wrap
flagsThe initial flags
template<class Primitive >
SFCGAL::detail::CollectionElement< Primitive >::CollectionElement ( const CollectionElement< Primitive > &  other)
inline

Copy constructor.

Parameters
otherThe element to copy from

Member Function Documentation

template<class Primitive >
auto SFCGAL::detail::CollectionElement< Primitive >::flags ( ) const -> int
inline

Get element flags.

Returns
The flags associated with this element
template<class Primitive >
auto SFCGAL::detail::CollectionElement< Primitive >::operator< ( const CollectionElement< Primitive > &  other) const -> bool
inline

Less-than comparison operator.

Parameters
otherThe element to compare with
Returns
True if this element is less than other
template<class Primitive >
auto SFCGAL::detail::CollectionElement< Primitive >::operator= ( const CollectionElement< Primitive > &  other) -> CollectionElement &=default
default

Copy assignment operator.

Parameters
otherThe element to copy from
Returns
Reference to this
template<class Primitive >
auto SFCGAL::detail::CollectionElement< Primitive >::primitive ( ) -> Primitive &
inline

Get mutable reference to primitive.

Returns
Reference to the underlying primitive
template<class Primitive >
auto SFCGAL::detail::CollectionElement< Primitive >::primitive ( ) const -> const Primitive &
inline

Get const reference to primitive.

Returns
Const reference to the underlying primitive
template<class Primitive >
auto SFCGAL::detail::CollectionElement< Primitive >::setFlags ( int  flags) -> void
inline

Set element flags.

Parameters
flagsThe flags to set for this element