[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Pandora] What is the supossed way to locate a Component in the same
From: |
uaca |
Subject: |
Re: [Pandora] What is the supossed way to locate a Component in the same stack??? |
Date: |
Sun, 21 Sep 2003 20:59:43 +0200 |
User-agent: |
Mutt/1.3.28i |
Hi again Simon
> Anyway if you need a "quick and dirty" fix you may consider
> StackDesc::store (each component holds a reference to its StackDesc in
> Component::compStack). The (private, again :)) "store" holds the
> references to all current components indexed by their position in the
> stack defintion (e.g. the first component will have index #0). You can
> then pick any pointer in there.
you mean something like this?
(gdb) print compStack->store
$2 = (CompRefStore *) 0x84bcc80
(gdb) print compStack->store->store
$3 = (class Set<Component *> *) 0x84180a8
(gdb) print compStack->store->store->_array
$4 = (class Component **) 0x8419938
(gdb) print compStack->store->store->_array[0]
$5 = (Component *) 0x0 <--- what happens here?
(gdb) print compStack->store->store->_array[1]
$6 = (Component *) 0x0 <--- and here?
this printing has been done after Component initialization, in the :add
method (in the constructor compStack is NULL)
Any comment?
Ulisses
Debian GNU/Linux: a dream come true
-----------------------------------------------------------------------------
"Computers are useless. They can only give answers." Pablo Picasso
---> Visita http://www.valux.org/ para saber acerca de la <---
---> AsociaciĆ³n Valenciana de Usuarios de Linux <---