Skip to content

Core::SequenceTree::MatrixIterator

Iterator for traversing sequence tree. More...

#include "Core/Nodes/Tracking.h"

Public Functions

Name
MatrixIterator(Sequence * sequence)
MatrixIterator(Sequence * sequence, Ptr< Node > node)
std::vector< Ptr< Node > >collect()
std::pair< std::vector< Ptr< Node > >, std::vector< TransformInfo > >collectWithInfo()
Sequence *getSequence() const
booloperator!=(const MatrixIterator & rhs) const
Ptr< Node >operator*() const<br>Get current matrix, can be transformation or other node with matrix output.
MatrixIteratoroperator+(int a)
MatrixIterator &operator++()<br>Move iterator to root sequence.
MatrixIteratoroperator++(int )<br>Move iterator to root sequence.
MatrixIterator &operator--()<br>Move iterator towards to the leaf sequence.
MatrixIteratoroperator--(int )<br>Move iterator towards to the leaf sequence.
booloperator==(const MatrixIterator & rhs) const
const TransformInfo &transformInfo() const

Friends

Name
classSequenceTree

Detailed Description

cpp
class Core::SequenceTree::MatrixIterator;
class Core::SequenceTree::MatrixIterator;

Iterator for traversing sequence tree.

Goes from leaf to root, skipping empty sequences.

Public Functions Documentation

function MatrixIterator

cpp
explicit MatrixIterator(
    Sequence * sequence
)
explicit MatrixIterator(
    Sequence * sequence
)

function MatrixIterator

cpp
MatrixIterator(
    Sequence * sequence,
    Ptr< Node > node
)
MatrixIterator(
    Sequence * sequence,
    Ptr< Node > node
)

function collect

cpp
std::vector< Ptr< Node > > collect()
std::vector< Ptr< Node > > collect()

Return: Non-owned pointer to the all matrices from start to the root, note that Ptr<Node> may points to operator with matrix output, not only to transformation.

function collectWithInfo

cpp
std::pair< std::vector< Ptr< Node > >, std::vector< TransformInfo > > collectWithInfo()
std::pair< std::vector< Ptr< Node > >, std::vector< TransformInfo > > collectWithInfo()

function getSequence

cpp
Sequence * getSequence() const
Sequence * getSequence() const

Return: Non-owned pointer to the current sequence. Never null.

function operator!=

cpp
bool operator!=(
    const MatrixIterator & rhs
) const
bool operator!=(
    const MatrixIterator & rhs
) const

function operator*

cpp
Ptr< Node > operator*() const
Ptr< Node > operator*() const

Get current matrix, can be transformation or other node with matrix output.

Warning: You have to extract data from the node by yourself.

function operator+

cpp
MatrixIterator operator+(
    int a
)
MatrixIterator operator+(
    int a
)

function operator++

cpp
MatrixIterator & operator++()
MatrixIterator & operator++()

Move iterator to root sequence.

function operator++

cpp
MatrixIterator operator++(
    int 
)
MatrixIterator operator++(
    int 
)

Move iterator to root sequence.

function operator--

cpp
MatrixIterator & operator--()
MatrixIterator & operator--()

Move iterator towards to the leaf sequence.

function operator--

cpp
MatrixIterator operator--(
    int 
)
MatrixIterator operator--(
    int 
)

Move iterator towards to the leaf sequence.

function operator==

cpp
bool operator==(
    const MatrixIterator & rhs
) const
bool operator==(
    const MatrixIterator & rhs
) const

function transformInfo

cpp
inline const TransformInfo & transformInfo() const
inline const TransformInfo & transformInfo() const

Friends

friend SequenceTree

cpp
friend class SequenceTree(
    SequenceTree 
);
friend class SequenceTree(
    SequenceTree 
);

Updated on 2024-11-06 at 20:16:54 +0000