libart-paperback 0.1.0-a.1.20260122225059.e5fea306241a
PDF (1.4) library for C++
Art::Paperback::Carousel::Array Class Reference
Inheritance diagram for Art::Paperback::Carousel::Array:

Public Types

using iterator = typename deque<Object>::iterator
 Iterator type.
 
using const_iterator = typename deque<Object>::const_iterator
 Immutable iterator type.
 

Public Member Functions

 Array ()
 Constructor.
 
 Array (vector< Object >)
 Constructor.
 
 Array (Array const &)
 Constructor.
 
 Array (Array &&)
 Constructor.
 
 ~Array () noexcept
 Destructor.
 
size_t size () const
 Get the size of the array.
 
bool empty () const
 Check if the array is empty.
 
Objectfront ()
 Get a reference to the first element.
 
Object const & front () const
 Get a reference to the first element.
 
Objectback ()
 Get a reference to the last element.
 
Object const & back () const
 Get a reference to the last element.
 
iterator begin ()
 Get begin iterator.
 
const_iterator begin () const
 Get begin iterator.
 
const_iterator cbegin () const
 Get begin iterator.
 
iterator end ()
 Get past-the-end iterator.
 
const_iterator end () const
 Get past-the-end iterator.
 
const_iterator cend () const
 Get past-the-end iterator.
 
Objectpush_front (Object const &)
 Push element to the front of the array.
 
Objectpush_back (Object const &)
 Push element to the back of the array.
 
void pop_front ()
 
void pop_back ()
 
Arrayoperator= (Array const &)
 Assignment.
 
Arrayoperator= (Array &&)
 Assignment.
 
bool operator== (Array const &) const
 Comparison.
 
bool operator!= (Array const &) const
 Comparison.
 
void attach (Owner &)
 Attach value to owner.
 
Owner * owner ()
 Access owner, if any.
 
Owner const * owner () const
 Access owner, if any.
 

Protected Member Functions

void attach_children (Object_model::Owner &) override
 Attach any children.
 

Private Attributes

deque< Object_data
 
Owner * _owner {}
 

Member Typedef Documentation

◆ iterator

using Art::Paperback::Carousel::Array::iterator = typename deque<Object>::iterator

Iterator type.

◆ const_iterator

using Art::Paperback::Carousel::Array::const_iterator = typename deque<Object>::const_iterator

Immutable iterator type.

Constructor & Destructor Documentation

◆ Array() [1/4]

Art::Paperback::Carousel::Array::Array ( )

Constructor.

◆ Array() [2/4]

Art::Paperback::Carousel::Array::Array ( vector< Object > init)

Constructor.

◆ Array() [3/4]

Art::Paperback::Carousel::Array::Array ( Array const & other)

Constructor.

◆ Array() [4/4]

Art::Paperback::Carousel::Array::Array ( Array && other)

Constructor.

◆ ~Array()

Art::Paperback::Carousel::Array::~Array ( )
noexcept

Destructor.

Member Function Documentation

◆ size()

size_t Art::Paperback::Carousel::Array::size ( ) const

Get the size of the array.

◆ empty()

bool Art::Paperback::Carousel::Array::empty ( ) const

Check if the array is empty.

◆ front() [1/2]

Object & Art::Paperback::Carousel::Array::front ( )

Get a reference to the first element.

◆ front() [2/2]

Object const & Art::Paperback::Carousel::Array::front ( ) const

Get a reference to the first element.

◆ back() [1/2]

Object & Art::Paperback::Carousel::Array::back ( )

Get a reference to the last element.

◆ back() [2/2]

Object const & Art::Paperback::Carousel::Array::back ( ) const

Get a reference to the last element.

◆ begin() [1/2]

Array::iterator Art::Paperback::Carousel::Array::begin ( )

Get begin iterator.

◆ begin() [2/2]

Array::const_iterator Art::Paperback::Carousel::Array::begin ( ) const

Get begin iterator.

◆ cbegin()

Array::const_iterator Art::Paperback::Carousel::Array::cbegin ( ) const

Get begin iterator.

◆ end() [1/2]

Array::iterator Art::Paperback::Carousel::Array::end ( )

Get past-the-end iterator.

◆ end() [2/2]

Array::const_iterator Art::Paperback::Carousel::Array::end ( ) const

Get past-the-end iterator.

◆ cend()

Array::const_iterator Art::Paperback::Carousel::Array::cend ( ) const

Get past-the-end iterator.

◆ push_front()

Object & Art::Paperback::Carousel::Array::push_front ( Object const & object)

Push element to the front of the array.

◆ push_back()

Object & Art::Paperback::Carousel::Array::push_back ( Object const & object)

Push element to the back of the array.

◆ operator=() [1/2]

Array & Art::Paperback::Carousel::Array::operator= ( Array const & other)

Assignment.

◆ operator=() [2/2]

Array & Art::Paperback::Carousel::Array::operator= ( Array && other)

Assignment.

◆ operator==()

bool Art::Paperback::Carousel::Array::operator== ( Array const & other) const

Comparison.

◆ operator!=()

bool Art::Paperback::Carousel::Array::operator!= ( Array const & other) const

Comparison.

◆ attach_children()

void Art::Paperback::Carousel::Array::attach_children ( Object_model::Owner & owner)
overrideprotectedvirtual

Attach any children.

Parameters
ownerThe owner of the children.

Reimplemented from Art::Paperback::Carousel::Object_model::Value_base.

◆ attach()

void Art::Paperback::Carousel::Object_model::Value_base::attach ( Owner & owner)
inherited

Attach value to owner.

Parameters
ownerReference to the owner.

◆ owner() [1/2]

Owner * Art::Paperback::Carousel::Object_model::Value_base::owner ( )
inherited

Access owner, if any.

Returns
Returns a pointer to the owner, if attached.

◆ owner() [2/2]

Owner const * Art::Paperback::Carousel::Object_model::Value_base::owner ( ) const
inherited

Access owner, if any.

Returns
Returns a pointer to the owner, if attached.