로딩중...
검색중...
일치하는것 없음
by::adam 클래스 참조

Root base class for the type hierarchy 더 자세히 ...

#include <adam.hpp>

상세한 설명

Root base class for the type hierarchy

Meta types in the type class hierarchy that have no parent class are difficult to handle generically. For example, to write a function that operates on all meta types, you would need a way to iterate over all of them.

To solve this, when constructing meta information, any class without a parent class is assigned adam as its parent. This allows accessing all types through adam.

Usage

Example of iterating over all types:

// Without adam, how would you get all types?
// You'd have to manually collect them:
ret.push_back(ttype<A>());
ret.push_back(ttype<B>());
// ... exhaustively list all types
return ret;
}
// With adam, you can simply iterate:
for(const auto& t : ttype<adam>().getSubs())
cout << t.getName() << "\n";
Root base class for the type hierarchy
Definition adam.hpp:34
Template type wrapper providing entry point for meta information
Definition ttype.hpp:37
Rich logging support with polymorphic type conversion
Definition richLog.hpp:34

이 클래스에 대한 문서화 페이지는 다음의 파일로부터 생성되었습니다.: