QIterable Class

template <typename Container> class QIterable

QIterable은 QSequentialIterableQAssociativeIterable 의 기본 클래스인 템플릿 클래스입니다. 더 보기...

헤더: #include <QIterable>
CMake: find_package(Qt6 REQUIRED COMPONENTS Core)
target_link_libraries(mytarget PRIVATE Qt6::Core)
qmake: QT += core
이후: Qt 6.0
에 의해 상속되었습니다:

QAssociativeIterableQSequentialIterable

공용 함수

bool canForwardIterate() const
bool canInputIterate() const
bool canRandomAccessIterate() const
bool canReverseIterate() const
QConstIterator<Container> constBegin() const
QConstIterator<Container> constEnd() const
QIterator<Container> mutableBegin()
QIterator<Container> mutableEnd()
qsizetype size() const

상세 설명

멤버 함수 문서

bool QIterable::canForwardIterate() const

컨테이너를 정방향으로 반복할 수 있는지 여부를 반환합니다. 이는 이터레이터의 std::forward_iterator_tag 이터레이터 특성과 컨테이너의 const_iterator에 해당합니다.

bool QIterable::canInputIterate() const

컨테이너에 입력 이터레이터가 있는지 여부를 반환합니다. 이는 이터레이터의 std::input_iterator_tag 이터레이터 특성과 컨테이너의 const_iterator에 해당합니다.

bool QIterable::canRandomAccessIterate() const

이터레이터를 사용하여 여러 값을 효율적으로 건너뛸 수 있는지 여부를 반환합니다. 이는 이터레이터의 std::random_access_iterator_tag 이터레이터 특성과 컨테이너의 const_iterator에 해당합니다.

bool QIterable::canReverseIterate() const

컨테이너를 역방향으로 반복할 수 있는지 여부를 반환합니다. 이는 컨테이너의 const_iterator의 std::bidirectional_iterator_tag 이터레이터 형질에 해당합니다.

QConstIterator<Container> QIterable::constBegin() const

컨테이너의 시작 부분에 QConstIterator 을 반환합니다. 이 함수는 stl 스타일 반복에 사용할 수 있습니다.

constEnd() 및 mutableBegin()도 참조하세요 .

QConstIterator<Container> QIterable::constEnd() const

컨테이너의 끝에 대한 Qterable::QConstIterator를 반환합니다. 이것은 stl 스타일 반복에 사용할 수 있습니다.

constBegin() 및 mutableEnd()도 참조하세요 .

QIterator<Container> QIterable::mutableBegin()

컨테이너의 시작 부분에 QIterator 을 반환합니다. 이 함수는 stl 스타일 반복에 사용할 수 있습니다.

mutableEnd() 및 constBegin()도 참조하세요 .

QIterator<Container> QIterable::mutableEnd()

컨테이너의 끝에 QSequentialIterable::iterator 를 반환합니다. 이 함수는 stl 스타일 반복에 사용할 수 있습니다.

mutableBegin() 및 constEnd()도 참조하세요 .

qsizetype QIterable::size() const

컨테이너에 있는 값의 개수를 반환합니다.

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.