BitShares-Core  5.0.0
BitShares blockchain implementation and command-line interface 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::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::abstract_object< DerivedClass >
virtual unique_ptr< objectclone () const
 these methods are implemented for derived classes by inheriting abstract_object<DerivedClass> More...
 
virtual void move_from (object &obj)
 
virtual variant to_variant () const
 
virtual vector< char > pack () const
 
- Public Member Functions inherited from graphene::db::object
 object ()
 
virtual ~object ()
 

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 109 of file object.hpp.

Member Function Documentation

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 113 of file object.hpp.

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

Definition at line 119 of file object.hpp.

Member Data Documentation

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 128 of file object.hpp.


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