BitShares-Core  5.0.0
BitShares blockchain implementation and command-line interface software
Public Types | Static Public Member Functions | Static Public Attributes | List of all members
fc::field_reflection< Index, Container, Member, field > Struct Template Reference

A template to store compile-time information about a field in a reflected struct. More...

#include <reflect.hpp>

Public Types

using container = Container
 
using type = Member
 
using reflector = fc::reflector< type >
 

Static Public Member Functions

static typeget (container &c)
 Given a reference to the container type, get a reference to the field. More...
 
static const typeget (const container &c)
 
static const char * get_name ()
 Get the name of the field. More...
 

Static Public Attributes

static constexpr std::size_t index = Index
 
static constexpr bool is_derived = false
 
static constexpr type container::* pointer = field
 

Detailed Description

template<std::size_t Index, typename Container, typename Member, Member Container::* field>
struct fc::field_reflection< Index, Container, Member, field >

A template to store compile-time information about a field in a reflected struct.

Template Parameters
ContainerThe type of the struct or class containing the field
MemberThe type of the field
fieldA pointer-to-member for the reflected field

Definition at line 41 of file reflect.hpp.

Member Typedef Documentation

template<std::size_t Index, typename Container , typename Member , Member Container::* field>
using fc::field_reflection< Index, Container, Member, field >::container = Container

Definition at line 42 of file reflect.hpp.

template<std::size_t Index, typename Container , typename Member , Member Container::* field>
using fc::field_reflection< Index, Container, Member, field >::reflector = fc::reflector<type>

Definition at line 44 of file reflect.hpp.

template<std::size_t Index, typename Container , typename Member , Member Container::* field>
using fc::field_reflection< Index, Container, Member, field >::type = Member

Definition at line 43 of file reflect.hpp.

Member Function Documentation

template<std::size_t Index, typename Container , typename Member , Member Container::* field>
static type& fc::field_reflection< Index, Container, Member, field >::get ( container c)
inlinestatic

Given a reference to the container type, get a reference to the field.

Definition at line 50 of file reflect.hpp.

template<std::size_t Index, typename Container , typename Member , Member Container::* field>
static const type& fc::field_reflection< Index, Container, Member, field >::get ( const container c)
inlinestatic

Definition at line 51 of file reflect.hpp.

template<std::size_t Index, typename Container , typename Member , Member Container::* field>
static const char* fc::field_reflection< Index, Container, Member, field >::get_name ( )
inlinestatic

Get the name of the field.

Definition at line 53 of file reflect.hpp.

Member Data Documentation

template<std::size_t Index, typename Container , typename Member , Member Container::* field>
constexpr std::size_t fc::field_reflection< Index, Container, Member, field >::index = Index
static

Definition at line 45 of file reflect.hpp.

template<std::size_t Index, typename Container , typename Member , Member Container::* field>
constexpr bool fc::field_reflection< Index, Container, Member, field >::is_derived = false
static

Definition at line 46 of file reflect.hpp.

template<std::size_t Index, typename Container , typename Member , Member Container::* field>
constexpr type container::* fc::field_reflection< Index, Container, Member, field >::pointer = field
static

Definition at line 47 of file reflect.hpp.


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