xo-reader2: parse list types + utest
This commit is contained in:
parent
59419456a0
commit
184fed0ccd
22 changed files with 800 additions and 37 deletions
|
|
@ -32,9 +32,12 @@ namespace xo {
|
|||
|
||||
explicit DListType(obj<AType> elt);
|
||||
|
||||
/** create instance using memory from @p mm with metatype @p mtype **/
|
||||
/** create instance using memory from @p mm with element type @p elt_type **/
|
||||
static DListType * _make(obj<AAllocator> mm,
|
||||
obj<AType> elt_type);
|
||||
/** create fop to new instance using memory from @p mm with element type @p elt_type **/
|
||||
static obj<AType,DListType> make(obj<AAllocator> mm,
|
||||
obj<AType> elt_type);
|
||||
|
||||
///@}
|
||||
/** @defgroup xo-scm-listtype-type-facet **/
|
||||
|
|
|
|||
|
|
@ -31,6 +31,13 @@ namespace xo {
|
|||
return new (mem) DListType(elt_type);
|
||||
}
|
||||
|
||||
obj<AType, DListType>
|
||||
DListType::make(obj<AAllocator> mm,
|
||||
obj<AType> elt_type)
|
||||
{
|
||||
return obj<AType, DListType>(_make(mm, elt_type));
|
||||
}
|
||||
|
||||
// ----- type facet -----
|
||||
|
||||
TypeDescr
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue