Classes | Public Types | Public Member Functions | Public Attributes | Friends | List of all members
XTypeHolder< ArgTypes > Struct Template Reference

#include <xlistnode.h>

Classes

struct  Creator
 

Public Types

using creator_t = std::function< shared_ptr< XNode >(const char *, bool, ArgTypes &&...)>
 

Public Member Functions

creator_t creator (const XString &tp)
 

Public Attributes

std::deque< creator_t > creators
 
std::deque< XStringnames
 
std::deque< XStringlabels
 

Friends

template<class tChild >
struct Creator
 

Detailed Description

template<class... ArgTypes>
struct XTypeHolder< ArgTypes >

Register typename and constructor. make static member of TypeHolder<> in your class After def. of static TypeHolder<>, define Creator to register. call creator(type)(type, name, ...) to create children.

Definition at line 119 of file xlistnode.h.


The documentation for this struct was generated from the following file:

Generated for KAME4 by  doxygen 1.8.3