1#ifndef art__paperback__carousel__array_hxx_
2#define art__paperback__carousel__array_hxx_
4#include <art/paperback/types.hxx>
5#include <art/paperback/forward.hxx>
7#include <art/paperback/carousel/object-model.hxx>
18 using iterator =
typename deque<Object>::iterator;
30 Array(vector<Object>);
123 operator=(
Array const&);
133 operator==(
Array const&) const;
138 operator!=(
Array const&) const;
size_t size() const
Get the size of the array.
Definition array.cxx:33
bool empty() const
Check if the array is empty.
Definition array.cxx:40
typename deque< Object >::iterator iterator
Iterator type.
Definition array.hxx:18
Object & back()
Get a reference to the last element.
Definition array.cxx:61
const_iterator cbegin() const
Get begin iterator.
Definition array.cxx:89
Object & push_front(Object const &)
Push element to the front of the array.
Definition array.cxx:117
const_iterator cend() const
Get past-the-end iterator.
Definition array.cxx:110
typename deque< Object >::const_iterator const_iterator
Immutable iterator type.
Definition array.hxx:22
iterator begin()
Get begin iterator.
Definition array.cxx:75
Object & front()
Get a reference to the first element.
Definition array.cxx:47
iterator end()
Get past-the-end iterator.
Definition array.cxx:96
Object & push_back(Object const &)
Push element to the back of the array.
Definition array.cxx:131
void attach_children(Object_model::Owner &) override
Attach any children.
Definition array.cxx:196
Array()
Constructor.
Definition array.cxx:9
~Array() noexcept
Destructor.
Definition array.cxx:28
Base class for value types.
Definition object-model.hxx:295
Represents a COS-file object.
Definition object.hxx:16
COS object model namespace.
Definition object-model.cxx:8
COS file format implementation namespace.
Definition array.cxx:6