ActiveLib
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
active::geometry::PolyVector Class Reference

A vector of polygons. More...

#include <Polygon.h>

Inheritance diagram for active::geometry::PolyVector:
Inheritance graph
[legend]
Collaboration diagram for active::geometry::PolyVector:
Collaboration graph
[legend]

Public Types

using base = container::Vector<Polygon>
 Base storage class for Polygon.
 
using size_type = typename base::size_type
 Size type for indexing etc.
 
using Unique = std::unique_ptr<PolyVector>
 Unique pointer.
 
using Shared = std::shared_ptr<PolyVector>
 Shared pointer.
 
using Option = std::optional<PolyVector>
 Optional.
 
- Public Types inherited from active::container::Vector< Polygon >
using base
 Base container type.
 
using value_type
 Stored type.
 
using size_type
 Container size (index) type.
 
using iterator
 Container iterator type.
 
using const_iterator
 Container const iterator type.
 

Public Member Functions

 PolyVector (size_type toReserve=0)
 
 PolyVector (const PolyVector &source)
 
virtual ~PolyVector ()=default
 
const_iterator findLargest () const
 
iterator findLargest ()
 
- Public Member Functions inherited from active::container::Vector< Polygon >
 Vector (size_type toReserve=0)
 
 Vector (const std::initializer_list< Derived > &items)
 
 Vector (const Vector &source)
 
 Vector (Vector &&source)
 
virtual ~Vector ()=default
 
auto operator= (const Vector &source)
 
auto operator= (Vector &&source)
 
void push_back (Polygon *item)
 
void emplace_back (Polygon &&item)
 
void emplace_back (const Polygon &item)
 
void emplace_back (value_type &&item)
 
void emplace_back (value_type &item)
 
auto insert (const_iterator pos, Polygon *item)
 
auto emplace (const_iterator pos, Polygon &&item)
 
auto emplace (const_iterator pos, value_type &item)
 
auto release (iterator &pos)
 
auto release (const_iterator pos)
 

Detailed Description

A vector of polygons.

Constructor & Destructor Documentation

◆ PolyVector() [1/2]

active::geometry::PolyVector::PolyVector ( size_type toReserve = 0)
inline

Constructor

Parameters
toReserveThe number of polygons to reserve space for

◆ PolyVector() [2/2]

active::geometry::PolyVector::PolyVector ( const PolyVector & source)
inline

Copy constructor

Parameters
sourceThe object to copy

◆ ~PolyVector()

virtual active::geometry::PolyVector::~PolyVector ( )
virtualdefault

Destructor

Member Function Documentation

◆ findLargest() [1/2]

PolyVector::iterator PolyVector::findLargest ( )

Find the largest polygon in the list

Returns
An iterator at the largest polygon (end() on failure)

◆ findLargest() [2/2]

PolyVector::const_iterator PolyVector::findLargest ( ) const

Find the largest polygon in the list

Returns
An iterator at the largest polygon (end() on failure)
Here is the call graph for this function:
Here is the caller graph for this function:

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