GCBM
Public Member Functions | Private Attributes | List of all members
FlatPoolRecord Class Reference

#include <flatrecord.h>

Collaboration diagram for FlatPoolRecord:
Collaboration graph

Public Member Functions

 FlatPoolRecord (int year, const std::vector< Poco::Nullable< std::string >> &classifierValues, const std::string &landClass, const std::string &ageClass, const std::string &pool, double value)
 
 ~FlatPoolRecord ()
 
bool operator== (const FlatPoolRecord &other) const
 
size_t hash () const
 
std::string header (const std::vector< std::string > &classifierNames) const
 
std::string asPersistable () const
 
std::vector< std::optional< std::string > > asVector () const
 
void merge (const FlatPoolRecord &other)
 
void setId (Int64 id)
 
Int64 getId () const
 
int getYear () const
 

Private Attributes

size_t _hash = -1
 
Int64 _id
 
int _year
 
std::vector< Poco::Nullable< std::string > > _classifierValues
 
std::string _landClass
 
std::string _ageClass
 
std::string _pool
 
double _value
 

Constructor & Destructor Documentation

◆ FlatPoolRecord()

FlatPoolRecord ( int  year,
const std::vector< Poco::Nullable< std::string >> &  classifierValues,
const std::string &  landClass,
const std::string &  ageClass,
const std::string &  pool,
double  value 
)

◆ ~FlatPoolRecord()

Member Function Documentation

◆ asPersistable()

std::string asPersistable ( ) const

◆ asVector()

std::vector< std::optional< std::string > > asVector ( ) const

◆ getId()

Int64 getId ( ) const

◆ getYear()

int getYear ( ) const

◆ hash()

size_t hash ( ) const

◆ header()

std::string header ( const std::vector< std::string > &  classifierNames) const

◆ merge()

void merge ( const FlatPoolRecord other)

◆ operator==()

bool operator== ( const FlatPoolRecord other) const

◆ setId()

void setId ( Int64  id)

Member Data Documentation

◆ _ageClass

std::string _ageClass
private

◆ _classifierValues

std::vector<Poco::Nullable<std::string> > _classifierValues
private

◆ _hash

size_t _hash = -1
mutableprivate

◆ _id

Int64 _id
private

◆ _landClass

std::string _landClass
private

◆ _pool

std::string _pool
private

◆ _value

double _value
private

◆ _year

int _year
private

The documentation for this class was generated from the following files: