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

A list of polygons. More...

#include <Polygon.h>

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

Public Types

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

Public Member Functions

 PolyList ()
 
 PolyList (const PolyList &source)
 
virtual ~PolyList ()=default
 
const_iterator findLargest () const
 
iterator findLargest ()
 
- Public Member Functions inherited from active::container::List< Polygon >
 List ()
 
 List (const std::initializer_list< Derived > &items)
 
 List (const List &source)
 
 List (List &&source)
 
virtual ~List ()=default
 
auto operator= (const List &source)
 
auto operator= (List &&source)
 
void push_back (Polygon *item)
 
void push_back (Polygon &item)
 
void emplace_back (Polygon &&item)
 
void emplace_back (const Polygon &item)
 
void emplace_back (value_t &&item)
 
void emplace_back (value_t &item)
 
void push_front (Polygon *item)
 
void emplace_front (Polygon &&item)
 
void emplace_front (value_t &&item)
 
auto release (iterator &pos)
 

Detailed Description

A list of polygons.

Constructor & Destructor Documentation

◆ PolyList() [1/2]

active::geometry::PolyList::PolyList ( )
inline

Constructor

◆ PolyList() [2/2]

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

Copy constructor

Parameters
sourceThe object to copy

◆ ~PolyList()

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

Destructor

Member Function Documentation

◆ findLargest() [1/2]

PolyList::iterator PolyList::findLargest ( )

Find the largest polygon in the list

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

◆ findLargest() [2/2]

PolyList::const_iterator PolyList::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: