1 #ifndef YOBAPERL_ARRAY_HPP 2 #define YOBAPERL_ARRAY_HPP 4 #include "yobaperl/common.hpp" 5 #include "yobaperl/variable.hpp" 6 #include "yobaperl/array_iterator.hpp" 39 Array(
Perl & perl, AV * av,
bool increase_refcount);
55 Scalar get(
const SSize_t index)
const;
91 Array & replace(
const SSize_t index,
const Scalar & scalar);
112 Array & push(
const std::vector<Scalar> & scalars);
113 Array & push(
const std::list<Scalar> & scalars);
134 Array & unshift(
const std::vector<Scalar> & scalars);
135 Array & unshift(
const std::list<Scalar> & scalars);
189 bool isEmpty()
const;
197 bool isExists(SSize_t index)
const;
203 Array & reserve(SSize_t size);
213 Array makeCopy()
const;
227 std::string toString()
const;
233 std::vector<Scalar> toVector()
const;
239 std::list<Scalar> toList()
const;
275 Scalar operator[] (
const SSize_t index)
const noexcept;
303 operator bool()
const;
310 void _store(
const int index,
Scalar scalar);
311 void _push(
Scalar scalar);
313 bool _checkIndex(
const SSize_t index)
const;
315 SV ** _getFirstSV()
const;
316 SV ** _getLastSV()
const;
323 #endif // YOBAPERL_ARRAY_HPP
Base class for perl variables.
class ArrayIterator Iterator
Type alias.