Xmipp
v3.23.11-Nereus
|
#include <metadata_row_base.h>
Classes | |
class | iterator_ptr |
Public Types | |
using | iterator = iterator_ptr< false > |
using | const_iterator = iterator_ptr< true > |
Public Member Functions | |
virtual void | detach () |
virtual bool | empty () const =0 |
virtual int | size () const =0 |
virtual void | clear ()=0 |
virtual MDRow & | operator= (const MDRow &)=0 |
virtual | ~MDRow ()=default |
virtual size_t | id () const |
virtual bool | containsLabel (MDLabel label) const =0 |
virtual std::vector< MDLabel > | labels () const =0 |
virtual void | addLabel (MDLabel label)=0 |
virtual void | resetGeo (bool addLabels=true) |
virtual MDObject * | getObject (MDLabel label)=0 |
virtual const MDObject * | getObject (MDLabel label) const =0 |
template<typename T > | |
T & | getValue (MDLabel label) |
template<typename T > | |
const T & | getValue (MDLabel label) const |
template<typename T > | |
bool | getValue (MDLabel label, T &d) const |
bool | getValue (MDObject &object) const |
template<typename T > | |
const T & | getValueOrDefault (MDLabel label, const T &def) const |
template<typename T > | |
T & | getValueOrDefault (MDLabel label, const T &def) |
template<typename T , typename T1 > | |
void | getValueOrDefault (MDLabel label, T &d, T1 def) const |
template<typename T > | |
void | setValue (MDLabel label, const T &d, bool addLabel=true) |
virtual void | setValue (const MDObject &object)=0 |
virtual void | setValueFromStr (MDLabel label, const String &value) |
iterator | begin () |
iterator | end () |
const_iterator | begin () const |
const_iterator | end () const |
Friends | |
std::ostream & | operator<< (std::ostream &out, const MDRow &row) |
Common API of all metadata rows (abstract class). Classes like MDRowVec & MDRowSql implement this API.
Definition at line 53 of file metadata_row_base.h.
using MDRow::const_iterator = iterator_ptr<true> |
Definition at line 191 of file metadata_row_base.h.
using MDRow::iterator = iterator_ptr<false> |
Definition at line 190 of file metadata_row_base.h.
|
virtualdefault |
|
inline |
Definition at line 193 of file metadata_row_base.h.
|
inline |
Definition at line 196 of file metadata_row_base.h.
|
pure virtual |
|
pure virtual |
|
inlinevirtual |
|
inline |
Definition at line 194 of file metadata_row_base.h.
|
inline |
Definition at line 197 of file metadata_row_base.h.
|
inline |
Definition at line 97 of file metadata_row_base.h.
|
inline |
Definition at line 105 of file metadata_row_base.h.
|
inline |
Definition at line 113 of file metadata_row_base.h.
|
inline |
Definition at line 121 of file metadata_row_base.h.
|
inline |
Definition at line 129 of file metadata_row_base.h.
|
inline |
Definition at line 137 of file metadata_row_base.h.
|
inline |
Definition at line 145 of file metadata_row_base.h.
|
inlinevirtual |
Reimplemented in MDRowSql.
Definition at line 67 of file metadata_row_base.h.
|
pure virtual |
|
inlinevirtual |
Reset the values of the labels related to geometry to their default values
Definition at line 78 of file metadata_row_base.h.
|
inline |
Definition at line 151 of file metadata_row_base.h.
|
pure virtual |
Definition at line 158 of file metadata_row_base.h.
|
friend |