HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_ORMModelState Class Reference

#include <UT_ORMModelState.h>

Public Member Functions

 UT_ORMModelState ()=default
 
 UT_ORMModelState (const UT_StringHolder &table_name, const UT_Array< UT_ORMModelStateField > &fields)
 
 ~UT_ORMModelState ()=default
 
 UT_ORMModelState (const UT_ORMModelState &model)
 
UT_ORMModelStateoperator= (const UT_ORMModelState &model)
 
 UT_ORMModelState (UT_ORMModelState &&)=default
 
UT_ORMModelStateoperator= (UT_ORMModelState &&)=default
 
UT_ORMModelState clone () const
 
const UT_StringHoldername () const
 
const UT_StringHoldertableName () const
 
UT_ORMModelStateFieldfindField (const UT_StringRef &field_name)
 
const UT_ORMModelStateFieldfindField (const UT_StringRef &field_name) const
 
bool hasField (const UT_StringRef &field_name) const
 
void removeField (const UT_StringRef &field_name)
 
void addField (const UT_ORMModelStateField &field)
 
void renameField (const UT_StringHolder &from_name, const UT_StringHolder &to_name)
 
void addConstraint (UT_UniquePtr< UT_IORMConstraint > constraint)
 
const UT_Array
< UT_ORMModelStateField > & 
fields () const
 
const UT_Array< UT_UniquePtr
< UT_IORMConstraint > > & 
constraints () const
 

Public Attributes

UT_StringHolder myName
 
UT_StringHolder myTableName
 
UT_Array< UT_ORMModelStateFieldmyFields
 
UT_Array< UT_UniquePtr
< UT_IORMConstraint > > 
myConstraints
 

Detailed Description

Definition at line 33 of file UT_ORMModelState.h.

Constructor & Destructor Documentation

UT_ORMModelState::UT_ORMModelState ( )
default
UT_ORMModelState::UT_ORMModelState ( const UT_StringHolder table_name,
const UT_Array< UT_ORMModelStateField > &  fields 
)
inline

Definition at line 37 of file UT_ORMModelState.h.

UT_ORMModelState::~UT_ORMModelState ( )
default
UT_ORMModelState::UT_ORMModelState ( const UT_ORMModelState model)
inline

Definition at line 45 of file UT_ORMModelState.h.

UT_ORMModelState::UT_ORMModelState ( UT_ORMModelState &&  )
default

Member Function Documentation

void UT_ORMModelState::addConstraint ( UT_UniquePtr< UT_IORMConstraint constraint)
inline

Definition at line 109 of file UT_ORMModelState.h.

void UT_ORMModelState::addField ( const UT_ORMModelStateField field)
inline

Definition at line 92 of file UT_ORMModelState.h.

UT_ORMModelState UT_ORMModelState::clone ( ) const
const UT_Array<UT_UniquePtr<UT_IORMConstraint> >& UT_ORMModelState::constraints ( ) const
inline

Definition at line 114 of file UT_ORMModelState.h.

const UT_Array<UT_ORMModelStateField>& UT_ORMModelState::fields ( ) const
inline

Definition at line 113 of file UT_ORMModelState.h.

UT_ORMModelStateField* UT_ORMModelState::findField ( const UT_StringRef field_name)
inline

Definition at line 59 of file UT_ORMModelState.h.

const UT_ORMModelStateField* UT_ORMModelState::findField ( const UT_StringRef field_name) const
inline

Definition at line 68 of file UT_ORMModelState.h.

bool UT_ORMModelState::hasField ( const UT_StringRef field_name) const
inline

Definition at line 72 of file UT_ORMModelState.h.

const UT_StringHolder& UT_ORMModelState::name ( void  ) const
inline

Definition at line 56 of file UT_ORMModelState.h.

UT_ORMModelState& UT_ORMModelState::operator= ( const UT_ORMModelState model)
inline

Definition at line 46 of file UT_ORMModelState.h.

UT_ORMModelState& UT_ORMModelState::operator= ( UT_ORMModelState &&  )
default
void UT_ORMModelState::removeField ( const UT_StringRef field_name)
inline

Definition at line 81 of file UT_ORMModelState.h.

void UT_ORMModelState::renameField ( const UT_StringHolder from_name,
const UT_StringHolder to_name 
)
inline

Definition at line 99 of file UT_ORMModelState.h.

const UT_StringHolder& UT_ORMModelState::tableName ( ) const
inline

Definition at line 57 of file UT_ORMModelState.h.

Member Data Documentation

UT_Array<UT_UniquePtr<UT_IORMConstraint> > UT_ORMModelState::myConstraints

Definition at line 122 of file UT_ORMModelState.h.

UT_Array<UT_ORMModelStateField> UT_ORMModelState::myFields

Definition at line 121 of file UT_ORMModelState.h.

UT_StringHolder UT_ORMModelState::myName

Definition at line 119 of file UT_ORMModelState.h.

UT_StringHolder UT_ORMModelState::myTableName

Definition at line 120 of file UT_ORMModelState.h.


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