xo-reflect: + TypeDescr:: n_child_fixed(), fixed_child_td(i)
This commit is contained in:
parent
ec2591f907
commit
2b9aff3640
9 changed files with 56 additions and 2 deletions
|
|
@ -1,6 +1,7 @@
|
|||
/* @file StructTdx.cpp */
|
||||
|
||||
#include "struct/StructTdx.hpp"
|
||||
#include "TypeDescr.hpp"
|
||||
|
||||
namespace xo {
|
||||
using std::uint32_t;
|
||||
|
|
@ -24,12 +25,23 @@ namespace xo {
|
|||
return TaggedPtr::universal_null();
|
||||
}
|
||||
|
||||
StructMember const & member_info = this->member_v_[i];
|
||||
const StructMember & member_info = this->member_v_[i];
|
||||
|
||||
return member_info.get_member_tp(object);
|
||||
|
||||
} /*get_child*/
|
||||
|
||||
TypeDescr
|
||||
StructTdx::fixed_child_td(uint32_t i ) const
|
||||
{
|
||||
if (i >= this->member_v_.size())
|
||||
return nullptr;
|
||||
|
||||
const StructMember & member_info = this->member_v_[i];
|
||||
|
||||
return member_info.get_member_td();
|
||||
} /*fixed_child_td*/
|
||||
|
||||
std::string const &
|
||||
StructTdx::struct_member_name(uint32_t i) const
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue