listOp< N >::result Class Reference

Result class. More...

Inheritance diagram for listOp< N >::result:
[legend]
Collaboration diagram for listOp< N >::result:
[legend]

Public Member Functions

 result (const FixedList< point, N > &x)
 Construct from a single element. More...
 
result operator+ (const result &x) const
 Add together two lists. More...
 
- Public Member Functions inherited from DynamicList< FixedList< point, N > >
constexpr DynamicList () noexcept
 Default construct, an empty list without allocation. More...
 
 DynamicList (const label len)
 Construct an empty list with given reserve size. More...
 
 DynamicList (const label len, const FixedList< point, N > &val)
 Construct with given size and value for all elements. More...
 
 DynamicList (const label len, const Foam::zero)
 Construct with given size initializing all elements to zero. More...
 
 DynamicList (const DynamicList< FixedList< point, N >, 16 > &lst)
 Copy construct. More...
 
 DynamicList (const DynamicList< FixedList< point, N >, AnySizeMin > &lst)
 Copy construct from DynamicList with different sizing parameters. More...
 
 DynamicList (const UList< FixedList< point, N > > &lst)
 Construct from UList. Size set to UList size. More...
 
 DynamicList (const FixedList< FixedList< point, N >, N > &lst)
 Construct from a FixedList. More...
 
 DynamicList (std::initializer_list< FixedList< point, N > > lst)
 Construct from an initializer list. Size set to list size. More...
 
 DynamicList (const IndirectListBase< FixedList< point, N >, Addr > &lst)
 Construct from IndirectList. Size set to addressing size. More...
 
 DynamicList (DynamicList< FixedList< point, N >, 16 > &&lst)
 Move construct. More...
 
 DynamicList (DynamicList< FixedList< point, N >, AnySizeMin > &&lst)
 Move construct with different sizing parameters. More...
 
 DynamicList (List< FixedList< point, N > > &&lst)
 Move construct from List. More...
 
 DynamicList (SortableList< FixedList< point, N > > &&lst)
 Move construct from SortableList. More...
 
 DynamicList (Istream &is)
 Construct from Istream. Size set to size of list read. More...
 
label capacity () const noexcept
 Size of the underlying storage. More...
 
std::streamsize capacity_bytes () const noexcept
 Number of contiguous bytes of the underlying storage. More...
 
void setCapacity (const label len)
 Alter the size of the underlying storage. More...
 
void setCapacity_nocopy (const label len)
 
void setCapacity_unsafe (const label len) noexcept
 
void reserve (const label len)
 
void reserve_nocopy (const label len)
 
void resize (const label len)
 
void resize (const label len, const FixedList< point, N > &val)
 Alter addressable size and fill new entries with constant value. More...
 
void resize_nocopy (const label len)
 
void setSize (const label n)
 Same as resize() More...
 
void setSize (const label n, const FixedList< point, N > &val)
 Same as resize() More...
 
void clear () noexcept
 Clear the addressed list, i.e. set the size to zero. More...
 
void clearStorage ()
 Clear the list and delete storage. More...
 
label expandStorage () noexcept
 Expand the addressable size to fit the allocated capacity. More...
 
void shrinkStorage ()
 Shrink the allocated space to the number of elements used. More...
 
DynamicList< FixedList< point, N >, 16 > & shrink ()
 Shrink the allocated space to the number of elements used. More...
 
void swap (DynamicList< FixedList< point, N >, AnySizeMin > &other)
 Swap content, independent of sizing parameter. More...
 
void transfer (List< FixedList< point, N > > &list)
 Transfer contents of the argument List into this. More...
 
void transfer (DynamicList< FixedList< point, N >, AnySizeMin > &list)
 Transfer contents of any sized DynamicList into this. More...
 
void transfer (SortableList< FixedList< point, N > > &list)
 Transfer contents of the argument SortableList into this. More...
 
DynamicList< FixedList< point, N >, 16 > & append (const FixedList< point, N > &val)
 Append an element to the end of this list. More...
 
DynamicList< FixedList< point, N >, 16 > & append (FixedList< point, N > &&val)
 Move append an element. More...
 
DynamicList< FixedList< point, N >, 16 > & append (const UList< FixedList< point, N > > &lst)
 Append another list to the end of this list. More...
 
DynamicList< FixedList< point, N >, 16 > & append (const FixedList< FixedList< point, N >, N > &lst)
 Append a FixedList to the end of this list. More...
 
DynamicList< FixedList< point, N >, 16 > & append (std::initializer_list< FixedList< point, N > > lst)
 Append an initializer list at the end of this list. More...
 
DynamicList< FixedList< point, N >, 16 > & append (const IndirectListBase< FixedList< point, N >, Addr > &lst)
 Append a IndirectList at the end of this list. More...
 
DynamicList< FixedList< point, N >, 16 > & append (List< FixedList< point, N > > &&lst)
 Move append list. More...
 
DynamicList< FixedList< point, N >, 16 > & append (DynamicList< FixedList< point, N >, 16 > &&lst)
 Move append list. More...
 
DynamicList< FixedList< point, N >, 16 > & append (DynamicList< FixedList< point, N >, AnySizeMin > &&lst)
 Move append list. More...
 
DynamicList< FixedList< point, N >, 16 > & append (SortableList< FixedList< point, N > > &&lst)
 Move append list. More...
 
Foam::DynamicList< FixedList< point, N >, 16 > & append (const FixedList< FixedList< point, N >, N > &lst)
 
Foam::DynamicList< FixedList< point, N >, 16 > & append (const IndirectListBase< FixedList< point, N >, Addr > &lst)
 
Foam::DynamicList< FixedList< point, N >, 16 > & append (DynamicList< FixedList< point, N >, AnySizeMin > &&lst)
 
label appendUniq (const FixedList< point, N > &val)
 Append an element if not already in the list. More...
 
FixedList< point, Nremove ()
 Remove and return the last element. Fatal on an empty list. More...
 
FixedList< point, Nremove (const label idx, const bool fast=false)
 Remove and return the specified element. Fatal on an empty list. More...
 
label remove (const labelRange &range)
 Remove a (start,size) subset from the list. More...
 
label remove (std::initializer_list< label > start_size)
 Remove a (start,size) subset from the list. More...
 
label subset (const labelRange &range)
 Retain a (start,size) subset from the list. More...
 
label subset (std::initializer_list< label > start_size)
 Retain a (start,size) subset from List. More...
 
FixedList< point, N > & operator() (const label i)
 Return non-const access to an element, resizing list if needed. More...
 
void operator= (const FixedList< point, N > &val)
 Assignment of all addressed entries to the given value. More...
 
void operator= (const Foam::zero)
 Assignment of all entries to zero. More...
 
void operator= (const UList< FixedList< point, N > > &lst)
 Assignment to UList. More...
 
void operator= (const FixedList< FixedList< point, N >, N > &lst)
 Assignment to FixedList. More...
 
void operator= (const DynamicList< FixedList< point, N >, 16 > &lst)
 Assignment to DynamicList. More...
 
void operator= (const DynamicList< FixedList< point, N >, AnySizeMin > &lst)
 Assignment from DynamicList with different sizing parameters. More...
 
void operator= (std::initializer_list< FixedList< point, N > > lst)
 Assignment from initializer list. More...
 
void operator= (const IndirectListBase< FixedList< point, N >, Addr > &lst)
 Assignment from IndirectList. More...
 
void operator= (List< FixedList< point, N > > &&lst)
 Move assignment. More...
 
void operator= (DynamicList< FixedList< point, N >, 16 > &&lst)
 Move assignment. More...
 
void operator= (DynamicList< FixedList< point, N >, AnySizeMin > &&lst)
 Move assignment. More...
 
void operator= (SortableList< FixedList< point, N > > &&lst)
 Move assignment. More...
 
IstreamreadList (Istream &is)
 Read from Istream, discarding existing contents. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from DynamicList< FixedList< point, N > >
static constexpr label min_size () noexcept
 Normal lower capacity limit - the SizeMin template parameter. More...
 

Detailed Description

template<unsigned N>
class Foam::cut::listOp< N >::result

Result class.

Definition at line 324 of file cut.H.

Constructor & Destructor Documentation

◆ result()

result ( const FixedList< point, N > &  x)
inline

Construct from a single element.

Definition at line 333 of file cut.H.

Member Function Documentation

◆ operator+()

result operator+ ( const result x) const
inline

Add together two lists.

Definition at line 342 of file cut.H.

References DynamicList< T, SizeMin >::append(), and x.

Here is the call graph for this function:

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