xo-object: cosmetic: formatting
This commit is contained in:
parent
670f5d3d91
commit
9be54387c2
2 changed files with 9 additions and 4 deletions
|
|
@ -24,7 +24,7 @@ namespace xo {
|
|||
* ObjectConversion<int16_t>
|
||||
* in object/Integer.hpp
|
||||
**/
|
||||
}
|
||||
}
|
||||
} /*namespace obj*/
|
||||
} /*namespace xo*/
|
||||
|
||||
/* end ObjectConversion.hpp */
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
namespace xo {
|
||||
namespace obj {
|
||||
/* Convert between xo::reflect::TaggedPtr and xo::Object for
|
||||
* a particular wrapped c++ type
|
||||
* a particular wrapped c++ type.
|
||||
*/
|
||||
struct Converter {
|
||||
using TaggedPtr = xo::reflect::TaggedPtr;
|
||||
|
|
@ -22,7 +22,9 @@ namespace xo {
|
|||
|
||||
public:
|
||||
Converter() = default;
|
||||
explicit Converter(ConvertToObjectFn to, ConvertFromObjectFn from) : cvt_to_object_{to}, cvt_from_object_{from} {}
|
||||
explicit Converter(ConvertToObjectFn to,
|
||||
ConvertFromObjectFn from)
|
||||
: cvt_to_object_{to}, cvt_from_object_{from} {}
|
||||
|
||||
/** convert tagged pointer @p tp to new object,
|
||||
* allocated via @p mm.
|
||||
|
|
@ -58,6 +60,9 @@ namespace xo {
|
|||
* // cvt is a converter for T instances
|
||||
* gp<Object> obj = (*(cvt->cvt_to_object_))(mm,
|
||||
* @endcode
|
||||
*
|
||||
* ObjectConverter converts at run-time
|
||||
* @see ObjectConversion for compile-time conversion
|
||||
**/
|
||||
class ObjectConverter {
|
||||
public:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue