siplasplas
A library for C++ reflection and introspection
cpp::static_reflection::meta::Class Class Reference

Stores static reflection information of a given class. More...

#include <siplasplas/reflection/static/class.hpp>

Public Types

using class_type = Class_
 
using type = class_type
 
using SourceInfo = SourceInfo_
 Returns the source information of the class. More...
 
using Methods = Methods_
 Returns a list with the information of the public non-static methods of the class. More...
 
using Fields = Fields_
 Returns a list with the information of the public non-static member objects of the class. More...
 
using Constructors = Constructors_
 Returns information about the public constructors of the class. Returns an empty cpp::meta::list<>, constructor information is not currently collected by the reflection parser
 
using Classes = Classes_
 Returns the list of member classes of the class. More...
 
using Enums = Enums_
 Returns the list of member enums of the class. More...
 

Detailed Description

Stores static reflection information of a given class.

Member Typedef Documentation

Returns the list of member classes of the class.

Classes is implemented as an alias to a cpp::meta::list<> instance with the member class types of the class

Returns the list of member enums of the class.

Classes is implemented as an alias to a cpp::meta::list<> instance with the member enumeration types of the class

Returns a list with the information of the public non-static member objects of the class.

Fields is implemented as an alias to a cpp::meta::list<> with one cpp::static_reflection::Field instance for each public non-static member object of the class.

Returns a list with the information of the public non-static methods of the class.

Methods is implemented as an alias to a cpp::meta::list<> with one cpp::static_reflection::Function instance for each public non-static member function of the class.

Returns the source information of the class.

Returns a cpp::static_reflection::meta::SourceInfo instance with the source information of the declaration of the class. This information includes:

  • Class name, e.g. "MyClass". See cpp::static_reflection::SourceInfo::spelling()
  • Full qualified class name, e.g. "MyNamespace::MyClass". See cpp::static_reflection::SourceInfo::fullName()
  • Full path to the file where the class is declared, e.g. "/home/user/myproject/include/MyLib/MyLib.h". See cpp::static_reflection::SourceInfo::file()
  • Line of the file where the class is declared, e.g. 42. See cpp::static_reflection::SourceInfo::line()

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