How query runtime object for its functions?

This is a discussion on How query runtime object for its functions? within the C++ Programming forums, part of the General Programming Boards category; Is there a way at runtime to discover what functions an object's class has? (This is for debugging)...

  1. #1
    Registered User
    Join Date
    Nov 2006
    Posts
    184

    How query runtime object for its functions?

    Is there a way at runtime to discover what functions an object's class has? (This is for debugging)

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    23,630
    No as (standard) C++ does not have a reflection mechanism.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    Banned
    Join Date
    May 2008
    Location
    Four Dots Planet
    Posts
    72
    Quote Originally Posted by 6tr6tr View Post
    Is there a way at runtime to discover what functions an object's class has? (This is for debugging)
    not exactly i think but then what is the rtti is for it should give you enough info try it

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 7
    Last Post: 11-17-2008, 12:00 PM
  2. How properly inherit from template?
    By 6tr6tr in forum C++ Programming
    Replies: 118
    Last Post: 04-25-2008, 04:30 AM
  3. Object destroy itself?
    By cminusminus in forum C++ Programming
    Replies: 28
    Last Post: 03-27-2008, 01:08 AM
  4. using this as synchronization object
    By George2 in forum C# Programming
    Replies: 0
    Last Post: 03-22-2008, 07:49 AM
  5. Object Arrays to Functions
    By Ulysses in forum C++ Programming
    Replies: 4
    Last Post: 07-30-2002, 05:19 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21