[Click] Calling Private methods of the elements

Bart Braem bart.braem at ua.ac.be
Mon Jul 13 08:04:22 EDT 2009


Dear,

On 08 Jul 2009, at 16:59, Fadjar Tandabawana wrote:

> Since I read the presentation of Userlevel Click Development by Bart
> Braem and Michael Voorhaen, I just wondering how I can call the  
> private
> methods and accessing private member from some elements or I should
> write the specific element derive from the code?
>
> I want to use some methods of the DHCP package and use in my project.
>

You are bounded by C++ to only call public and protected methods and  
access public and protected members, so yes you should write specific  
code.

> The other question.
>
> Is it faster if I use some public methods from another element rather
> than use the normal way using compound?


What do you mean by using compound?

Regards,
Bart Braem
-- 
Bart Braem
PATS research group - IBBT
Dept. of Mathematics and Computer Sciences
University of Antwerp
Campus Middelheim, G3.27
Middelheimlaan 1
B-2020 Antwerpen, Belgium
Phone: +32 (0)3 265.38.82
Fax: +32 (0)3 265.37.77
Web: www.pats.ua.ac.be



More information about the click mailing list