28 #ifndef MYSQLPP_FIELD_NAMES_H 29 #define MYSQLPP_FIELD_NAMES_H 36 #if !defined(DOXYGEN_IGNORE) 38 class MYSQLPP_EXPORT ResultBase;
50 std::vector<std::string>()
52 assign(other.begin(), other.end());
57 std::vector<std::string>()
65 std::vector<std::string>(i)
79 insert(begin(), i,
"");
110 unsigned int operator [](
const std::string& s)
const;
std::string & operator [](int i)
Get the name of a field given its index.
Definition: field_names.h:84
std::string & operator [](size_type i)
Get the name of a field given its index.
Definition: field_names.h:97
FieldNames(const ResultBase *res)
Create field name list from a result set.
Definition: field_names.h:56
FieldNames(const FieldNames &other)
Copy constructor.
Definition: field_names.h:49
FieldNames()
Default constructor.
Definition: field_names.h:46
FieldNames & operator=(const ResultBase *res)
Initializes the field list from a result set.
Definition: field_names.h:70
const std::string & operator [](size_type i) const
Get the name of a field given its index, in const context.
Definition: field_names.h:104
Base class for StoreQueryResult and UseQueryResult.
Definition: result.h:110
Holds a list of SQL field names.
Definition: field_names.h:42
FieldNames(int i)
Create empty field name list, reserving space for a fixed number of field names.
Definition: field_names.h:64
const std::string & operator [](int i) const
Get the name of a field given its index, in const context.
Definition: field_names.h:91