xo-umbrella2/xo-hashable2/include/xo/hashable2/detail/AHashable.hpp

74 lines
1.9 KiB
C++

/** @file AHashable.hpp
*
* Generated automagically from ingredients:
* 1. code generator:
* [xo-facet/codegen/genfacet]
* arguments:
* --input [idl/Hashable.json5]
* 2. jinja2 template for abstract facet .hpp file:
* [abstract_facet.hpp.j2]
* 3. idl for facet methods
* [idl/Hashable.json5]
**/
#pragma once
// includes (via {facet_includes})
#include <xo/facet/top/ATop.hpp>
#include <xo/facet/obj.hpp>
#include <xo/facet/facet_implementation.hpp>
#include <xo/facet/typeseq.hpp>
namespace xo {
namespace hashable {
using Copaque = const void *;
using Opaque = void *;
/**
Trait for data types that can supply a hash of their contents.
PLACEHOLDER: the facet is not designed yet -- const_methods below is
deliberately empty, so AHashable presently has no methods. The
subsystem is scaffolded and builds so that `xo-build --all` covers
every entry in xo-cmake/etc/xo/subsystem-list.
**/
class AHashable : public xo::facet::ATop {
public:
/** @defgroup hashable-hashable-type-traits **/
///@{
// types
/** integer identifying a type **/
using typeseq = xo::facet::typeseq;
using Copaque = const void *;
using Opaque = void *;
/** **/
using obj_AHashable = xo::facet::obj<AHashable>;
///@}
/** @defgroup hashable-hashable-methods **/
///@{
// const methods
/* _has_null_vptr(), _typeseq(), _drop(): inherited from xo::facet::ATop */
// nonconst methods
///@}
}; /*AHashable*/
/** Implementation IHashable_DRepr of AHashable for state DRepr
* should provide a specialization:
*
* template <>
* struct xo::facet::FacetImplementation<AHashable, DRepr> {
* using Impltype = IHashable_DRepr;
* };
*
* then IHashable_ImplType<DRepr> --> IHashable_DRepr
**/
template <typename DRepr>
using IHashable_ImplType = xo::facet::FacetImplType<AHashable, DRepr>;
} /*namespace hashable*/
} /*namespace xo*/
/* AHashable.hpp */