Chapter 27. Types and RTTI

    FAQ 27.01 What is the purpose of this chapter?

    FAQ 27.02 What is static type checking?

    FAQ 27.03 What is dynamic type checking?

    FAQ 27.04 What is the basic problem with dynamic type checking?

    FAQ 27.05 How can dynamic type checking be avoided?

    FAQ 27.06 Are there better alternatives to dynamic type checking?

    FAQ 27.07 What is a capability query?

    FAQ 27.08 What is an alternative to dynamic type checking with containers?

    FAQ 27.09 Are there cases where dynamic type checking is necessary?

    FAQ 27.10 Given a pointer to an ABC, how can the class of the referent be found?

    FAQ 27.11 What is a downcast?

    FAQ 27.12 What is an alternative to using downcasts?

    FAQ 27.13 Why are downcasts dangerous?

    FAQ 27.14 Should the inheritance graph of C++ hierarchies be tall or short?

    FAQ 27.15 Should the inheritance graph of C++ hierarchies be monolithic or a forest?

    FAQ 27.16 What is Runtime Type Identification (RTTI)?

    FAQ 27.17 What is the purpose of dynamic_cast<T>()?

    FAQ 27.18 Is dynamic_cast<T>() a panacea?

    FAQ 27.19 What does static_cast<T>() do?

    FAQ 27.20 What does typeid() do?

    FAQ 27.21 Are there any hidden costs for type-safe downcasts?



C++ FAQs
C Programming FAQs: Frequently Asked Questions
ISBN: 0201845199
EAN: 2147483647
Year: 2005
Pages: 566
Authors: Steve Summit

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net