classdesc_access.h File Reference

descriptor access to a class's privates More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  classdesc::base_cast< B >
 
struct  classdesc_access::access_pack< T >
 class to allow access to private members More...
 
struct  classdesc_access::access_unpack< T >
 class to allow access to private members More...
 
struct  classdesc_access::access_xml_pack< T >
 
struct  classdesc_access::access_xml_unpack< T >
 
struct  classdesc_access::access_json_pack< T >
 
struct  classdesc_access::access_json_unpack< T >
 
struct  classdesc_access::access_random_init< T >
 

Namespaces

 classdesc
 Contains definitions related to classdesc functionality.
 
 classdesc_access
 Contains access_* structs, and nothing else. These structs are used to gain access to private members.
 

Macros

#define CLASSDESC_ACCESS(type)
 add friend statements for each accessor function More...
 
#define CLASSDESC_ACCESS_TEMPLATE(type)   CLASSDESC_ACCESS(type)
 

Detailed Description

descriptor access to a class's privates

Macro Definition Documentation

◆ CLASSDESC_ACCESS

#define CLASSDESC_ACCESS (   type)
Value:
template <class _CD_ARG_TYPE> friend struct classdesc::base_cast; \
friend struct classdesc_access::access_pack<type>; \
friend struct classdesc_access::access_unpack<type>; \
friend struct classdesc_access::access_xml_pack<type>; \
friend struct classdesc_access::access_xml_unpack<type>; \
friend struct classdesc_access::access_json_pack<type>; \
friend struct classdesc_access::access_json_unpack<type>; \
Definition: classdesc.h:794
Definition: classdesc_access.h:23
Definition: classdesc_access.h:26
class to allow access to private members
Definition: classdesc_access.h:21
Definition: classdesc_access.h:25
class to allow access to private members
Definition: classdesc_access.h:22
Definition: classdesc_access.h:27
Definition: classdesc_access.h:24

add friend statements for each accessor function

This declaration is necessary for classes with private/protected parts and descriptors where -respect_private has not been specified

Parameters
typethe name of the enclosing class