const DynamicAny& DynamicAny::operator [] (const std::string& name) const { const DynamicAnyHolderImpl<DynamicStruct>* pHolder = dynamic_cast<const DynamicAnyHolderImpl<DynamicStruct>* >(_pHolder); if (pHolder) return pHolder->operator[](name); else throw BadCastException(); }
False::False(Element_* element, SourceLocation const& location) : Element(dynamic_cast<False_*>(element), location) { if (0 == ElementHandle()) { throw BadCastException(); } }
False::False(std::shared_ptr<Element_> element, SourceLocation const& location) : Element(False_::Instance(), location) { if (0 == ElementHandle()) { throw BadCastException(); } }
Number::Number(std::shared_ptr<Element_> impl, SourceLocation const& location) : Element(impl, location) { SetFullyConstructed(true); if (0 == ElementHandle()) { throw BadCastException(); } }