BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet software
Public Member Functions | Public Attributes | List of all members
graphene::db::annotated_object< DerivedClass > Class Template Reference

An object that is easily extended by providing pointers to other objects, one for each space. More...

#include <object.hpp>

Inheritance diagram for graphene::db::annotated_object< DerivedClass >:
graphene::db::base_abstract_object< DerivedClass > graphene::db::object

Public Member Functions

object_id_type get_annotation (uint8_t annotation_id_space) const
 
void set_annotation (object_id_type id)
 
- Public Member Functions inherited from graphene::db::base_abstract_object< DerivedClass >
std::unique_ptr< objectclone () const override
 
void move_from (object &obj) override
 
fc::variant to_variant () const override
 
std::vector< char > pack () const override
 
 object ()=default
 
 object (uint8_t space_id, uint8_t type_id)
 
- Public Member Functions inherited from graphene::db::object
 object ()=default
 
 object (uint8_t space_id, uint8_t type_id)
 
virtual ~object ()=default
 

Public Attributes

annotation_map annotations
 
- Public Attributes inherited from graphene::db::object
object_id_type id
 

Detailed Description

template<typename DerivedClass>
class graphene::db::annotated_object< DerivedClass >

An object that is easily extended by providing pointers to other objects, one for each space.

Definition at line 123 of file object.hpp.

Member Function Documentation

◆ get_annotation()

template<typename DerivedClass >
object_id_type graphene::db::annotated_object< DerivedClass >::get_annotation ( uint8_t  annotation_id_space) const
inline

return object_id_type() if no anotation is found for id_space

Definition at line 127 of file object.hpp.

◆ set_annotation()

template<typename DerivedClass >
void graphene::db::annotated_object< DerivedClass >::set_annotation ( object_id_type  id)
inline

Definition at line 133 of file object.hpp.

Member Data Documentation

◆ annotations

template<typename DerivedClass >
annotation_map graphene::db::annotated_object< DerivedClass >::annotations

Annotations should be accessed via get_annotation and set_annotation so that they can be maintained in sorted order.

Definition at line 142 of file object.hpp.


The documentation for this class was generated from the following file: