DataTypeCache Class Reference

Public Types

using InitFunction = Result< DataType >()
 

Public Member Functions

const DataTypeGet () const
 
Result< void > Init (Bool showMsg) const
 
 DataTypeCache (InitFunction *init, ModuleInfo *module)
 
template<typename T >
 DataTypeCache (Result< T >(*init)(), ModuleInfo *module)
 
Bool IsInitialized () const
 

Private Attributes

DataType _type
 
const DataTypeCache *const _next
 
InitFunction *const _init
 

Friends

class ObjectModel
 

Member Typedef Documentation

◆ InitFunction

Constructor & Destructor Documentation

◆ DataTypeCache() [1/2]

DataTypeCache ( InitFunction init,
ModuleInfo *  module 
)

◆ DataTypeCache() [2/2]

DataTypeCache ( Result< T >(*)()  init,
ModuleInfo *  module 
)

Member Function Documentation

◆ Get()

const DataType& Get ( ) const

◆ Init()

Result<void> Init ( Bool  showMsg) const

◆ IsInitialized()

Bool IsInitialized ( ) const

Friends And Related Function Documentation

◆ ObjectModel

friend class ObjectModel
friend

Member Data Documentation

◆ _type

DataType _type
mutableprivate

◆ _next

const DataTypeCache* const _next
private

◆ _init

InitFunction* const _init
private