![]() |
DamBreak++ Wave Simulator 0.3
DamBreak++ Simulation Framework
|
List of physical objects under study. More...
#include <Testvs19_ListSectionsFlow.hpp>
Public Types | |
| using | listIter = std::vector<T>::iterator |
| Aliases. | |
| using | clistIter = std::vector<T>::const_iterator |
| using | size_type = std::vector<T>::size_type |
| using | value_type = std::iter_value_t<listIter> |
Public Member Functions | |
| listIter | begin () |
| helpers to iterate (begin to end) | |
| listIter | end () |
| clistIter | cbegin () const |
| clistIter | cend () const |
| void | flush () override final |
| empty the list | |
| void | putInFront (const T aData) override final |
| add element in the fron | |
| void | append (const T aData) override final |
| add an element at the end | |
| void | delFromFront () override final |
| delete elemenmt starting beginning | |
| const T & | getFirst () const override final |
| return first element in the list | |
| T & | getFirst () override final |
| const T & | getLast () const override final |
| return last element in the list | |
| T & | getLast () override final |
| bool | isEmpty () const override final |
| check if list conatains element | |
| size_type | size () const |
| number of elements in the list | |
| void | reserve (size_t aCapacity) noexcept |
| allocate memory to store data | |
| void | shrinkToFit () noexcept |
| shrink list to fit size | |
| bool | isAllSectionsUnitWidth () const noexcept |
| check if all sections are unit width | |
| bool | isAllSectionsFrictionLess () const noexcept |
| check if all sections are frictionless | |
| bool | isAllSectionsFlatBottom () const noexcept |
| check if all sections have flat bottom | |
Private Attributes | |
| std::vector< T > | m_listPhysObj |
Friends | |
| class | ListSectionsIterator< T > |
| friend class ListSectionsIterator | |
List of physical objects under study.
| T | physical object |
| using Testvs19::ListSectionsFlow< T >::clistIter = std::vector<T>::const_iterator |
| using Testvs19::ListSectionsFlow< T >::listIter = std::vector<T>::iterator |
Aliases.
| using Testvs19::ListSectionsFlow< T >::size_type = std::vector<T>::size_type |
| using Testvs19::ListSectionsFlow< T >::value_type = std::iter_value_t<listIter> |
|
inlinefinaloverride |
add an element at the end
| aData | element to sdd |
|
inline |
helpers to iterate (begin to end)
|
inline |
|
inline |
|
inlinefinaloverride |
delete elemenmt starting beginning
|
inline |
|
inlinefinaloverride |
empty the list
|
inlinefinaloverride |
return first element in the list
|
inlinefinaloverride |
|
inlinefinaloverride |
return last element in the list
|
inlinefinaloverride |
|
inlinenoexcept |
check if all sections have flat bottom
|
inlinenoexcept |
check if all sections are frictionless
|
inlinenoexcept |
check if all sections are unit width
|
inlinenodiscardfinaloverride |
check if list conatains element
|
inlinefinaloverride |
add element in the fron
| aData | element to add |
|
inlinenoexcept |
allocate memory to store data
| aCapacity | number element |
|
inlinenoexcept |
shrink list to fit size
|
inline |
number of elements in the list
|
friend |
friend class ListSectionsIterator
|
private |