xo-reflect: cosmetic: code layout
This commit is contained in:
parent
9db0969733
commit
0fe2b51076
1 changed files with 16 additions and 16 deletions
|
|
@ -10,22 +10,22 @@
|
|||
#include "TaggedRcptr.hpp"
|
||||
|
||||
namespace xo {
|
||||
namespace reflect {
|
||||
/* a self-tagging object uses reflection to preserve type information
|
||||
* until runtime. Can use the reflected information to traverse
|
||||
* object representation (e.g. for printing / serialization)
|
||||
* without repetitive/bulky boilerplate.
|
||||
*
|
||||
* For pybind11 need to have concrete (non-template) apis,
|
||||
* helpful to have various classes inherit SelfTagging
|
||||
*
|
||||
* For example see [printjson/PrintJson.hpp]
|
||||
*/
|
||||
class SelfTagging : public ref::Refcount {
|
||||
public:
|
||||
virtual TaggedRcptr self_tp() = 0;
|
||||
}; /*SelfTagging*/
|
||||
} /*namespace reflect*/
|
||||
namespace reflect {
|
||||
/* a self-tagging object uses reflection to preserve type information
|
||||
* until runtime. Can use the reflected information to traverse
|
||||
* object representation (e.g. for printing / serialization)
|
||||
* without repetitive/bulky boilerplate.
|
||||
*
|
||||
* For pybind11 need to have concrete (non-template) apis,
|
||||
* helpful to have various classes inherit SelfTagging
|
||||
*
|
||||
* For example see [printjson/PrintJson.hpp]
|
||||
*/
|
||||
class SelfTagging : public ref::Refcount {
|
||||
public:
|
||||
virtual TaggedRcptr self_tp() = 0;
|
||||
}; /*SelfTagging*/
|
||||
} /*namespace reflect*/
|
||||
} /*namespace xo*/
|
||||
|
||||
/* end SelfTagging.hpp */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue