comservatory
Strict validation of CSV files in C++
Loading...
Searching...
No Matches
Public Member Functions | List of all members
comservatory::TypedField< T, tt > Struct Template Referenceabstract

Template class for a field of a known type. More...

#include <Field.hpp>

Inheritance diagram for comservatory::TypedField< T, tt >:
Inheritance graph
[legend]
Collaboration diagram for comservatory::TypedField< T, tt >:
Collaboration graph
[legend]

Public Member Functions

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
 

Detailed Description

template<typename T, Type tt>
struct comservatory::TypedField< T, tt >

Template class for a field of a known type.

Template Parameters
TData type used to store the values.
ttThe Type to be returned by type().

Member Function Documentation

◆ push_back()

template<typename T , Type tt>
virtual void comservatory::TypedField< T, tt >::push_back ( x)
pure virtual
Parameters
xValue to be appended to the TypedField's vector of values.

Implemented in comservatory::FilledField< T, tt >, and comservatory::DummyField< T, tt >.

◆ type()

template<typename T , Type tt>
Type comservatory::TypedField< T, tt >::type ( ) const
inlinevirtual
Returns
Type of the field.

Implements comservatory::Field.


The documentation for this struct was generated from the following file: