Skip to content

Class zmbt::object_id

ClassList > zmbt > object_id

Pointer-based object id with type annotation.

  • #include <object_id.hpp>

Inherits the following classes: zmbt::entity_id

Classes

Type Name
struct string_key

Public Functions

Type Name
entity_id () = default
entity_id (boost::json::string_view key, std::type_index type_index)
entity_id (boost::json::string_view key, std::size_t type_index_hash)
entity_id (boost::json::array const & str)
entity_id (boost::json::value const & val)
entity_id (entity_id const &) = default
entity_id (entity_id &&) = default
object_id (boost::json::string_view str)
object_id (std::string const & str)
object_id (char const * str)
object_id (T obj)
object_id (std::shared_ptr< T > const & ptr)
object_id (T const & ref)
bool operator!= (entity_id const & other) const
bool operator== (entity_id const & other) const

Public Functions inherited from zmbt::entity_id

See zmbt::entity_id

Type Name
boost::json::string_view annotation () const
entity_id () = default
entity_id (boost::json::string_view key, std::type_index type_index)
entity_id (boost::json::string_view key, std::size_t type_index_hash)
entity_id (boost::json::array const & str)
entity_id (boost::json::value const & val)
entity_id (entity_id const &) = default
entity_id (entity_id &&) = default
boost::json::string_view key () const
bool operator!= (entity_id const & other) const
entity_id & operator= (entity_id const &) = default
entity_id & operator= (entity_id &&) = default
entity_id & operator= (boost::json::value const & v)
entity_id & operator= (boost::json::value && v)
bool operator== (entity_id const & other) const
boost::json::string_view str () const
virtual ~entity_id () = default

Public Functions Documentation

function entity_id [1/7]

zmbt::object_id::entity_id () = default

function entity_id [2/7]

zmbt::object_id::entity_id (
    boost::json::string_view key,
    std::type_index type_index
) 

function entity_id [3/7]

zmbt::object_id::entity_id (
    boost::json::string_view key,
    std::size_t type_index_hash
) 

function entity_id [4/7]

explicit zmbt::object_id::entity_id (
    boost::json::array const & str
) 

function entity_id [5/7]

explicit zmbt::object_id::entity_id (
    boost::json::value const & val
) 

function entity_id [6/7]

zmbt::object_id::entity_id (
    entity_id const &
) = default

function entity_id [7/7]

zmbt::object_id::entity_id (
    entity_id &&
) = default

function object_id [1/6]

inline zmbt::object_id::object_id (
    boost::json::string_view str
) 

function object_id [2/6]

inline zmbt::object_id::object_id (
    std::string const & str
) 

function object_id [3/6]

inline zmbt::object_id::object_id (
    char const * str
) 

function object_id [4/6]

template<class T, is_ptr< T >>
inline zmbt::object_id::object_id (
    T obj
) 

function object_id [5/6]

template<class T>
inline zmbt::object_id::object_id (
    std::shared_ptr< T > const & ptr
) 

function object_id [6/6]

template<class T, is_not_ptr< T >>
inline zmbt::object_id::object_id (
    T const & ref
) 

function operator!=

inline bool zmbt::object_id::operator!= (
    entity_id const & other
) const

function operator==

inline bool zmbt::object_id::operator== (
    entity_id const & other
) const

Friends Documentation

friend operator<<

inline std::ostream & zmbt::object_id::operator<< (
    std::ostream & os,
    object_id const & id
) 


The documentation for this class was generated from the following file zmbt-framework/zmbt-framework/backends/cxx/include/zmbt/core/object_id.hpp