xo-reflect: bugfix: missing PointerTdx.n_child_fixed()

This commit is contained in:
Roland Conybeare 2024-09-14 14:40:04 -05:00
commit 41f5ee3f88
2 changed files with 8 additions and 0 deletions

View file

@ -25,3 +25,5 @@ add_subdirectory(utest)
# provide find_package() support
xo_export_cmake_config(${PROJECT_NAME} ${PROJECT_VERSION} ${PROJECT_NAME}Targets)
# end CMakeLists.txt

View file

@ -23,6 +23,12 @@ namespace xo {
virtual Metatype metatype() const override { return Metatype::mt_pointer; }
virtual uint32_t n_child(void * object) const override = 0;
/* number of children unknown at compile time.
* null-pointer -> 0, non-null pointer -> 1
*/
virtual uint32_t n_child_fixed() const override { return 0; /*unknown*/ }
virtual TaggedPtr child_tp(uint32_t i, void * object) const override = 0;
/* (forbidden) */
virtual std::string const & struct_member_name(uint32_t i) const override;