|
| | Cell ()=default |
| | Cell (const std::size_t aReserve) |
| | Cell (const std::size_t aSize, const T aInitializationValue) |
| | Cell (const std::initializer_list< T > &aInitList) |
| | Cell (const Cell< T > &other) |
| | Cell (Cell< T > &&other) noexcept |
| Cell< T > & | operator= (const Cell< T > &other) |
| Cell< T > & | operator= (Cell< T > &&other) noexcept |
| | ~Cell ()=default |
| T * | data () |
| const T * | data () const |
| std::vector< T > & | vector_data () |
| const std::vector< T > & | vector_data () const |
| auto | operator() (size_t aIndex) -> decltype(mCell[aIndex]) |
| auto | operator() (size_t aIndex) const -> decltype(mCell[aIndex]) |
| size_t | size () const |
| | return the size of the Cell
|
| void | set_size (const size_t aSize) |
| void | set_size (const size_t aSize, const T &aValue) |
| auto | begin () -> decltype(mCell.begin()) |
| auto | end () -> decltype(mCell.end()) |
| auto | begin () const -> decltype(mCell.begin()) |
| auto | end () const -> decltype(mCell.end()) |
| void | clear () |
| | clear the memory
|
| void | reserve (const size_t aSize) |
| | reserve memory
|
| void | push (const T &aValue) |
| | push an entry to the end of the cell (copy version)
|
| void | push (T &&aValue) |
| | push an entry to the end of the cell (move version)
|
| template<typename... Args> |
| void | emplace (Args &&... args) |
| | emplace an entry at the end (construct in-place)
|
| T | pop () |
| | pop an entry from the Cell
|
| void | shrink_to_fit () |
| | free unused memory
|
| T & | first () |
| const T & | first () const |
| T & | last () |
| const T & | last () const |
| void | swap (Cell< T > &other) noexcept |
| | Swap contents with another Cell.
|
| bool | empty () const |
| | Check if Cell is empty.
|
| size_t | capacity () const |
| | Get capacity.
|
| auto | insert (typename std::vector< T >::const_iterator pos, const T &valuevalue) -> decltype(mCell.insert(pos, valuevalue)) |
| | Insert element at position (copy version).
|
| auto | insert (typename std::vector< T >::const_iterator pos, T &&valuevalue) -> decltype(mCell.insert(pos, std::move(valuevalue))) |
| | Insert element at position (move version).
|
| auto | erase (typename std::vector< T >::const_iterator pos) -> decltype(mCell.erase(pos)) |
| | Erase element at position.
|
| auto | erase (typename std::vector< T >::const_iterator first, typename std::vector< T >::const_iterator last) -> decltype(mCell.erase(first, last)) |
| | Erase range of elements.
|
| void | print (const std::string aLabel="") const |
| void | print (const std::string aLabel) const |
template<typename T>
class belfem::Cell< T >
Cell is a wrapper around the standard vector.
It also supports sorting and unique making of entries.
- See also
- BELFEM Container Classes - Usage Guide