20 #ifndef RIPPLE_PROTOCOL_SOTEMPLATE_H_INCLUDED
21 #define RIPPLE_PROTOCOL_SOTEMPLATE_H_INCLUDED
23 #include <ripple/basics/contract.h>
24 #include <ripple/protocol/SField.h>
57 nm +=
": '" + fieldName.
getName() +
"'";
58 Throw<std::runtime_error>(
59 "SField (" + nm +
") in SOElement must be useful.");
std::size_t size() const
The number of entries in this template.
SOEStyle style(SField const &sf) const
std::vector< SOElement >::const_iterator cbegin() const
An element in a SOTemplate.
std::vector< SOElement >::const_iterator begin() const
std::vector< SOElement > elements_
SOElement(SField const &fieldName, SOEStyle style)
SOTemplate & operator=(SOTemplate &&other)=default
Defines the fields and their attributes within a STObject.
SOEStyle
Kind of element in each entry of an SOTemplate.
SOTemplate(SOTemplate &&other)=default
std::reference_wrapper< SField const > sField_
std::vector< int > indices_
int getIndex(SField const &) const
Retrieve the position of a named field.
std::vector< SOElement >::const_iterator cend() const
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
std::string const & getName() const
std::vector< SOElement >::const_iterator end() const
SField const & sField() const