FEDEM Model Database  R8.0
Source code of the FEDEM model database
Protected Member Functions | List of all members
FFaNoCopyField< valueT > Class Template Reference

Subclass used for fields to be ignored when the model is copied. More...

#include <FFaField.H>

Inheritance diagram for FFaNoCopyField< valueT >:
Inheritance graph
[legend]
Collaboration diagram for FFaNoCopyField< valueT >:
Collaboration graph
[legend]

Protected Member Functions

FFaFieldBase * copy (const FFaFieldBase *, bool) final
 Overridden to return *this instead of a copy. More...
 
- Protected Member Functions inherited from FFaField< valueT >
FFaFieldBase * copy (const FFaFieldBase *field, bool defaultValueToo) override
 Copies another database field into *this. More...
 
void write (std::ostream &os) const override
 Writes the field name and value to an output stream. More...
 
void write (std::ostream &os) const
 
void read (std::istream &is) override
 Reads the field value from an input stream. More...
 
void read (std::istream &is, FmBlockPortReference &v) const
 
- Protected Member Functions inherited from FFaFieldBase
 FFaFieldBase ()
 Empty default constructor. More...
 
virtual ~FFaFieldBase ()
 Empty destructor. More...
 

Additional Inherited Members

- Public Member Functions inherited from FFaField< valueT >
 FFaField ()
 Empty default constructor. More...
 
virtual ~FFaField ()
 Empty destructor. More...
 
valueT & operator= (const valueT &data)
 Assignment operator. More...
 
const valueT & getValue () const
 Returns a const reference to myData. More...
 
valueT & getValue ()
 Returns a reference to myData (for update). More...
 
bool setValue (const valueT &newData, bool checkChanged=true)
 Assigns a new value to the field. More...
 
bool setDefaultValue (const valueT &defaultVal, bool checkChanged=true)
 Assigns the default value of the field. More...
 
void reset () final
 Resets the field value to its default value. More...
 
void updateDefault () final
 Updates the default value of the field. More...
 
bool isDefault () const final
 Returns true, if the field value equals its default value. More...
 
bool isDataField () const override
 Returns true, if this is a numerical data field. More...
 
bool isPrintable () const override
 Returns true, if this field should be printed. More...
 
bool isPrintable () const
 Returns true, if this field should be printed. More...
 
- Public Member Functions inherited from FFaFieldBase
virtual void calculateChecksum (FFaCheckSum *) const
 Calculates the checksum of the field valiue. More...
 
- Static Protected Member Functions inherited from FFaFieldBase
static void writeString (std::ostream &os, const std::string &str, const char *pfx=NULL)
 Writes the string value str to the output stream os. More...
 
static void readString (std::istream &is, std::string &str)
 Reads a string value from an input stream. More...
 
static void readStrings (std::istream &os, Strings &str)
 Reads a list of string values from an input stream. More...
 
static bool readInt (std::istream &is, int &val, bool silence=false)
 Reads an integer value from an input stream. More...
 
- Protected Attributes inherited from FFaField< valueT >
valueT myData
 Current field value. More...
 
valueT myDefaultValue
 Default field value. More...
 

Detailed Description

template<class valueT>
class FFaNoCopyField< valueT >

Subclass used for fields to be ignored when the model is copied.

Member Function Documentation

◆ copy()

template<class valueT >
FFaFieldBase* FFaNoCopyField< valueT >::copy ( const FFaFieldBase *  ,
bool   
)
inlinefinalprotectedvirtual

Overridden to return *this instead of a copy.

Implements FFaFieldBase.


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