#include "ordering.hpp"


Classes | |
| struct | OrderingEntry |
Public Types | |
| 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 |
Public Member Functions | |
| virtual bool | append (Field field, Direction direction)=0 |
| virtual void | reset ()=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 |
Class Ordering provides description of data ordering in queries. General note: this is interface.
|
strong |
Ordering direction for each field.
| Enumerator | |
|---|---|
| kAscending | |
| kDescending | |
| kMaxValueCount | |
| kUnknownValue | |
|
strong |
|
pure virtual |
Append - stores field and direction entry uniquely. The insertion order determines the ordering priority.
|
pure virtual |
Get - returns data sorted in the insertion order. is a reference to a const OrderingEntry pointer, which positions to the first element is a number of OrderingEntry items

|
override |
|
pure virtual |
Reset - drops all saved data.
Implemented in shared_model::proto::OrderingImpl.
|
overridevirtual |
Make string developer representation of object
Reimplemented from shared_model::interface::ModelPrimitive< Ordering >.
