|
rippled
|
Defines the fields and their attributes within a STObject. More...
#include <SOTemplate.h>

Public Member Functions | |
| SOTemplate (SOTemplate &&other)=default | |
| SOTemplate & | operator= (SOTemplate &&other)=default |
| SOTemplate (std::initializer_list< SOElement > uniqueFields, std::initializer_list< SOElement > commonFields={}) | |
| Create a template populated with all fields. | |
| std::vector< SOElement >::const_iterator | begin () const |
| std::vector< SOElement >::const_iterator | cbegin () const |
| std::vector< SOElement >::const_iterator | end () const |
| std::vector< SOElement >::const_iterator | cend () const |
| std::size_t | size () const |
| The number of entries in this template. | |
| int | getIndex (SField const &) const |
| Retrieve the position of a named field. | |
| SOEStyle | style (SField const &sf) const |
Private Attributes | |
| std::vector< SOElement > | elements_ |
| std::vector< int > | indices_ |
Defines the fields and their attributes within a STObject.
Each subclass of SerializedObject will provide its own template describing the available fields and their metadata attributes.
Definition at line 93 of file SOTemplate.h.
|
default |
| ripple::SOTemplate::SOTemplate | ( | std::initializer_list< SOElement > | uniqueFields, |
| std::initializer_list< SOElement > | commonFields = {} |
||
| ) |
Create a template populated with all fields.
After creating the template fields cannot be added, modified, or removed.
Definition at line 11 of file SOTemplate.cpp.
|
default |
| std::vector< SOElement >::const_iterator ripple::SOTemplate::begin | ( | ) | const |
Definition at line 112 of file SOTemplate.h.
| std::vector< SOElement >::const_iterator ripple::SOTemplate::cbegin | ( | ) | const |
Definition at line 118 of file SOTemplate.h.
| std::vector< SOElement >::const_iterator ripple::SOTemplate::end | ( | ) | const |
Definition at line 124 of file SOTemplate.h.
| std::vector< SOElement >::const_iterator ripple::SOTemplate::cend | ( | ) | const |
Definition at line 130 of file SOTemplate.h.
| std::size_t ripple::SOTemplate::size | ( | ) | const |
The number of entries in this template.
Definition at line 137 of file SOTemplate.h.
| int ripple::SOTemplate::getIndex | ( | SField const & | sField | ) | const |
Retrieve the position of a named field.
Definition at line 43 of file SOTemplate.cpp.
Definition at line 147 of file SOTemplate.h.
|
private |
Definition at line 153 of file SOTemplate.h.
|
private |
Definition at line 154 of file SOTemplate.h.