81 return extensions_[index];
132 return extensions_.size();
137 assert(new_size <= extensions_.size() && new_size > 0);
138 extensions_.resize(new_size);
143 std::vector<extension_type> extensions_;
152 template <
typename NestedMinorSequenceType>
175 sequence_(other.sequence_)
221 return sequence_.get_extension_width(index);
233 return sequence_.get_extension_height(index);
242 return sequence_.width();
251 return sequence_.height();
260 return sequence_.size();
264 NestedMinorSequenceType& sequence_;
274 template <
typename NestedMinorSequenceType>
276 NestedMinorSequenceType& sequence)
Definition: nested_minor_sequence.hpp:154
void push(nested_minor_sequence::extension_type type)
Definition: nested_minor_sequence.hpp:195
size_t width() const
Definition: nested_minor_sequence.hpp:249
virtual ~nested_minor_sequence_transposed()
Definition: nested_minor_sequence.hpp:184
nested_minor_sequence::extension_type get_extension(size_t index) const
Definition: nested_minor_sequence.hpp:207
size_t height() const
Definition: nested_minor_sequence.hpp:240
nested_minor_sequence_transposed(NestedMinorSequenceType &sequence)
Definition: nested_minor_sequence.hpp:162
size_t get_extension_height(size_t index) const
Definition: nested_minor_sequence.hpp:219
size_t get_extension_width(size_t index) const
Definition: nested_minor_sequence.hpp:231
nested_minor_sequence_transposed(const nested_minor_sequence_transposed< NestedMinorSequenceType > &other)
Definition: nested_minor_sequence.hpp:174
size_t size() const
Definition: nested_minor_sequence.hpp:258
Definition: nested_minor_sequence.hpp:16
static size_t get_extension_height(extension_type type)
Definition: nested_minor_sequence.cpp:32
size_t width() const
Definition: nested_minor_sequence.hpp:121
extension_type get_extension(size_t index) const
Definition: nested_minor_sequence.hpp:79
size_t get_extension_width(size_t index) const
Definition: nested_minor_sequence.hpp:103
nested_minor_sequence()
Definition: nested_minor_sequence.cpp:10
size_t get_extension_height(size_t index) const
Definition: nested_minor_sequence.hpp:91
extension_type
Definition: nested_minor_sequence.hpp:24
@ ONE_ROW_ONE_COLUMN
Definition: nested_minor_sequence.hpp:28
@ ONE_ROW
Definition: nested_minor_sequence.hpp:26
@ TWO_ROWS_ONE_COLUMN
Definition: nested_minor_sequence.hpp:29
@ FIRST_EXTENSION_TYPE
Definition: nested_minor_sequence.hpp:25
@ BEYOND_EXTENSION_TYPE
Definition: nested_minor_sequence.hpp:31
@ ONE_COLUMN
Definition: nested_minor_sequence.hpp:30
@ ONE_ROW_TWO_COLUMNS
Definition: nested_minor_sequence.hpp:27
size_t size() const
Definition: nested_minor_sequence.hpp:130
size_t height() const
Definition: nested_minor_sequence.hpp:112
void resize(size_t new_size)
Definition: nested_minor_sequence.hpp:135
void push(extension_type type)
Definition: nested_minor_sequence.cpp:61
virtual ~nested_minor_sequence()
Definition: nested_minor_sequence.cpp:20
static size_t get_extension_width(extension_type type)
Definition: nested_minor_sequence.cpp:47
Definition: algorithm.hpp:14
nested_minor_sequence_transposed< NestedMinorSequenceType > make_transposed_nested_minor_sequence(NestedMinorSequenceType &sequence)
Definition: nested_minor_sequence.hpp:275