[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

source code, class LinkHead



Hi

I'm starting, reading sources and I found something i don't understand
in class LinkHead

The member link_entry_ isn't initialized by the constructor (and it
contains pointers)

there is one class that inherits form it and it doesn't initialize it 

this member is used only in Node::insertlink() in node.h

--------------------------------------
grep link_entry_ *.{h,cc} */*.{h,cc}

node.h:                LIST_INSERT_HEAD(head, this, link_entry_);
node.h:        LinkHead* nextlinkhead(void) const { return
link_entry_.le_next; }
node.h: LIST_ENTRY(LinkHead) link_entry_;
satroute.cc:    NsObject* link_entry_;
satroute.cc:            link_entry_ = slot_[dst].entry;
satroute.cc:            if (link_entry_ == 0) {
satroute.cc:            link_entry_->recv(p, (Handler *)0);

----------------------------------------
grep insertlink *.{h,cc} */*.{h,cc}

node.h: inline void insertlink(struct linklist_head *head) {
node.cc:                        slhp->insertlink(&linklisthead_);

-----------------------------------------

My question is :
"How is this member initialized ?"