Mirror reflection library 0.5.13

mirror::meta_object_kind< T, CategoryTags > Struct Template Reference

Template meta-function for getting a category tag of a type. More...

#include <mirror/meta_object_tags.hpp>

List of all members.

Public Types

typedef CategoryTag type

Detailed Description

template<class T, class... CategoryTags>
struct mirror::meta_object_kind< T, CategoryTags >

Template meta-function for getting a category tag of a type.

This template meta-function can be used to get the possibly up-cast category tag for a (meta-object) type. The difference between this template and meta_object_category is, that meta_object_category returns the exact meta-object-tag type for a particular meta-object. Sometimes it is however desirable to upcast the tag to a more general meta-object-tag.

This template allows to specify a set of meta-object-tags to one of which the real meta-object tag is up-cast if possible. This is useful for example if there is a template overload for MetaType but we also want it to handle MetaClass, MetaTemplatedType, or other derived meta-objects.

Template Parameters:
Tthe type to be examined for Mirror category tag
CategoryTagsthe pack of category tags to up-cast to if the real category tag is derived from one of those listed in this pack.
See also:
categorize_meta_object
meta_object_category

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

Copyright © 2006-2011 Matus Chochlik, University of Zilina, Zilina, Slovakia.
<matus.chochlik -at- fri.uniza.sk>
<chochlik -at -gmail.com>
Documentation generated on Fri Dec 16 2011 by Doxygen (version 1.7.3).
Important note: Although the 'boostified' version of Mirror uses the Boost C++ libraries Coding Guidelines and is implemented inside of the boost namespace, it IS NOT an officially reviewed and accepted Boost library. Mirror is being developed with the intention to be submitted for review for inclusion to the Boost C++ libraries.