4 * Copyright (c) Freescale Semiconductor, Inc. All rights reserved.
5 * See included license file for license details.
10 using namespace elftosb;
12 //! The operation object takes ownership of \a source.
14 //! Cross references between the target and source are updated.
15 void LoadOperation::setSource(DataSource * source)
21 m_target->setSource(m_source);
25 m_source->setTarget(m_target);
29 //! The operation object takes ownership of \a target.
31 //! Cross references between the target and source are updated.
32 void LoadOperation::setTarget(DataTarget * target)
38 m_target->setSource(m_source);
42 m_source->setTarget(m_target);
46 //! Disposes of operations objects in the sequence.
47 OperationSequence::~OperationSequence()
49 // iterator_t it = begin();
50 // for (; it != end(); ++it)
56 void OperationSequence::append(const OperationSequence * other)
58 const_iterator_t it = other->begin();
59 for (; it != other->end(); ++it)
61 m_operations.push_back(*it);