HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_ORMForeignKeyField< ModelT > Class Template Reference

#include <UT_ORMField.h>

Public Types

using model_t = ModelT
 
using foreign_key_t = typename ModelT::Meta::primary_key_t
 

Public Member Functions

 UT_ORMForeignKeyField ()=default
 
 UT_ORMForeignKeyField (foreign_key_t pk)
 
bool operator== (const UT_ORMForeignKeyField &rhs) const
 
bool operator!= (const UT_ORMForeignKeyField &rhs) const
 
ModelT * get ()
 
foreign_key_t id ()
 
void setId (const foreign_key_t &id)
 
void setValue (const ModelT &value)
 
void clear ()
 

Detailed Description

template<typename ModelT>
class UT_ORMForeignKeyField< ModelT >

Definition at line 160 of file UT_ORMField.h.

Member Typedef Documentation

template<typename ModelT>
using UT_ORMForeignKeyField< ModelT >::foreign_key_t = typename ModelT::Meta::primary_key_t

Definition at line 164 of file UT_ORMField.h.

template<typename ModelT>
using UT_ORMForeignKeyField< ModelT >::model_t = ModelT

Definition at line 163 of file UT_ORMField.h.

Constructor & Destructor Documentation

template<typename ModelT>
UT_ORMForeignKeyField< ModelT >::UT_ORMForeignKeyField ( )
default
template<typename ModelT>
UT_ORMForeignKeyField< ModelT >::UT_ORMForeignKeyField ( foreign_key_t  pk)
inline

Definition at line 167 of file UT_ORMField.h.

Member Function Documentation

template<typename ModelT>
void UT_ORMForeignKeyField< ModelT >::clear ( void  )
inline

Definition at line 214 of file UT_ORMField.h.

template<typename ModelT>
ModelT* UT_ORMForeignKeyField< ModelT >::get ( )
inline

Definition at line 180 of file UT_ORMField.h.

template<typename ModelT>
foreign_key_t UT_ORMForeignKeyField< ModelT >::id ( )
inline

Definition at line 191 of file UT_ORMField.h.

template<typename ModelT>
bool UT_ORMForeignKeyField< ModelT >::operator!= ( const UT_ORMForeignKeyField< ModelT > &  rhs) const
inline

Definition at line 175 of file UT_ORMField.h.

template<typename ModelT>
bool UT_ORMForeignKeyField< ModelT >::operator== ( const UT_ORMForeignKeyField< ModelT > &  rhs) const
inline

Definition at line 171 of file UT_ORMField.h.

template<typename ModelT>
void UT_ORMForeignKeyField< ModelT >::setId ( const foreign_key_t id)
inline

Definition at line 195 of file UT_ORMField.h.

template<typename ModelT>
void UT_ORMForeignKeyField< ModelT >::setValue ( const ModelT &  value)
inline

Definition at line 200 of file UT_ORMField.h.


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