hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
shared_model::proto::OrderingImpl Class Referencefinal

Provides ordering data for pagination. More...

#include "proto_ordering.hpp"

Inheritance diagram for shared_model::proto::OrderingImpl:
Inheritance graph
Collaboration diagram for shared_model::proto::OrderingImpl:
Collaboration graph

Public Member Functions

OrderingImploperator= (OrderingImpl const &)=delete
 
 OrderingImpl ()
 
 OrderingImpl (iroha::protocol::Ordering const &proto_ordering)
 
 OrderingImpl (OrderingImpl &&)
 
 OrderingImpl (OrderingImpl const &)
 
bool append (ModelType::Field field, ModelType::Direction direction) override
 
void reset () override
 
void get (ModelType::OrderingEntry const *&orderingEntry, size_t &count) const override
 
- Public Member Functions inherited from shared_model::interface::Ordering
virtual bool append (Field field, Direction direction)=0
 
virtual void get (OrderingEntry const *&orderingEntry, size_t &count) const =0
 
std::string toString () const override
 
bool operator== (const ModelType &rhs) const override
 
- Public Member Functions inherited from shared_model::interface::ModelPrimitive< Ordering >
virtual bool operator== (const ModelType &rhs) const=0
 
virtual bool operator!= (const ModelType &rhs) const
 
virtual ~ModelPrimitive ()=default
 

Additional Inherited Members

- Public Types inherited from shared_model::interface::Ordering
enum  Field : size_t { Field::kCreatedTime = 0, Field::kPosition, Field::kMaxValueCount, Field::kUnknownValue = kMaxValueCount }
 
enum  Direction : size_t { Direction::kAscending = 0, Direction::kDescending, Direction::kMaxValueCount, Direction::kUnknownValue = kMaxValueCount }
 
- Public Types inherited from shared_model::interface::ModelPrimitive< Ordering >
using ModelType = Ordering
 

Detailed Description

Provides ordering data for pagination.

Constructor & Destructor Documentation

◆ OrderingImpl() [1/4]

OrderingImpl::OrderingImpl ( )
Here is the call graph for this function:

◆ OrderingImpl() [2/4]

OrderingImpl::OrderingImpl ( iroha::protocol::Ordering const &  proto_ordering)
Here is the call graph for this function:

◆ OrderingImpl() [3/4]

OrderingImpl::OrderingImpl ( OrderingImpl &&  c)

◆ OrderingImpl() [4/4]

OrderingImpl::OrderingImpl ( OrderingImpl const &  c)

Member Function Documentation

◆ append()

bool OrderingImpl::append ( ModelType::Field  field,
ModelType::Direction  direction 
)
override
Here is the caller graph for this function:

◆ get()

void OrderingImpl::get ( ModelType::OrderingEntry const *&  orderingEntry,
size_t &  count 
) const
override

◆ operator=()

OrderingImpl& shared_model::proto::OrderingImpl::operator= ( OrderingImpl const &  )
delete

◆ reset()

void OrderingImpl::reset ( )
overridevirtual

Reset - drops all saved data.

Implements shared_model::interface::Ordering.

Here is the call graph for this function:
Here is the caller graph for this function:

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