Classdesc 3.44
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.

Namespaces

namespace  classdesc
 Contains definitions related to classdesc functionality.
namespace  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
#define CLASSDESC_ACCESS_TEMPLATE(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,void>; \
friend struct classdesc_access::access_json_unpack<type,void>; \
Definition classdesc.h:1118
Definition json_pack_epilogue.h:92
Definition json_pack_epilogue.h:104
class to allow access to private members
Definition classdesc_access.h:21
Definition classdesc_access.h:27
class to allow access to private members
Definition classdesc_access.h:22
Definition classdesc_access.h:23
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

◆ CLASSDESC_ACCESS_TEMPLATE

#define CLASSDESC_ACCESS_TEMPLATE ( type)
Value:
#define CLASSDESC_ACCESS(type)
add friend statements for each accessor function
Definition classdesc_access.h:36