All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Coded< Type > Class Template Reference

Constructs a dynamically compiled function of two variables. More...

Inheritance diagram for Coded< Type >:
Collaboration diagram for Coded< Type >:

Public Member Functions

 TypeName ("coded")
 
 Coded (const word &name, const dictionary &dict)
 Construct from name and dictionary. More...
 
 Coded (const Coded< Type > &cf1)
 Copy constructor. More...
 
virtual tmp< Function2< Type > > clone () const
 Construct and return a clone. More...
 
virtual ~Coded ()
 Destructor. More...
 
virtual Type value (const scalar x, const scalar y) const
 Return value as a function of two scalars. More...
 
virtual tmp< Field< Type > > value (const scalarField &x, const scalarField &y) const
 Return value as a function of two scalar fields. More...
 
virtual void write (Ostream &os) const
 Write data to dictionary stream. More...
 
void operator= (const Coded< Type > &)=delete
 Disallow default bitwise assignment. More...
 
- Public Member Functions inherited from Function2< Type >
 TypeName ("Function2") declareRunTimeSelectionTable(autoPtr
 Runtime type information. More...
 
 Function2 (const word &name)
 Construct from name. More...
 
 Function2 (const Function2< Type > &f1)
 Copy constructor. More...
 
virtual ~Function2 ()
 Destructor. More...
 
const wordname () const
 Return the name of the entry. More...
 
void operator= (const Function2< Type > &)
 Assignment. More...
 
- Public Member Functions inherited from refCount
int count () const
 Return the current reference count. More...
 
bool unique () const
 Return true if the reference count is zero. More...
 
void operator++ ()
 Increment the reference count. More...
 
void operator++ (int)
 Increment the reference count. More...
 
void operator-- ()
 Decrement the reference count. More...
 
void operator-- (int)
 Decrement the reference count. More...
 
- Public Member Functions inherited from codedBase
 TypeName ("codedBase")
 Runtime type information. More...
 
 codedBase ()
 Construct null. More...
 
 codedBase (const word &name, const dictionary &dict)
 Construct from name and dictionary. More...
 
 codedBase (const dictionary &dict)
 Construct from dictionary. More...
 
 codedBase (const codedBase &cb)
 Copy constructor. More...
 
virtual ~codedBase ()
 Destructor. More...
 
void operator= (const codedBase &)=delete
 Disallow default bitwise assignment. More...
 
word codeTemplateC (const word &baseTypeName) const
 
word codeTemplateH (const word &baseTypeName) const
 
virtual void writeCode (Ostream &os) const
 

Additional Inherited Members

- Public Types inherited from Function2< Type >
typedef Type returnType
 
- Static Public Member Functions inherited from Function2< Type >
static autoPtr< Function2< Type > > New (const word &name, const dictionary &dict)
 Selector. More...
 
- Public Attributes inherited from Function2< Type >
 Function2
 
 dictionary
 
const wordname
 
const word const dictionarydict
 
const word const dictionary name
 
const word const dictionary dict
 
- Protected Member Functions inherited from refCount
 refCount ()
 Construct null initialising count to 0. More...
 
- Protected Member Functions inherited from codedBase
void updateLibrary () const
 Update library as required. More...
 
virtual const wordcodeName () const
 Name of the dynamically generated CodedType. More...
 
virtual string description () const
 Return a description (type + name) for the output. More...
 
virtual const dictionarycodeDict () const
 Get the dictionary to initialise the codeContext. More...
 
- Protected Attributes inherited from Function2< Type >
const word name_
 Name of entry. More...
 

Detailed Description

template<class Type>
class Foam::Function2s::Coded< Type >

Constructs a dynamically compiled function of two variables.

See also
Foam::dynamicCode Foam::functionEntries::codeStream
Source files

Definition at line 69 of file CodedFunction2.H.

Constructor & Destructor Documentation

◆ Coded() [1/2]

Coded ( const word name,
const dictionary dict 
)

Construct from name and dictionary.

Definition at line 106 of file CodedFunction2.C.

◆ Coded() [2/2]

Coded ( const Coded< Type > &  cf1)

Copy constructor.

Definition at line 120 of file CodedFunction2.C.

◆ ~Coded()

~Coded ( )
virtual

Destructor.

Definition at line 139 of file CodedFunction2.C.

References Coded< Type >::value().

Here is the call graph for this function:

Member Function Documentation

◆ TypeName()

TypeName ( "coded"  )

◆ clone()

Foam::tmp< Foam::Function2< Type > > clone ( ) const
virtual

Construct and return a clone.

Implements Function2< Type >.

Definition at line 130 of file CodedFunction2.C.

◆ value() [1/2]

Type value ( const scalar  x,
const scalar  y 
) const
inlinevirtual

Return value as a function of two scalars.

Implements Function2< Type >.

Definition at line 32 of file CodedFunction2I.H.

Referenced by Coded< Type >::~Coded().

Here is the caller graph for this function:

◆ value() [2/2]

Foam::tmp< Foam::Field< Type > > value ( const scalarField x,
const scalarField y 
) const
virtual

Return value as a function of two scalar fields.

Implements Function2< Type >.

Definition at line 147 of file CodedFunction2.C.

◆ write()

void write ( Ostream os) const
virtual

Write data to dictionary stream.

Implements Function2< Type >.

Definition at line 157 of file CodedFunction2.C.

References codedBase::writeCode().

Here is the call graph for this function:

◆ operator=()

void operator= ( const Coded< Type > &  )
delete

Disallow default bitwise assignment.


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