30#include <sptk5/CaseInsensitiveCompare.h>
31#include <sptk5/Field.h>
32#include <sptk5/xdoc/Node.h>
55 using iterator = std::vector<SField>::iterator;
109 return m_list.size();
117 return m_list.begin();
125 return m_list.begin();
182 auto field = findField(fname);
198 return *m_list[index];
209 return *m_list[index];
219 return *fieldByName(fname);
229 return *fieldByName(fname.c_str());
241 void exportTo(
const xdoc::SNode& node,
bool compactMode,
bool nullLargeData =
false)
const;
247 using Vector = std::vector<SField>;
252 using Map = std::map<String, SField, CaseInsensitiveCompare>;
255 std::shared_ptr<Map> m_index;
SPTK generic exception class.
Definition: Exception.h:56
Definition: FieldList.h:50
SField fieldByName(const String &fname) const
Definition: FieldList.h:180
FieldList & operator=(const FieldList &other)=delete
SField findField(const String &fname) const
std::vector< SField >::iterator iterator
Definition: FieldList.h:55
std::vector< SField >::const_iterator const_iterator
Definition: FieldList.h:60
const_iterator end() const
Definition: FieldList.h:139
const Field & operator[](int index) const
Definition: FieldList.h:207
const_iterator begin() const
Definition: FieldList.h:123
iterator end()
Definition: FieldList.h:131
FieldList(const FieldList &other)=delete
FieldList & operator=(FieldList &&other) noexcept=default
size_t size() const
Definition: FieldList.h:107
Field & operator[](int index)
Definition: FieldList.h:196
FieldList(FieldList &&other) noexcept=default
Field & push_back(const String &fname, bool checkDuplicates)
void exportTo(const xdoc::SNode &node, bool compactMode, bool nullLargeData=false) const
Field & operator[](const String &fname)
Definition: FieldList.h:217
Field & push_back(const SField &fld)
iterator begin()
Definition: FieldList.h:115
const Field & operator[](const String &fname) const
Definition: FieldList.h:227