Gecode::Instance::Seq< T > Class Template Reference
Growable array on the Gecode heap. More...
#include <gecode/instance/impl.hpp>
Public Member Functions | |
| Seq (void) | |
| Empty array. | |
| Seq (const Seq &s) | |
| Copy elements of s. | |
| Seq (Seq &&s) noexcept | |
| Take elements of s. | |
| Seq & | operator= (Seq s) noexcept |
| Assign elements of s. | |
| ~Seq (void) | |
| Release memory. | |
| int | size (void) const |
| Return number of elements. | |
| bool | empty (void) const |
| Test whether empty. | |
| void | reserve (int m) |
| Make room for m elements. | |
| void | push (const T &v) |
| Append a copy of v. | |
| void | push (T &&v) |
| Append v. | |
| void | pop (void) |
| Remove last element. | |
| void | clear (void) |
| Remove all elements. | |
| T & | operator[] (int i) |
| Return element i. | |
| const T & | operator[] (int i) const |
| Return element i. | |
| T & | back (void) |
| Return last element. | |
| const T & | back (void) const |
| Return last element. | |
| T * | begin (void) |
| Iteration support. | |
| T * | end (void) |
| Iteration support. | |
| const T * | begin (void) const |
| Iteration support. | |
| const T * | end (void) const |
| Iteration support. | |
Detailed Description
template<class T>
class Gecode::Instance::Seq< T >
class Gecode::Instance::Seq< T >
Growable array on the Gecode heap.
Supports move-only element types. Elements are moved when the array grows.
Constructor & Destructor Documentation
◆ Seq() [1/3]
template<class T>
|
inline |
◆ Seq() [2/3]
template<class T>
|
inline |
◆ Seq() [3/3]
template<class T>
|
inlinenoexcept |
◆ ~Seq()
template<class T>
|
inline |
Member Function Documentation
◆ operator=()
template<class T>
|
inlinenoexcept |
◆ size()
template<class T>
|
inline |
◆ empty()
template<class T>
|
inline |
◆ reserve()
template<class T>
|
inline |
◆ push() [1/2]
template<class T>
|
inline |
◆ push() [2/2]
template<class T>
|
inline |
◆ pop()
template<class T>
|
inline |
◆ clear()
template<class T>
|
inline |
◆ operator[]() [1/2]
template<class T>
|
inline |
◆ operator[]() [2/2]
template<class T>
|
inline |
◆ back() [1/2]
template<class T>
|
inline |
◆ back() [2/2]
template<class T>
|
inline |
◆ begin() [1/2]
template<class T>
|
inline |
◆ end() [1/2]
template<class T>
|
inline |
◆ begin() [2/2]
template<class T>
|
inline |
◆ end() [2/2]
template<class T>
|
inline |
The documentation for this class was generated from the following file:
- gecode/instance/impl.hpp
