comservatory
Strict validation of CSV files in C++
|
Template class for a typed field that uses a std::vector
to store its values.
More...
#include <Field.hpp>
Public Member Functions | |
FilledField (size_t n=0) | |
size_t | size () const |
void | push_back (T x) |
void | add_missing () |
Public Member Functions inherited from comservatory::TypedField< T, tt > | |
Type | type () const |
virtual void | push_back (T x)=0 |
Public Member Functions inherited from comservatory::Field | |
virtual size_t | size () const =0 |
virtual Type | type () const =0 |
virtual void | add_missing ()=0 |
virtual bool | filled () const |
Template class for a typed field that uses a std::vector
to store its values.
T | Data type used to store the values. |
tt | The Type to be returned by type() . |
|
inline |
n | Number of missing values with which to fill the field's vector. This may be non-zero if converting a field from an UnknownField . |
|
inlinevirtual |
Append a missing value onto the field's vector of values.
Implements comservatory::Field.
|
inlinevirtual |
x | Value to be appended to the TypedField 's vector of values. |
Implements comservatory::TypedField< T, tt >.
|
inlinevirtual |
Implements comservatory::Field.