Update of /cvsroot/csp/APPLICATIONS/SimData/Include/SimData
In directory sc8-pr-cvs1:/tmp/cvs-serv3612/Include/SimData
Modified Files:
Tag: b0_4_0
Composite.h
Log Message:
Index: Composite.h
===================================================================
RCS file: /cvsroot/csp/APPLICATIONS/SimData/Include/SimData/Attic/Composite.h,v
retrieving revision 1.1.2.3
retrieving revision 1.1.2.4
diff -C2 -d -r1.1.2.3 -r1.1.2.4
*** Composite.h 6 Sep 2003 08:52:06 -0000 1.1.2.3
--- Composite.h 7 Sep 2003 22:25:05 -0000 1.1.2.4
***************
*** 82,86 ****
TRAVERSE_NONE, //< Act on only the current node.
TRAVERSE_CHILDREN, //< Act on the current node and all children
! TRAVERSE_PARENTS, //< Act on the current node and all parents
} TraversalMode;
--- 82,86 ----
TRAVERSE_NONE, //< Act on only the current node.
TRAVERSE_CHILDREN, //< Act on the current node and all children
! TRAVERSE_PARENTS //< Act on the current node and all parents
} TraversalMode;
***************
*** 275,280 ****
* otherwise.
*/
! virtual bool removeChild(int pos, int count=1) {
! if (pos >= _children.size() || count <= 0) return false;
unsigned int end = pos + count;
if (end > _children.size()) {
--- 275,280 ----
* otherwise.
*/
! virtual bool removeChild(unsigned int pos, unsigned int count=1) {
! if (pos >= _children.size() || count == 0) return false;
unsigned int end = pos + count;
if (end > _children.size()) {
***************
*** 345,349 ****
*/
inline unsigned int getChildIndex(Node const *node) const {
! for (int idx = 0; idx < _children.size(); ++idx) {
if (_children[idx] == node) return idx;
}
--- 345,349 ----
*/
inline unsigned int getChildIndex(Node const *node) const {
! for (unsigned int idx = 0; idx < _children.size(); ++idx) {
if (_children[idx] == node) return idx;
}
|