src/OpenFOAM: Moved the deleted bitwise copy and assignment declarations into public section of the class

This commit is contained in:
Henry Weller
2019-05-29 15:48:49 +01:00
parent a7f4147887
commit f7ea836c65
132 changed files with 1155 additions and 1022 deletions

View File

@ -211,14 +211,6 @@ class subCycle
public SubCycleField<GeometricField>, public SubCycleField<GeometricField>,
public subCycleTime public subCycleTime
{ {
// Private Member Functions
//- Disallow default bitwise copy construct
subCycle(const subCycle<GeometricField>&) = delete;
//- Disallow default bitwise assignment
void operator=(const subCycle<GeometricField>&) = delete;
public: public:
@ -238,6 +230,9 @@ public:
this->updateTimeIndex(); this->updateTimeIndex();
} }
//- Disallow default bitwise copy construct
subCycle(const subCycle<GeometricField>&) = delete;
//- Destructor //- Destructor
// End the subCycleTime, which restores the time state // End the subCycleTime, which restores the time state
@ -245,6 +240,12 @@ public:
{ {
endSubCycle(); endSubCycle();
} }
// Member Operators
//- Disallow default bitwise assignment
void operator=(const subCycle<GeometricField>&) = delete;
}; };

View File

@ -143,8 +143,6 @@ class HashTable
//- Construct from key, next pointer and object //- Construct from key, next pointer and object
inline hashedEntry(const Key&, hashedEntry* next, const T&); inline hashedEntry(const Key&, hashedEntry* next, const T&);
private:
//- Disallow default bitwise copy construct //- Disallow default bitwise copy construct
hashedEntry(const hashedEntry&) = delete; hashedEntry(const hashedEntry&) = delete;

View File

@ -81,15 +81,6 @@ private:
label nElmts_; label nElmts_;
// Private Member Functions
//- Disallow default bitwise copy construct
DLListBase(const DLListBase&) = delete;
//- Disallow default bitwise assignment
void operator=(const DLListBase&) = delete;
public: public:
// Forward declaration of STL iterators // Forward declaration of STL iterators
@ -112,6 +103,9 @@ public:
//- Construct given initial entry //- Construct given initial entry
inline DLListBase(link*); inline DLListBase(link*);
//- Disallow default bitwise copy construct
DLListBase(const DLListBase&) = delete;
//- Destructor //- Destructor
~DLListBase(); ~DLListBase();
@ -177,6 +171,12 @@ public:
inline void transfer(DLListBase&); inline void transfer(DLListBase&);
// Member Operators
//- Disallow default bitwise assignment
void operator=(const DLListBase&) = delete;
// STL iterator // STL iterator
//- An STL-conforming iterator //- An STL-conforming iterator

View File

@ -78,14 +78,6 @@ private:
//- Number of elements in in list //- Number of elements in in list
label nElmts_; label nElmts_;
// Private Member Functions
//- Disallow default bitwise copy construct
SLListBase(const SLListBase&) = delete;
//- Disallow default bitwise assignment
void operator=(const SLListBase&) = delete;
public: public:
@ -106,6 +98,9 @@ public:
//- Construct given initial entry //- Construct given initial entry
inline SLListBase(link*); inline SLListBase(link*);
//- Disallow default bitwise copy construct
SLListBase(const SLListBase&) = delete;
//- Destructor //- Destructor
~SLListBase(); ~SLListBase();
@ -158,6 +153,13 @@ public:
// and annul the argument list. // and annul the argument list.
inline void transfer(SLListBase&); inline void transfer(SLListBase&);
// Member Operators
//- Disallow default bitwise assignment
void operator=(const SLListBase&) = delete;
// STL iterator // STL iterator
//- An STL-conforming iterator //- An STL-conforming iterator

View File

@ -66,12 +66,6 @@ class Histogram
void count(const List& bins, const List& l); void count(const List& bins, const List& l);
//- Disallow default bitwise copy construct
Histogram(const Histogram&) = delete;
//- Disallow default bitwise assignment
void operator=(const Histogram&) = delete;
public: public:
@ -89,8 +83,11 @@ public:
const List& l const List& l
); );
//- Disallow default bitwise copy construct
Histogram(const Histogram&) = delete;
// Access
// Member Functions
//- Return the counts per bin //- Return the counts per bin
inline const labelList& counts() const inline const labelList& counts() const
@ -111,6 +108,12 @@ public:
{ {
return nHigh_; return nHigh_;
} }
// Member Operators
//- Disallow default bitwise assignment
void operator=(const Histogram&) = delete;
}; };

View File

@ -59,15 +59,6 @@ class IndirectListAddressing
List<label> addressing_; List<label> addressing_;
// Private Member Functions
//- Disallow default bitwise copy construct
IndirectListAddressing(const IndirectListAddressing&) = delete;
//- Disallow default bitwise assignment
void operator=(const IndirectListAddressing&) = delete;
protected: protected:
// Constructors // Constructors
@ -78,6 +69,9 @@ protected:
//- Move constructor which moves the addressing array //- Move constructor which moves the addressing array
explicit inline IndirectListAddressing(List<label>&& addr); explicit inline IndirectListAddressing(List<label>&& addr);
//- Disallow default bitwise copy construct
IndirectListAddressing(const IndirectListAddressing&) = delete;
// Member Functions // Member Functions
@ -91,6 +85,12 @@ protected:
//- Reset addressing //- Reset addressing
inline void resetAddressing(const labelUList&); inline void resetAddressing(const labelUList&);
// Member Operators
//- Disallow default bitwise assignment
void operator=(const IndirectListAddressing&) = delete;
}; };

View File

@ -59,12 +59,6 @@ class Callback
CallbackRegistry<CallbackType>& cbr_; CallbackRegistry<CallbackType>& cbr_;
// Private Member Functions
//- Disallow default bitwise assignment
void operator=(const Callback<CallbackType>&) = delete;
public: public:
// Constructors // Constructors
@ -89,6 +83,12 @@ public:
//- Check-out Callback from CallbackRegistry //- Check-out Callback from CallbackRegistry
bool checkOut(); bool checkOut();
// Member Operators
//- Disallow default bitwise assignment
void operator=(const Callback<CallbackType>&) = delete;
}; };

View File

@ -69,14 +69,6 @@ class CallbackRegistry
public CallbackRegistryName, public CallbackRegistryName,
public UIDLList<CallbackType> public UIDLList<CallbackType>
{ {
// Private Member Functions
//- Disallow default bitwise copy construct
CallbackRegistry(const CallbackRegistry&) = delete;
//- Disallow default bitwise assignment
void operator=(const CallbackRegistry&) = delete;
public: public:
@ -85,9 +77,18 @@ public:
//- Construct null //- Construct null
CallbackRegistry(); CallbackRegistry();
//- Disallow default bitwise copy construct
CallbackRegistry(const CallbackRegistry&) = delete;
//- Destructor //- Destructor
virtual ~CallbackRegistry(); virtual ~CallbackRegistry();
// Member Operators
//- Disallow default bitwise assignment
void operator=(const CallbackRegistry&) = delete;
}; };

View File

@ -52,11 +52,6 @@ class IOobjectList
: :
public HashPtrTable<IOobject> public HashPtrTable<IOobject>
{ {
// Private Member Functions
//- Disallow default bitwise assignment
void operator=(const IOobjectList&) = delete;
public: public:
@ -115,6 +110,12 @@ public:
//- Return the sorted list of names of the IOobjects of given class //- Return the sorted list of names of the IOobjects of given class
wordList sortedNames(const word& className) const; wordList sortedNames(const word& className) const;
// Member Operators
//- Disallow default bitwise assignment
void operator=(const IOobjectList&) = delete;
}; };

View File

@ -74,9 +74,6 @@ class ISstream
//- Read a variable name (includes '{') //- Read a variable name (includes '{')
Istream& readVariable(string&); Istream& readVariable(string&);
//- Disallow default bitwise assignment
void operator=(const ISstream&) = delete;
public: public:
@ -195,6 +192,12 @@ public:
//- Print description of IOstream to Ostream //- Print description of IOstream to Ostream
virtual void print(Ostream&) const; virtual void print(Ostream&) const;
// Member Operators
//- Disallow default bitwise assignment
void operator=(const ISstream&) = delete;
}; };

View File

@ -59,12 +59,6 @@ class OSstream
ostream& os_; ostream& os_;
// Private Member Functions
//- Disallow default bitwise assignment
void operator=(const OSstream&) = delete;
public: public:
// Constructors // Constructors
@ -195,6 +189,12 @@ public:
//- Print description of IOstream to Ostream //- Print description of IOstream to Ostream
virtual void print(Ostream&) const; virtual void print(Ostream&) const;
// Member Operators
//- Disallow default bitwise assignment
void operator=(const OSstream&) = delete;
}; };

View File

@ -136,14 +136,6 @@ class OSHA1stream
public OSstream public OSstream
{ {
// Private Member Functions
//- Disallow default bitwise copy construct
OSHA1stream(const OSHA1stream&) = delete;
//- Disallow default bitwise assignment
void operator=(const OSHA1stream&) = delete;
public: public:
// Constructors // Constructors
@ -164,6 +156,9 @@ public:
) )
{} {}
//- Disallow default bitwise copy construct
OSHA1stream(const OSHA1stream&) = delete;
//- Destructor //- Destructor
~OSHA1stream() ~OSHA1stream()
@ -174,8 +169,6 @@ public:
// Member functions // Member functions
// Access
//- Full access to the sha1 //- Full access to the sha1
Foam::SHA1& sha1() Foam::SHA1& sha1()
{ {
@ -188,14 +181,17 @@ public:
return sha1().digest(); return sha1().digest();
} }
// Edit
//- Clear the SHA1 calculation //- Clear the SHA1 calculation
void rewind() void rewind()
{ {
sha1().clear(); sha1().clear();
} }
// Member Operators
//- Disallow default bitwise assignment
void operator=(const OSHA1stream&) = delete;
}; };

View File

@ -130,15 +130,6 @@ public:
bool empty_; bool empty_;
// Private Member Functions
//- Disallow default bitwise copy construct
compound(const compound&) = delete;
//- Disallow default bitwise assignment
void operator=(const compound&) = delete;
public: public:
//- Runtime type information //- Runtime type information
@ -164,6 +155,9 @@ public:
empty_(false) empty_(false)
{} {}
//- Disallow default bitwise copy construct
compound(const compound&) = delete;
// Selectors // Selectors
@ -177,8 +171,6 @@ public:
// Member Functions // Member Functions
// Access
//- Return true if name is a compound type //- Return true if name is a compound type
static bool isCompound(const word& name); static bool isCompound(const word& name);
@ -194,16 +186,15 @@ public:
virtual label size() const = 0; virtual label size() const = 0;
// Check
// Edit
// Write
virtual void write(Ostream&) const = 0; virtual void write(Ostream&) const = 0;
// Member Operators
//- Disallow default bitwise assignment
void operator=(const compound&) = delete;
// IOstream Operators // IOstream Operators
friend Ostream& operator<<(Ostream&, const compound&); friend Ostream& operator<<(Ostream&, const compound&);

View File

@ -57,6 +57,7 @@ SourceFiles
namespace Foam namespace Foam
{ {
class dlLibraryTable; class dlLibraryTable;
namespace functionEntries namespace functionEntries
@ -71,21 +72,18 @@ class calcEntry
public functionEntry public functionEntry
{ {
// Private Member Functions
//- Disallow default bitwise copy construct
calcEntry(const calcEntry&) = delete;
//- Disallow default bitwise assignment
void operator=(const calcEntry&) = delete;
public: public:
//- Runtime type information //- Runtime type information
ClassName("calc"); ClassName("calc");
// Constructors
//- Disallow default bitwise copy construct
calcEntry(const calcEntry&) = delete;
// Member Functions // Member Functions
//- Execute the functionEntry in a sub-dict context //- Execute the functionEntry in a sub-dict context
@ -99,6 +97,11 @@ public:
Istream& Istream&
); );
// Member Operators
//- Disallow default bitwise assignment
void operator=(const calcEntry&) = delete;
}; };

View File

@ -138,13 +138,6 @@ class codeStream
); );
//- Disallow default bitwise copy construct
codeStream(const codeStream&) = delete;
//- Disallow default bitwise assignment
void operator=(const codeStream&) = delete;
public: public:
// Static data members // Static data members
@ -162,6 +155,12 @@ public:
ClassName("codeStream"); ClassName("codeStream");
// Constructors
//- Disallow default bitwise copy construct
codeStream(const codeStream&) = delete;
// Member Functions // Member Functions
//- Execute the functionEntry in a sub-dict context //- Execute the functionEntry in a sub-dict context
@ -175,6 +174,11 @@ public:
Istream& Istream&
); );
// Member Operators
//- Disallow default bitwise assignment
void operator=(const codeStream&) = delete;
}; };

View File

@ -70,12 +70,6 @@ class functionEntry
//- Read line as string token //- Read line as string token
static token readLine(const word& key, Istream& is); static token readLine(const word& key, Istream& is);
//- Disallow default bitwise copy construct
functionEntry(const functionEntry&) = delete;
//- Disallow default bitwise assignment
void operator=(const functionEntry&) = delete;
public: public:
@ -84,6 +78,9 @@ public:
//- Construct from keyword, parent dictionary and Istream //- Construct from keyword, parent dictionary and Istream
functionEntry(const word&, const dictionary&, Istream&); functionEntry(const word&, const dictionary&, Istream&);
//- Disallow default bitwise copy construct
functionEntry(const functionEntry&) = delete;
// Member Function Selectors // Member Function Selectors
@ -133,6 +130,12 @@ public:
//- Write //- Write
virtual void write(Ostream&) const; virtual void write(Ostream&) const;
// Member Operators
//- Disallow default bitwise assignment
void operator=(const functionEntry&) = delete;
}; };

View File

@ -84,22 +84,29 @@ class ifEntry
Istream& is Istream& is
); );
//- Disallow default bitwise copy construct
ifEntry(const ifEntry&) = delete;
//- Disallow default bitwise assignment
void operator=(const ifEntry&) = delete;
public: public:
//- Runtime type information //- Runtime type information
ClassName("if"); ClassName("if");
// Constructors
//- Disallow default bitwise copy construct
ifEntry(const ifEntry&) = delete;
// Member Functions // Member Functions
//- Execute the functionEntry in a sub-dict context //- Execute the functionEntry in a sub-dict context
static bool execute(dictionary& parentDict, Istream& is); static bool execute(dictionary& parentDict, Istream& is);
// Member Operators
//- Disallow default bitwise assignment
void operator=(const ifEntry&) = delete;
}; };

View File

@ -155,26 +155,28 @@ protected:
); );
private:
// Private Member Functions
//- Disallow default bitwise copy construct
ifeqEntry(const ifeqEntry&) = delete;
//- Disallow default bitwise assignment
void operator=(const ifeqEntry&) = delete;
public: public:
//- Runtime type information //- Runtime type information
ClassName("ifeq"); ClassName("ifeq");
// Constructors
//- Disallow default bitwise copy construct
ifeqEntry(const ifeqEntry&) = delete;
// Member Functions // Member Functions
//- Execute the functionEntry in a sub-dict context //- Execute the functionEntry in a sub-dict context
static bool execute(dictionary& parentDict, Istream& is); static bool execute(dictionary& parentDict, Istream& is);
// Member Operators
//- Disallow default bitwise assignment
void operator=(const ifeqEntry&) = delete;
}; };

View File

@ -64,13 +64,6 @@ class includeEntry
: :
public functionEntry public functionEntry
{ {
// Private Member Functions
//- Disallow default bitwise copy construct
includeEntry(const includeEntry&) = delete;
//- Disallow default bitwise assignment
void operator=(const includeEntry&) = delete;
protected: protected:
@ -87,6 +80,7 @@ protected:
const dictionary& const dictionary&
); );
public: public:
// Static data members // Static data members
@ -99,6 +93,12 @@ public:
ClassName("include"); ClassName("include");
// Constructors
//- Disallow default bitwise copy construct
includeEntry(const includeEntry&) = delete;
// Member Functions // Member Functions
//- Execute the functionEntry in a sub-dict context //- Execute the functionEntry in a sub-dict context
@ -112,6 +112,11 @@ public:
Istream& Istream&
); );
// Member Operators
//- Disallow default bitwise assignment
void operator=(const includeEntry&) = delete;
}; };

View File

@ -81,12 +81,6 @@ class includeEtcEntry
{ {
// Private Member Functions // Private Member Functions
//- Disallow default bitwise copy construct
includeEtcEntry(const includeEtcEntry&) = delete;
//- Disallow default bitwise assignment
void operator=(const includeEtcEntry&) = delete;
//- Expand include fileName and return //- Expand include fileName and return
static fileName includeEtcFileName static fileName includeEtcFileName
( (
@ -107,6 +101,12 @@ public:
ClassName("includeEtc"); ClassName("includeEtc");
// Constructors
//- Disallow default bitwise copy construct
includeEtcEntry(const includeEtcEntry&) = delete;
// Member Functions // Member Functions
//- Execute the functionEntry in a sub-dict context //- Execute the functionEntry in a sub-dict context
@ -119,6 +119,12 @@ public:
primitiveEntry&, primitiveEntry&,
Istream& Istream&
); );
// Member Operators
//- Disallow default bitwise assignment
void operator=(const includeEtcEntry&) = delete;
}; };

View File

@ -58,13 +58,6 @@ class includeIfPresentEntry
: :
public includeEntry public includeEntry
{ {
// Private Member Functions
//- Disallow default bitwise copy construct
includeIfPresentEntry(const includeIfPresentEntry&) = delete;
//- Disallow default bitwise assignment
void operator=(const includeIfPresentEntry&) = delete;
public: public:
@ -72,6 +65,12 @@ public:
ClassName("includeIfPresent"); ClassName("includeIfPresent");
// Constructors
//- Disallow default bitwise copy construct
includeIfPresentEntry(const includeIfPresentEntry&) = delete;
// Member Functions // Member Functions
//- Execute the functionEntry in a sub-dict context //- Execute the functionEntry in a sub-dict context
@ -85,6 +84,11 @@ public:
Istream& Istream&
); );
// Member Operators
//- Disallow default bitwise assignment
void operator=(const includeIfPresentEntry&) = delete;
}; };

View File

@ -85,12 +85,6 @@ class inputModeEntry
//- Read the mode as a word and set enum appropriately //- Read the mode as a word and set enum appropriately
static void setMode(Istream&); static void setMode(Istream&);
//- Disallow default bitwise copy construct
inputModeEntry(const inputModeEntry&) = delete;
//- Disallow default bitwise assignment
void operator=(const inputModeEntry&) = delete;
public: public:
@ -98,6 +92,12 @@ public:
ClassName("inputMode"); ClassName("inputMode");
// Constructors
//- Disallow default bitwise copy construct
inputModeEntry(const inputModeEntry&) = delete;
// Member Functions // Member Functions
//- Execute the functionEntry in a sub-dict context //- Execute the functionEntry in a sub-dict context
@ -117,6 +117,12 @@ public:
//- Return true if the inputMode is %error //- Return true if the inputMode is %error
static bool error(); static bool error();
// Member Operators
//- Disallow default bitwise assignment
void operator=(const inputModeEntry&) = delete;
}; };

View File

@ -75,12 +75,6 @@ class negEntry
Istream& is Istream& is
); );
//- Disallow default bitwise copy construct
negEntry(const negEntry&) = delete;
//- Disallow default bitwise assignment
void operator=(const negEntry&) = delete;
public: public:
@ -88,6 +82,12 @@ public:
ClassName("neg"); ClassName("neg");
// Constructors
//- Disallow default bitwise copy construct
negEntry(const negEntry&) = delete;
// Member Functions // Member Functions
//- Execute the functionEntry in a sub-dict context //- Execute the functionEntry in a sub-dict context
@ -100,6 +100,12 @@ public:
primitiveEntry&, primitiveEntry&,
Istream& Istream&
); );
// Member Operators
//- Disallow default bitwise assignment
void operator=(const negEntry&) = delete;
}; };

View File

@ -64,14 +64,6 @@ class removeEntry
: :
public functionEntry public functionEntry
{ {
// Private Member Functions
//- Disallow default bitwise copy construct
removeEntry(const removeEntry&) = delete;
//- Disallow default bitwise assignment
void operator=(const removeEntry&) = delete;
public: public:
@ -79,10 +71,22 @@ public:
ClassName("remove"); ClassName("remove");
// Constructors
//- Disallow default bitwise copy construct
removeEntry(const removeEntry&) = delete;
// Member Functions // Member Functions
//- Execute the functionEntry in a sub-dict context //- Execute the functionEntry in a sub-dict context
static bool execute(dictionary& parentDict, Istream&); static bool execute(dictionary& parentDict, Istream&);
// Member Operators
//- Disallow default bitwise assignment
void operator=(const removeEntry&) = delete;
}; };

View File

@ -82,12 +82,6 @@ class codedBase
//- Create library based on the dynamicCodeContext //- Create library based on the dynamicCodeContext
void createLibrary(dynamicCode&, const dynamicCodeContext&) const; void createLibrary(dynamicCode&, const dynamicCodeContext&) const;
//- Disallow default bitwise copy construct
codedBase(const codedBase&) = delete;
//- Disallow default bitwise assignment
void operator=(const codedBase&) = delete;
protected: protected:
@ -124,9 +118,18 @@ public:
//- Construct null //- Construct null
codedBase(); codedBase();
//- Disallow default bitwise copy construct
codedBase(const codedBase&) = delete;
//- Destructor //- Destructor
virtual ~codedBase(); virtual ~codedBase();
// Member Operators
//- Disallow default bitwise assignment
void operator=(const codedBase&) = delete;
}; };

View File

@ -56,13 +56,6 @@ class dlLibraryTable
DynamicList<fileName> libNames_; DynamicList<fileName> libNames_;
//- Disallow default bitwise copy construct
dlLibraryTable(const dlLibraryTable&) = delete;
//- Disallow default bitwise assignment
void operator=(const dlLibraryTable&) = delete;
public: public:
// Declare name of the class and its debug switch // Declare name of the class and its debug switch
@ -77,6 +70,9 @@ public:
// the libraries to load // the libraries to load
dlLibraryTable(const dictionary&, const word&); dlLibraryTable(const dictionary&, const word&);
//- Disallow default bitwise copy construct
dlLibraryTable(const dlLibraryTable&) = delete;
//- Destructor //- Destructor
~dlLibraryTable(); ~dlLibraryTable();
@ -107,6 +103,12 @@ public:
const word& libsEntry, const word& libsEntry,
const TablePtr& tablePtr const TablePtr& tablePtr
); );
// Member Operators
//- Disallow default bitwise assignment
void operator=(const dlLibraryTable&) = delete;
}; };

View File

@ -90,15 +90,6 @@ private:
std::string makeOptions_; std::string makeOptions_;
// Private Member Functions
//- Disallow default bitwise copy construct
dynamicCode(const dynamicCode&) = delete;
//- Disallow default bitwise assignment
void operator=(const dynamicCode&) = delete;
protected: protected:
// Static data members // Static data members
@ -181,6 +172,9 @@ public:
const word& codeDirName = "" const word& codeDirName = ""
); );
//- Disallow default bitwise copy construct
dynamicCode(const dynamicCode&) = delete;
// Member functions // Member functions
@ -278,6 +272,11 @@ public:
//- Compile a libso //- Compile a libso
bool wmakeLibso() const; bool wmakeLibso() const;
// Member Operators
//- Disallow default bitwise assignment
void operator=(const dynamicCode&) = delete;
}; };

View File

@ -62,12 +62,6 @@ class IOOutputFilter
public IOdictionary, public IOdictionary,
public OutputFilter public OutputFilter
{ {
// Private Member Functions
// Disallow default bitwise copy construct and assignment
IOOutputFilter(const IOOutputFilter&) = delete;
void operator=(const IOOutputFilter&);
public: public:
@ -106,6 +100,9 @@ public:
const bool loadFromFile = false const bool loadFromFile = false
); );
//- Disallow default bitwise copy construct
IOOutputFilter(const IOOutputFilter&) = delete;
//- Destructor //- Destructor
virtual ~IOOutputFilter(); virtual ~IOOutputFilter();
@ -133,6 +130,12 @@ public:
//- Update for changes of mesh //- Update for changes of mesh
virtual void movePoints(const polyMesh& mesh); virtual void movePoints(const polyMesh& mesh);
// Member Operators
//- Disallow default bitwise assignment
void operator=(const IOOutputFilter&) = delete;
}; };

View File

@ -145,15 +145,6 @@ class functionObject
const word name_; const word name_;
// Private Member Functions
//- Disallow default bitwise copy construct
functionObject(const functionObject&) = delete;
//- Disallow default bitwise assignment
void operator=(const functionObject&) = delete;
public: public:
//- Runtime type information //- Runtime type information
@ -192,6 +183,9 @@ public:
return autoPtr<functionObject>(nullptr); return autoPtr<functionObject>(nullptr);
} }
//- Disallow default bitwise copy construct
functionObject(const functionObject&) = delete;
// Selectors // Selectors
@ -245,6 +239,12 @@ public:
//- Update for changes of mesh //- Update for changes of mesh
virtual void movePoints(const polyMesh& mesh); virtual void movePoints(const polyMesh& mesh);
// Member Operators
//- Disallow default bitwise assignment
void operator=(const functionObject&) = delete;
}; };

View File

@ -95,12 +95,6 @@ class functionObjectList
// configuration files, add to the given map and recurse // configuration files, add to the given map and recurse
static void listDir(const fileName& dir, HashSet<word>& foMap); static void listDir(const fileName& dir, HashSet<word>& foMap);
//- Disallow default bitwise copy construct
functionObjectList(const functionObjectList&) = delete;
//- Disallow default bitwise assignment
void operator=(const functionObjectList&) = delete;
public: public:
@ -136,6 +130,9 @@ public:
const bool execution=true const bool execution=true
); );
//- Disallow default bitwise copy construct
functionObjectList(const functionObjectList&) = delete;
//- Construct and return a functionObjectList for an application. //- Construct and return a functionObjectList for an application.
// If the "dict" argument is specified the functionObjectList is // If the "dict" argument is specified the functionObjectList is
// constructed from that dictionary which is returned as // constructed from that dictionary which is returned as
@ -288,6 +285,12 @@ public:
//- Update for changes of mesh //- Update for changes of mesh
void movePoints(const polyMesh& mesh); void movePoints(const polyMesh& mesh);
// Member Operators
//- Disallow default bitwise assignment
void operator=(const functionObjectList&) = delete;
}; };

View File

@ -86,17 +86,6 @@ protected:
virtual void writeFileHeader(const label i = 0) = 0; virtual void writeFileHeader(const label i = 0) = 0;
private:
// Private Member Functions
//- Disallow default bitwise copy construct
logFiles(const logFiles&) = delete;
//- Disallow default bitwise assignment
void operator=(const logFiles&) = delete;
public: public:
// Constructors // Constructors
@ -108,6 +97,9 @@ public:
const word& prefix const word& prefix
); );
//- Disallow default bitwise copy construct
logFiles(const logFiles&) = delete;
//- Destructor //- Destructor
virtual ~logFiles(); virtual ~logFiles();
@ -129,6 +121,12 @@ public:
//- Write function //- Write function
virtual bool write(); virtual bool write();
// Member Operators
//- Disallow default bitwise assignment
void operator=(const logFiles&) = delete;
}; };

View File

@ -102,17 +102,6 @@ protected:
bool clearObject(const word& fieldName); bool clearObject(const word& fieldName);
private:
// Private Member Functions
//- Disallow default bitwise copy construct
regionFunctionObject(const regionFunctionObject&) = delete;
//- Disallow default bitwise assignment
void operator=(const regionFunctionObject&) = delete;
public: public:
//- Runtime type information //- Runtime type information
@ -139,6 +128,9 @@ public:
const dictionary& dict const dictionary& dict
); );
//- Disallow default bitwise copy construct
regionFunctionObject(const regionFunctionObject&) = delete;
//- Destructor //- Destructor
virtual ~regionFunctionObject(); virtual ~regionFunctionObject();
@ -148,6 +140,12 @@ public:
//- Read optional controls //- Read optional controls
virtual bool read(const dictionary&); virtual bool read(const dictionary&);
// Member Operators
//- Disallow default bitwise assignment
void operator=(const regionFunctionObject&) = delete;
}; };

View File

@ -92,15 +92,6 @@ private:
label executionIndex_; label executionIndex_;
// Private Member Functions
//- Disallow default bitwise copy construct and assignment
timeControl(const timeControl&) = delete;
//- Disallow default bitwise assignment
void operator=(const timeControl&) = delete;
public: public:
// Constructors // Constructors
@ -113,6 +104,9 @@ public:
const word& prefix const word& prefix
); );
//- Disallow default bitwise copy construct and assignment
timeControl(const timeControl&) = delete;
//- Destructor //- Destructor
~timeControl(); ~timeControl();
@ -137,6 +131,12 @@ public:
//- Return the index of the previous execution //- Return the index of the previous execution
inline label executionIndex() const; inline label executionIndex() const;
// Member Operators
//- Disallow default bitwise assignment
void operator=(const timeControl&) = delete;
}; };

View File

@ -99,12 +99,6 @@ class timeControl
//- Returns true if within time bounds //- Returns true if within time bounds
bool active() const; bool active() const;
//- Disallow default bitwise copy construct
timeControl(const timeControl&) = delete;
//- Disallow default bitwise assignment
void operator=(const timeControl&) = delete;
public: public:
@ -122,6 +116,9 @@ public:
const dictionary& const dictionary&
); );
//- Disallow default bitwise copy construct
timeControl(const timeControl&) = delete;
// Member Functions // Member Functions
@ -169,6 +166,12 @@ public:
//- Update for changes of mesh //- Update for changes of mesh
virtual void movePoints(const polyMesh& mesh); virtual void movePoints(const polyMesh& mesh);
// Member Operators
//- Disallow default bitwise assignment
void operator=(const timeControl&) = delete;
}; };

View File

@ -67,17 +67,6 @@ protected:
const word prefix_; const word prefix_;
private:
// Private Member Functions
//- Disallow default bitwise copy construct
writeFile(const writeFile&) = delete;
//- Disallow default bitwise assignment
void operator=(const writeFile&) = delete;
public: public:
//- Directory prefix //- Directory prefix
@ -96,6 +85,9 @@ public:
const word& prefix const word& prefix
); );
//- Disallow default bitwise copy construct
writeFile(const writeFile&) = delete;
//- Destructor //- Destructor
~writeFile(); ~writeFile();
@ -138,6 +130,12 @@ public:
//- Return width of character stream output //- Return width of character stream output
label charWidth() const; label charWidth() const;
// Member Operators
//- Disallow default bitwise assignment
void operator=(const writeFile&) = delete;
}; };

View File

@ -110,17 +110,6 @@ protected:
virtual wordList objectNames(); virtual wordList objectNames();
private:
// Private Member Functions
//- Disallow default bitwise copy construct
writeLocalObjects(const writeLocalObjects&) = delete;
//- Disallow default bitwise assignment
void operator=(const writeLocalObjects&) = delete;
public: public:
// Constructors // Constructors
@ -132,6 +121,9 @@ public:
const Switch& logRef const Switch& logRef
); );
//- Disallow default bitwise copy construct
writeLocalObjects(const writeLocalObjects&) = delete;
//- Destructor //- Destructor
virtual ~writeLocalObjects(); virtual ~writeLocalObjects();
@ -144,6 +136,12 @@ public:
//- Read the list of objects to be written //- Read the list of objects to be written
virtual bool read(const dictionary&); virtual bool read(const dictionary&);
// Member Operators
//- Disallow default bitwise assignment
void operator=(const writeLocalObjects&) = delete;
}; };

View File

@ -117,17 +117,6 @@ protected:
virtual void writeObject(const regIOobject& obj); virtual void writeObject(const regIOobject& obj);
private:
// Private Member Functions
//- Disallow default bitwise copy construct
writeObjectsBase(const writeObjectsBase&) = delete;
//- Disallow default bitwise assignment
void operator=(const writeObjectsBase&) = delete;
public: public:
// Constructors // Constructors
@ -139,6 +128,9 @@ public:
const Switch& logRef const Switch& logRef
); );
//- Disallow default bitwise copy construct
writeObjectsBase(const writeObjectsBase&) = delete;
//- Destructor //- Destructor
virtual ~writeObjectsBase(); virtual ~writeObjectsBase();
@ -154,6 +146,12 @@ public:
//- Write function //- Write function
virtual bool write(); virtual bool write();
// Member Operators
//- Disallow default bitwise assignment
void operator=(const writeObjectsBase&) = delete;
}; };

View File

@ -74,12 +74,6 @@ class objectRegistry
// Used to terminate searching within the ancestors // Used to terminate searching within the ancestors
bool parentNotTime() const; bool parentNotTime() const;
//- Disallow Copy constructor
objectRegistry(const objectRegistry&);
//- Disallow default bitwise copy construct and assignment
void operator=(const objectRegistry&) = delete;
public: public:
@ -105,6 +99,9 @@ public:
const label nIoObjects = 128 const label nIoObjects = 128
); );
//- Disallow Copy constructor
objectRegistry(const objectRegistry&);
//- Destructor //- Destructor
virtual ~objectRegistry(); virtual ~objectRegistry();
@ -234,6 +231,12 @@ public:
IOstream::compressionType cmp, IOstream::compressionType cmp,
const bool write const bool write
) const; ) const;
// Member Operators
//- Disallow default bitwise copy construct and assignment
void operator=(const objectRegistry&) = delete;
}; };

View File

@ -96,20 +96,6 @@ private:
const bool preserveCouples const bool preserveCouples
); );
////- Disallow default bitwise copy construct
// SlicedGeometricField(const SlicedGeometricField&) = delete;
//- Disallow default bitwise assignment
void operator=(const SlicedGeometricField&) = delete;
//- Disallow standard assignment to GeometricField,
// == assignment is allowed.
void operator=(const GeometricField<Type, PatchField, GeoMesh>&);
//- Disallow standard assignment to tmp<GeometricField>,
// == assignment is allowed.
void operator=(const tmp<GeometricField<Type, PatchField, GeoMesh>>&);
public: public:
@ -172,6 +158,26 @@ public:
//- Correct boundary field //- Correct boundary field
void correctBoundaryConditions(); void correctBoundaryConditions();
// Member Operators
//- Disallow default bitwise assignment
void operator=(const SlicedGeometricField&) = delete;
//- Disallow standard assignment to GeometricField,
// == assignment is allowed.
void operator=
(
const GeometricField<Type, PatchField, GeoMesh>&
) = delete;
//- Disallow standard assignment to tmp<GeometricField>,
// == assignment is allowed.
void operator=
(
const tmp<GeometricField<Type, PatchField, GeoMesh>>&
) = delete;
}; };

View File

@ -54,15 +54,6 @@ class cloud
public objectRegistry public objectRegistry
{ {
// Private Member Functions
//- Disallow default bitwise copy construct
cloud(const cloud&) = delete;
//- Disallow default bitwise assignment
void operator=(const cloud&) = delete;
public: public:
//- Runtime type information //- Runtime type information
@ -80,6 +71,9 @@ public:
//- Construct for the given objectRegistry and named cloud instance //- Construct for the given objectRegistry and named cloud instance
cloud(const objectRegistry&, const word& cloudName = defaultName); cloud(const objectRegistry&, const word& cloudName = defaultName);
//- Disallow default bitwise copy construct
cloud(const cloud&) = delete;
//- Destructor //- Destructor
virtual ~cloud(); virtual ~cloud();
@ -92,6 +86,12 @@ public:
//- Remap the cells of particles corresponding to the //- Remap the cells of particles corresponding to the
// mesh topology change // mesh topology change
virtual void autoMap(const mapPolyMesh&); virtual void autoMap(const mapPolyMesh&);
// Member Operators
//- Disallow default bitwise assignment
void operator=(const cloud&) = delete;
}; };

View File

@ -53,18 +53,6 @@ class pointPatchFieldMapperPatchRef
const pointPatch& targetPatch_; const pointPatch& targetPatch_;
// Private Member Functions
//- Disallow default bitwise copy construct
pointPatchFieldMapperPatchRef
(
const pointPatchFieldMapperPatchRef&
) = delete;
//- Disallow default bitwise assignment
void operator=(const pointPatchFieldMapperPatchRef&) = delete;
public: public:
// Constructors // Constructors
@ -80,6 +68,12 @@ public:
targetPatch_(target) targetPatch_(target)
{} {}
//- Disallow default bitwise copy construct
pointPatchFieldMapperPatchRef
(
const pointPatchFieldMapperPatchRef&
) = delete;
// Member functions // Member functions
@ -92,6 +86,12 @@ public:
{ {
return targetPatch_; return targetPatch_;
} }
// Member Operators
//- Disallow default bitwise assignment
void operator=(const pointPatchFieldMapperPatchRef&) = delete;
}; };

View File

@ -56,16 +56,6 @@ class objectRegistry;
class interpolationWeights class interpolationWeights
{ {
private:
// Private Member Functions
//- Disallow default bitwise copy construct
interpolationWeights(const interpolationWeights&) = delete;
//- Disallow default bitwise assignment
void operator=(const interpolationWeights&) = delete;
protected: protected:
const scalarField& samples_; const scalarField& samples_;
@ -95,6 +85,9 @@ public:
//- Construct from components //- Construct from components
interpolationWeights(const scalarField& samples); interpolationWeights(const scalarField& samples);
//- Disallow default bitwise copy construct
interpolationWeights(const interpolationWeights&) = delete;
// Selectors // Selectors
@ -140,6 +133,11 @@ public:
>::type >::type
weightedSum(const ListType1& f1, const ListType2& f2); weightedSum(const ListType1& f1, const ListType2& f2);
// Member Operators
//- Disallow default bitwise assignment
void operator=(const interpolationWeights&) = delete;
}; };
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -114,12 +114,6 @@ class PatchToPatchInterpolation
// Private Member Functions // Private Member Functions
//- Disallow default bitwise copy construct
PatchToPatchInterpolation(const PatchToPatchInterpolation&) = delete;
//- Disallow default bitwise assignment
void operator=(const PatchToPatchInterpolation&) = delete;
//- Calculate point weights //- Calculate point weights
void calcPointAddressing() const; void calcPointAddressing() const;
@ -163,6 +157,9 @@ public:
const intersection::direction dir = intersection::direction::vector const intersection::direction dir = intersection::direction::vector
); );
//- Disallow default bitwise copy construct
PatchToPatchInterpolation(const PatchToPatchInterpolation&) = delete;
//- Destructor //- Destructor
~PatchToPatchInterpolation(); ~PatchToPatchInterpolation();
@ -221,6 +218,11 @@ public:
template<class Type> template<class Type>
tmp<Field<Type>> faceInterpolate(const tmp<Field<Type>>& tpf) const; tmp<Field<Type>> faceInterpolate(const tmp<Field<Type>>& tpf) const;
// Member Operators
//- Disallow default bitwise assignment
void operator=(const PatchToPatchInterpolation&) = delete;
}; };

View File

@ -68,16 +68,6 @@ class PrimitivePatchInterpolation
// Private Member Functions // Private Member Functions
//- Disallow default bitwise copy construct
PrimitivePatchInterpolation
(
const PrimitivePatchInterpolation&
) = delete;
//- Disallow default bitwise assignment
void operator=(const PrimitivePatchInterpolation&) = delete;
//- Face-to-point weights //- Face-to-point weights
const scalarListList& faceToPointWeights() const; const scalarListList& faceToPointWeights() const;
@ -101,6 +91,12 @@ public:
//- Construct from PrimitivePatch //- Construct from PrimitivePatch
PrimitivePatchInterpolation(const Patch& p); PrimitivePatchInterpolation(const Patch& p);
//- Disallow default bitwise copy construct
PrimitivePatchInterpolation
(
const PrimitivePatchInterpolation&
) = delete;
//- Destructor //- Destructor
~PrimitivePatchInterpolation(); ~PrimitivePatchInterpolation();
@ -149,6 +145,12 @@ public:
//- Do what is necessary if the mesh has moved //- Do what is necessary if the mesh has moved
bool movePoints(); bool movePoints();
// Member Operators
//- Disallow default bitwise assignment
void operator=(const PrimitivePatchInterpolation&) = delete;
}; };

View File

@ -95,9 +95,6 @@ class uniformInterpolationTable
//- Check that the table is valid //- Check that the table is valid
void checkTable() const; void checkTable() const;
//- Disallow default bitwise assignment
void operator=(const uniformInterpolationTable&) = delete;
public: public:
@ -186,6 +183,12 @@ public:
//- Write //- Write
void write() const; void write() const;
// Member Operators
//- Disallow default bitwise assignment
void operator=(const uniformInterpolationTable&) = delete;
}; };

View File

@ -58,14 +58,6 @@ class LduInterfaceField
: :
public lduInterfaceField public lduInterfaceField
{ {
// Private Member Functions
//- Disallow default bitwise copy construct
LduInterfaceField(const LduInterfaceField&) = delete;
//- Disallow default bitwise assignment
void operator=(const LduInterfaceField&) = delete;
public: public:
@ -81,6 +73,9 @@ public:
lduInterfaceField(patch) lduInterfaceField(patch)
{} {}
//- Disallow default bitwise copy construct
LduInterfaceField(const LduInterfaceField&) = delete;
//- Destructor //- Destructor
virtual ~LduInterfaceField(); virtual ~LduInterfaceField();
@ -114,6 +109,12 @@ public:
const scalarField&, const scalarField&,
const Pstream::commsTypes commsType const Pstream::commsTypes commsType
) const = 0; ) const = 0;
// Member Operators
//- Disallow default bitwise assignment
void operator=(const LduInterfaceField&) = delete;
}; };

View File

@ -60,15 +60,6 @@ class DiagonalPreconditioner
Field<DType> rD; Field<DType> rD;
// Private Member Functions
//- Disallow default bitwise copy construct
DiagonalPreconditioner(const DiagonalPreconditioner&) = delete;
//- Disallow default bitwise assignment
void operator=(const DiagonalPreconditioner&) = delete;
public: public:
//- Runtime type information //- Runtime type information
@ -84,6 +75,9 @@ public:
const dictionary& preconditionerDict const dictionary& preconditionerDict
); );
//- Disallow default bitwise copy construct
DiagonalPreconditioner(const DiagonalPreconditioner&) = delete;
// Destructor // Destructor
@ -114,6 +108,12 @@ public:
{ {
return(precondition(wT, rT)); return(precondition(wT, rT));
} }
// Member Operators
//- Disallow default bitwise assignment
void operator=(const DiagonalPreconditioner&) = delete;
}; };

View File

@ -51,14 +51,6 @@ class NoPreconditioner
: :
public LduMatrix<Type, DType, LUType>::preconditioner public LduMatrix<Type, DType, LUType>::preconditioner
{ {
// Private Member Functions
//- Disallow default bitwise copy construct
NoPreconditioner(const NoPreconditioner&) = delete;
//- Disallow default bitwise assignment
void operator=(const NoPreconditioner&) = delete;
public: public:
@ -75,6 +67,9 @@ public:
const dictionary& preconditionerDict const dictionary& preconditionerDict
); );
//- Disallow default bitwise copy construct
NoPreconditioner(const NoPreconditioner&) = delete;
// Destructor // Destructor
@ -105,6 +100,12 @@ public:
{ {
return(precondition(wT, rT)); return(precondition(wT, rT));
} }
// Member Operators
//- Disallow default bitwise assignment
void operator=(const NoPreconditioner&) = delete;
}; };

View File

@ -51,14 +51,6 @@ class DiagonalSolver
: :
public LduMatrix<Type, DType, LUType>::solver public LduMatrix<Type, DType, LUType>::solver
{ {
// Private Member Functions
//- Disallow default bitwise copy construct
DiagonalSolver(const DiagonalSolver&) = delete;
//- Disallow default bitwise assignment
void operator=(const DiagonalSolver&) = delete;
public: public:
@ -76,6 +68,9 @@ public:
const dictionary& solverDict const dictionary& solverDict
); );
//- Disallow default bitwise copy construct
DiagonalSolver(const DiagonalSolver&) = delete;
// Member Functions // Member Functions
@ -84,6 +79,12 @@ public:
//- Solve the matrix with this solver //- Solve the matrix with this solver
virtual SolverPerformance<Type> solve(Field<Type>& psi) const; virtual SolverPerformance<Type> solve(Field<Type>& psi) const;
// Member Operators
//- Disallow default bitwise assignment
void operator=(const DiagonalSolver&) = delete;
}; };

View File

@ -52,14 +52,6 @@ class PBiCCCG
: :
public LduMatrix<Type, DType, LUType>::solver public LduMatrix<Type, DType, LUType>::solver
{ {
// Private Member Functions
//- Disallow default bitwise copy construct
PBiCCCG(const PBiCCCG&) = delete;
//- Disallow default bitwise assignment
void operator=(const PBiCCCG&) = delete;
public: public:
@ -77,6 +69,9 @@ public:
const dictionary& solverDict const dictionary& solverDict
); );
//- Disallow default bitwise copy construct
PBiCCCG(const PBiCCCG&) = delete;
// Destructor // Destructor
@ -88,6 +83,12 @@ public:
//- Solve the matrix with this solver //- Solve the matrix with this solver
virtual SolverPerformance<Type> solve(Field<Type>& psi) const; virtual SolverPerformance<Type> solve(Field<Type>& psi) const;
// Member Operators
//- Disallow default bitwise assignment
void operator=(const PBiCCCG&) = delete;
}; };

View File

@ -52,14 +52,6 @@ class PBiCICG
: :
public LduMatrix<Type, DType, LUType>::solver public LduMatrix<Type, DType, LUType>::solver
{ {
// Private Member Functions
//- Disallow default bitwise copy construct
PBiCICG(const PBiCICG&) = delete;
//- Disallow default bitwise assignment
void operator=(const PBiCICG&) = delete;
public: public:
@ -77,6 +69,9 @@ public:
const dictionary& solverDict const dictionary& solverDict
); );
//- Disallow default bitwise copy construct
PBiCICG(const PBiCICG&) = delete;
// Destructor // Destructor
@ -88,6 +83,12 @@ public:
//- Solve the matrix with this solver //- Solve the matrix with this solver
virtual SolverPerformance<Type> solve(Field<Type>& psi) const; virtual SolverPerformance<Type> solve(Field<Type>& psi) const;
// Member Operators
//- Disallow default bitwise assignment
void operator=(const PBiCICG&) = delete;
}; };

View File

@ -52,14 +52,6 @@ class PCICG
: :
public LduMatrix<Type, DType, LUType>::solver public LduMatrix<Type, DType, LUType>::solver
{ {
// Private Member Functions
//- Disallow default bitwise copy construct
PCICG(const PCICG&) = delete;
//- Disallow default bitwise assignment
void operator=(const PCICG&) = delete;
public: public:
@ -77,6 +69,9 @@ public:
const dictionary& solverDict const dictionary& solverDict
); );
//- Disallow default bitwise copy construct
PCICG(const PCICG&) = delete;
// Destructor // Destructor
@ -88,6 +83,12 @@ public:
//- Solve the matrix with this solver //- Solve the matrix with this solver
virtual SolverPerformance<Type> solve(Field<Type>& psi) const; virtual SolverPerformance<Type> solve(Field<Type>& psi) const;
// Member Operators
//- Disallow default bitwise assignment
void operator=(const PCICG&) = delete;
}; };

View File

@ -131,12 +131,6 @@ class lduAddressing
// Private Member Functions // Private Member Functions
//- Disallow default bitwise copy construct
lduAddressing(const lduAddressing&) = delete;
//- Disallow default bitwise assignment
void operator=(const lduAddressing&) = delete;
//- Calculate losort //- Calculate losort
void calcLosort() const; void calcLosort() const;
@ -149,7 +143,8 @@ class lduAddressing
public: public:
// Constructor // Constructors
lduAddressing(const label nEqns) lduAddressing(const label nEqns)
: :
size_(nEqns), size_(nEqns),
@ -158,6 +153,9 @@ public:
losortStartPtr_(nullptr) losortStartPtr_(nullptr)
{} {}
//- Disallow default bitwise copy construct
lduAddressing(const lduAddressing&) = delete;
//- Destructor //- Destructor
virtual ~lduAddressing(); virtual ~lduAddressing();
@ -200,6 +198,12 @@ public:
//- Calculate bandwidth and profile of addressing //- Calculate bandwidth and profile of addressing
Tuple2<label, scalar> band() const; Tuple2<label, scalar> band() const;
// Member Operators
//- Disallow default bitwise assignment
void operator=(const lduAddressing&) = delete;
}; };

View File

@ -53,14 +53,6 @@ namespace Foam
class lduInterface class lduInterface
{ {
// Private Member Functions
//- Disallow default bitwise copy construct
lduInterface(const lduInterface&) = delete;
//- Disallow default bitwise assignment
void operator=(const lduInterface&) = delete;
public: public:
@ -74,6 +66,9 @@ public:
lduInterface() lduInterface()
{} {}
//- Disallow default bitwise copy construct
lduInterface(const lduInterface&) = delete;
//- Destructor //- Destructor
virtual ~lduInterface(); virtual ~lduInterface();
@ -110,6 +105,12 @@ public:
const Pstream::commsTypes commsType, const Pstream::commsTypes commsType,
const labelUList& iF const labelUList& iF
) const = 0; ) const = 0;
// Member Operators
//- Disallow default bitwise assignment
void operator=(const lduInterface&) = delete;
}; };

View File

@ -65,15 +65,6 @@ class lduInterfaceField
bool updatedMatrix_; bool updatedMatrix_;
// Private Member Functions
//- Disallow default bitwise copy construct
lduInterfaceField(const lduInterfaceField&) = delete;
//- Disallow default bitwise assignment
void operator=(const lduInterfaceField&) = delete;
public: public:
//- Runtime type information //- Runtime type information
@ -89,6 +80,9 @@ public:
updatedMatrix_(false) updatedMatrix_(false)
{} {}
//- Disallow default bitwise copy construct
lduInterfaceField(const lduInterfaceField&) = delete;
//- Destructor //- Destructor
virtual ~lduInterfaceField(); virtual ~lduInterfaceField();
@ -151,6 +145,12 @@ public:
const direction, const direction,
const Pstream::commsTypes commsType const Pstream::commsTypes commsType
) const = 0; ) const = 0;
// Member Operators
//- Disallow default bitwise assignment
void operator=(const lduInterfaceField&) = delete;
}; };

View File

@ -62,15 +62,6 @@ class FDICPreconditioner
scalarField rDlUpper_; scalarField rDlUpper_;
// Private Member Functions
//- Disallow default bitwise copy construct
FDICPreconditioner(const FDICPreconditioner&) = delete;
//- Disallow default bitwise assignment
void operator=(const FDICPreconditioner&) = delete;
public: public:
//- Runtime type information //- Runtime type information
@ -86,6 +77,9 @@ public:
const dictionary& solverControlsUnused const dictionary& solverControlsUnused
); );
//- Disallow default bitwise copy construct
FDICPreconditioner(const FDICPreconditioner&) = delete;
//- Destructor //- Destructor
virtual ~FDICPreconditioner() virtual ~FDICPreconditioner()
@ -101,6 +95,12 @@ public:
const scalarField& rA, const scalarField& rA,
const direction cmpt=0 const direction cmpt=0
) const; ) const;
// Member Operators
//- Disallow default bitwise assignment
void operator=(const FDICPreconditioner&) = delete;
}; };

View File

@ -59,15 +59,6 @@ class diagonalPreconditioner
scalarField rD; scalarField rD;
// Private Member Functions
//- Disallow default bitwise copy construct
diagonalPreconditioner(const diagonalPreconditioner&) = delete;
//- Disallow default bitwise assignment
void operator=(const diagonalPreconditioner&) = delete;
public: public:
//- Runtime type information //- Runtime type information
@ -83,6 +74,9 @@ public:
const dictionary& solverControlsUnused const dictionary& solverControlsUnused
); );
//- Disallow default bitwise copy construct
diagonalPreconditioner(const diagonalPreconditioner&) = delete;
//- Destructor //- Destructor
virtual ~diagonalPreconditioner() virtual ~diagonalPreconditioner()
@ -109,6 +103,12 @@ public:
{ {
return precondition(wT, rT, cmpt); return precondition(wT, rT, cmpt);
} }
// Member Operators
//- Disallow default bitwise assignment
void operator=(const diagonalPreconditioner&) = delete;
}; };

View File

@ -50,14 +50,6 @@ class noPreconditioner
: :
public lduMatrix::preconditioner public lduMatrix::preconditioner
{ {
// Private Member Functions
//- Disallow default bitwise copy construct
noPreconditioner(const noPreconditioner&) = delete;
//- Disallow default bitwise assignment
void operator=(const noPreconditioner&) = delete;
public: public:
@ -74,6 +66,9 @@ public:
const dictionary& solverControlsUnused const dictionary& solverControlsUnused
); );
//- Disallow default bitwise copy construct
noPreconditioner(const noPreconditioner&) = delete;
//- Destructor //- Destructor
virtual ~noPreconditioner() virtual ~noPreconditioner()
@ -100,6 +95,12 @@ public:
{ {
return precondition(wT, rT, cmpt); return precondition(wT, rT, cmpt);
} }
// Member Operators
//- Disallow default bitwise assignment
void operator=(const noPreconditioner&) = delete;
}; };

View File

@ -203,17 +203,6 @@ protected:
); );
private:
// Private Member Functions
//- Disallow default bitwise copy construct
GAMGAgglomeration(const GAMGAgglomeration&) = delete;
//- Disallow default bitwise assignment
void operator=(const GAMGAgglomeration&) = delete;
public: public:
//- Declare friendship with GAMGProcAgglomeration //- Declare friendship with GAMGProcAgglomeration
@ -289,6 +278,9 @@ public:
const dictionary& controlDict const dictionary& controlDict
); );
//- Disallow default bitwise copy construct
GAMGAgglomeration(const GAMGAgglomeration&) = delete;
// Selectors // Selectors
@ -491,6 +483,12 @@ public:
const labelUList& restrict, const labelUList& restrict,
const label nCoarse const label nCoarse
); );
// Member Operators
//- Disallow default bitwise assignment
void operator=(const GAMGAgglomeration&) = delete;
}; };

View File

@ -56,15 +56,6 @@ class dummyAgglomeration
label nLevels_; label nLevels_;
// Private Member Functions
//- Disallow default bitwise copy construct
dummyAgglomeration(const dummyAgglomeration&) = delete;
//- Disallow default bitwise assignment
void operator=(const dummyAgglomeration&) = delete;
public: public:
//- Runtime type information //- Runtime type information
@ -79,6 +70,16 @@ public:
const lduMesh& mesh, const lduMesh& mesh,
const dictionary& controlDict const dictionary& controlDict
); );
//- Disallow default bitwise copy construct
dummyAgglomeration(const dummyAgglomeration&) = delete;
// Member Operators
//- Disallow default bitwise assignment
void operator=(const dummyAgglomeration&) = delete;
}; };

View File

@ -71,12 +71,6 @@ protected:
const scalarField& faceWeights const scalarField& faceWeights
); );
//- Disallow default bitwise copy construct
pairGAMGAgglomeration(const pairGAMGAgglomeration&) = delete;
//- Disallow default bitwise assignment
void operator=(const pairGAMGAgglomeration&) = delete;
public: public:
@ -93,6 +87,9 @@ public:
const dictionary& controlDict const dictionary& controlDict
); );
//- Disallow default bitwise copy construct
pairGAMGAgglomeration(const pairGAMGAgglomeration&) = delete;
//- Calculate and return agglomeration //- Calculate and return agglomeration
static tmp<labelField> agglomerate static tmp<labelField> agglomerate
( (
@ -100,6 +97,12 @@ public:
const lduAddressing& fineMatrixAddressing, const lduAddressing& fineMatrixAddressing,
const scalarField& faceWeights const scalarField& faceWeights
); );
// Member Operators
//- Disallow default bitwise assignment
void operator=(const pairGAMGAgglomeration&) = delete;
}; };

View File

@ -78,18 +78,6 @@ protected:
//- Debug: calculate global cell-cells //- Debug: calculate global cell-cells
static labelListList globalCellCells(const lduMesh&); static labelListList globalCellCells(const lduMesh&);
private:
// Private data
// Private Member Functions
//- Disallow default bitwise copy construct
GAMGProcAgglomeration(const GAMGProcAgglomeration&) = delete;
//- Disallow default bitwise assignment
void operator=(const GAMGProcAgglomeration&) = delete;
public: public:
@ -125,6 +113,9 @@ public:
const dictionary& controlDict const dictionary& controlDict
); );
//- Disallow default bitwise copy construct
GAMGProcAgglomeration(const GAMGProcAgglomeration&) = delete;
// Selectors // Selectors
@ -146,6 +137,11 @@ public:
//- Modify agglomeration. Return true if modified //- Modify agglomeration. Return true if modified
virtual bool agglomerate() = 0; virtual bool agglomerate() = 0;
// Member Operators
//- Disallow default bitwise assignment
void operator=(const GAMGProcAgglomeration&) = delete;
}; };

View File

@ -62,17 +62,6 @@ class eagerGAMGProcAgglomeration
DynamicList<label> comms_; DynamicList<label> comms_;
// Private Member Functions
//- Disallow default bitwise copy construct
eagerGAMGProcAgglomeration
(
const eagerGAMGProcAgglomeration&
);
//- Disallow default bitwise assignment
void operator=(const eagerGAMGProcAgglomeration&) = delete;
public: public:
@ -89,6 +78,12 @@ public:
const dictionary& controlDict const dictionary& controlDict
); );
//- Disallow default bitwise copy construct
eagerGAMGProcAgglomeration
(
const eagerGAMGProcAgglomeration&
);
//- Destructor //- Destructor
virtual ~eagerGAMGProcAgglomeration(); virtual ~eagerGAMGProcAgglomeration();
@ -99,6 +94,11 @@ public:
//- Modify agglomeration. Return true if modified //- Modify agglomeration. Return true if modified
virtual bool agglomerate(); virtual bool agglomerate();
// Member Operators
//- Disallow default bitwise assignment
void operator=(const eagerGAMGProcAgglomeration&) = delete;
}; };

View File

@ -87,18 +87,6 @@ class manualGAMGProcAgglomeration
DynamicList<label> comms_; DynamicList<label> comms_;
// Private Member Functions
//- Disallow default bitwise copy construct
manualGAMGProcAgglomeration
(
const manualGAMGProcAgglomeration&
);
//- Disallow default bitwise assignment
void operator=(const manualGAMGProcAgglomeration&) = delete;
public: public:
//- Runtime type information //- Runtime type information
@ -114,6 +102,12 @@ public:
const dictionary& controlDict const dictionary& controlDict
); );
//- Disallow default bitwise copy construct
manualGAMGProcAgglomeration
(
const manualGAMGProcAgglomeration&
);
//- Destructor //- Destructor
virtual ~manualGAMGProcAgglomeration(); virtual ~manualGAMGProcAgglomeration();
@ -124,6 +118,11 @@ public:
//- Modify agglomeration. Return true if modified //- Modify agglomeration. Return true if modified
virtual bool agglomerate(); virtual bool agglomerate();
// Member Operators
//- Disallow default bitwise assignment
void operator=(const manualGAMGProcAgglomeration&) = delete;
}; };

View File

@ -57,17 +57,6 @@ class masterCoarsestGAMGProcAgglomeration
DynamicList<label> comms_; DynamicList<label> comms_;
// Private Member Functions
//- Disallow default bitwise copy construct
masterCoarsestGAMGProcAgglomeration
(
const masterCoarsestGAMGProcAgglomeration&
);
//- Disallow default bitwise assignment
void operator=(const masterCoarsestGAMGProcAgglomeration&) = delete;
public: public:
@ -84,6 +73,12 @@ public:
const dictionary& controlDict const dictionary& controlDict
); );
//- Disallow default bitwise copy construct
masterCoarsestGAMGProcAgglomeration
(
const masterCoarsestGAMGProcAgglomeration&
);
//- Destructor //- Destructor
virtual ~masterCoarsestGAMGProcAgglomeration(); virtual ~masterCoarsestGAMGProcAgglomeration();
@ -94,6 +89,12 @@ public:
//- Modify agglomeration. Return true if modified //- Modify agglomeration. Return true if modified
virtual bool agglomerate(); virtual bool agglomerate();
//- Disallow default bitwise assignment
// Member Operators
void operator=(const masterCoarsestGAMGProcAgglomeration&) = delete;
}; };

View File

@ -53,17 +53,6 @@ class noneGAMGProcAgglomeration
: :
public GAMGProcAgglomeration public GAMGProcAgglomeration
{ {
// Private Member Functions
//- Disallow default bitwise copy construct
noneGAMGProcAgglomeration
(
const noneGAMGProcAgglomeration&
);
//- Disallow default bitwise assignment
void operator=(const noneGAMGProcAgglomeration&) = delete;
public: public:
@ -80,6 +69,12 @@ public:
const dictionary& controlDict const dictionary& controlDict
); );
//- Disallow default bitwise copy construct
noneGAMGProcAgglomeration
(
const noneGAMGProcAgglomeration&
);
//- Destructor //- Destructor
virtual ~noneGAMGProcAgglomeration(); virtual ~noneGAMGProcAgglomeration();
@ -93,6 +88,11 @@ public:
return false; return false;
} }
// Member Operators
//- Disallow default bitwise assignment
void operator=(const noneGAMGProcAgglomeration&) = delete;
}; };

View File

@ -87,15 +87,6 @@ class procFacesGAMGProcAgglomeration
//- Do we need to agglomerate across processors? //- Do we need to agglomerate across processors?
bool doProcessorAgglomeration(const lduMesh&) const; bool doProcessorAgglomeration(const lduMesh&) const;
//- Disallow default bitwise copy construct
procFacesGAMGProcAgglomeration
(
const procFacesGAMGProcAgglomeration&
);
//- Disallow default bitwise assignment
void operator=(const procFacesGAMGProcAgglomeration&) = delete;
public: public:
@ -112,6 +103,12 @@ public:
const dictionary& controlDict const dictionary& controlDict
); );
//- Disallow default bitwise copy construct
procFacesGAMGProcAgglomeration
(
const procFacesGAMGProcAgglomeration&
);
//- Destructor //- Destructor
virtual ~procFacesGAMGProcAgglomeration(); virtual ~procFacesGAMGProcAgglomeration();
@ -122,6 +119,11 @@ public:
//- Modify agglomeration. Return true if modified //- Modify agglomeration. Return true if modified
virtual bool agglomerate(); virtual bool agglomerate();
// Member Operators
//- Disallow default bitwise assignment
void operator=(const procFacesGAMGProcAgglomeration&) = delete;
}; };

View File

@ -59,15 +59,6 @@ class GAMGInterfaceField
const GAMGInterface& interface_; const GAMGInterface& interface_;
// Private Member Functions
//- Disallow default bitwise copy construct
GAMGInterfaceField(const GAMGInterfaceField&) = delete;
//- Disallow default bitwise assignment
void operator=(const GAMGInterfaceField&) = delete;
public: public:
//- Runtime type information //- Runtime type information
@ -147,6 +138,9 @@ public:
interface_(GAMGCp) interface_(GAMGCp)
{} {}
//- Disallow default bitwise copy construct
GAMGInterfaceField(const GAMGInterfaceField&) = delete;
// Member Functions // Member Functions
@ -158,6 +152,11 @@ public:
return interface_; return interface_;
} }
// Member Operators
//- Disallow default bitwise assignment
void operator=(const GAMGInterfaceField&) = delete;
}; };

View File

@ -65,15 +65,6 @@ class cyclicGAMGInterfaceField
int rank_; int rank_;
// Private Member Functions
//- Disallow default bitwise copy construct
cyclicGAMGInterfaceField(const cyclicGAMGInterfaceField&) = delete;
//- Disallow default bitwise assignment
void operator=(const cyclicGAMGInterfaceField&) = delete;
public: public:
//- Runtime type information //- Runtime type information
@ -97,6 +88,9 @@ public:
const int rank const int rank
); );
//- Disallow default bitwise copy construct
cyclicGAMGInterfaceField(const cyclicGAMGInterfaceField&) = delete;
//- Destructor //- Destructor
virtual ~cyclicGAMGInterfaceField(); virtual ~cyclicGAMGInterfaceField();
@ -151,6 +145,12 @@ public:
const direction cmpt, const direction cmpt,
const Pstream::commsTypes commsType const Pstream::commsTypes commsType
) const; ) const;
// Member Operators
//- Disallow default bitwise assignment
void operator=(const cyclicGAMGInterfaceField&) = delete;
}; };

View File

@ -80,19 +80,6 @@ class processorGAMGInterfaceField
mutable Field<scalar> scalarReceiveBuf_; mutable Field<scalar> scalarReceiveBuf_;
// Private Member Functions
//- Disallow default bitwise copy construct
processorGAMGInterfaceField
(
const processorGAMGInterfaceField&
) = delete;
//- Disallow default bitwise assignment
void operator=(const processorGAMGInterfaceField&) = delete;
public: public:
//- Runtime type information //- Runtime type information
@ -116,6 +103,12 @@ public:
const int rank const int rank
); );
//- Disallow default bitwise copy construct
processorGAMGInterfaceField
(
const processorGAMGInterfaceField&
) = delete;
//- Destructor //- Destructor
virtual ~processorGAMGInterfaceField(); virtual ~processorGAMGInterfaceField();
@ -192,6 +185,12 @@ public:
{ {
return rank_; return rank_;
} }
// Member Operators
//- Disallow default bitwise assignment
void operator=(const processorGAMGInterfaceField&) = delete;
}; };

View File

@ -71,17 +71,6 @@ protected:
labelList faceRestrictAddressing_; labelList faceRestrictAddressing_;
private:
// Private Member Functions
//- Disallow default bitwise copy construct
GAMGInterface(const GAMGInterface&) = delete;
//- Disallow default bitwise assignment
void operator=(const GAMGInterface&) = delete;
public: public:
//- Runtime type information //- Runtime type information
@ -197,6 +186,9 @@ public:
Istream& is Istream& is
); );
//- Disallow default bitwise copy construct
GAMGInterface(const GAMGInterface&) = delete;
// Member Functions // Member Functions
@ -277,6 +269,12 @@ public:
//- Write to stream //- Write to stream
virtual void write(Ostream&) const = 0; virtual void write(Ostream&) const = 0;
// Member Operators
//- Disallow default bitwise assignment
void operator=(const GAMGInterface&) = delete;
}; };

View File

@ -67,15 +67,6 @@ class cyclicGAMGInterface
tensorField reverseT_; tensorField reverseT_;
// Private Member Functions
//- Disallow default bitwise copy construct
cyclicGAMGInterface(const cyclicGAMGInterface&) = delete;
//- Disallow default bitwise assignment
void operator=(const cyclicGAMGInterface&) = delete;
public: public:
//- Runtime type information //- Runtime type information
@ -105,6 +96,9 @@ public:
Istream& is Istream& is
); );
//- Disallow default bitwise copy construct
cyclicGAMGInterface(const cyclicGAMGInterface&) = delete;
//- Destructor //- Destructor
virtual ~cyclicGAMGInterface(); virtual ~cyclicGAMGInterface();
@ -160,6 +154,12 @@ public:
//- Write to stream //- Write to stream
virtual void write(Ostream&) const; virtual void write(Ostream&) const;
// Member Operators
//- Disallow default bitwise assignment
void operator=(const cyclicGAMGInterface&) = delete;
}; };

View File

@ -51,17 +51,6 @@ class processorCyclicGAMGInterface
: :
public processorGAMGInterface public processorGAMGInterface
{ {
// Private Member Functions
//- Disallow default bitwise copy construct
processorCyclicGAMGInterface
(
const processorCyclicGAMGInterface&
) = delete;
//- Disallow default bitwise assignment
void operator=(const processorCyclicGAMGInterface&) = delete;
public: public:
@ -91,11 +80,22 @@ public:
Istream& is Istream& is
); );
//- Disallow default bitwise copy construct
processorCyclicGAMGInterface
(
const processorCyclicGAMGInterface&
) = delete;
// Destructor // Destructor
virtual ~processorCyclicGAMGInterface(); virtual ~processorCyclicGAMGInterface();
// Member Operators
//- Disallow default bitwise assignment
void operator=(const processorCyclicGAMGInterface&) = delete;
}; };

View File

@ -70,15 +70,6 @@ class processorGAMGInterface
int tag_; int tag_;
// Private Member Functions
//- Disallow default bitwise copy construct
processorGAMGInterface(const processorGAMGInterface&) = delete;
//- Disallow default bitwise assignment
void operator=(const processorGAMGInterface&) = delete;
public: public:
//- Runtime type information //- Runtime type information
@ -121,6 +112,9 @@ public:
Istream& is Istream& is
); );
//- Disallow default bitwise copy construct
processorGAMGInterface(const processorGAMGInterface&) = delete;
//- Destructor //- Destructor
virtual ~processorGAMGInterface(); virtual ~processorGAMGInterface();
@ -182,6 +176,12 @@ public:
//- Write to stream //- Write to stream
virtual void write(Ostream&) const; virtual void write(Ostream&) const;
// Member Operators
//- Disallow default bitwise assignment
void operator=(const processorGAMGInterface&) = delete;
}; };

View File

@ -51,14 +51,6 @@ class PBiCG
: :
public lduMatrix::solver public lduMatrix::solver
{ {
// Private Member Functions
//- Disallow default bitwise copy construct
PBiCG(const PBiCG&) = delete;
//- Disallow default bitwise assignment
void operator=(const PBiCG&) = delete;
public: public:
@ -79,6 +71,9 @@ public:
const dictionary& solverControls const dictionary& solverControls
); );
//- Disallow default bitwise copy construct
PBiCG(const PBiCG&) = delete;
//- Destructor //- Destructor
virtual ~PBiCG() virtual ~PBiCG()
@ -94,6 +89,12 @@ public:
const scalarField& source, const scalarField& source,
const direction cmpt=0 const direction cmpt=0
) const; ) const;
// Member Operators
//- Disallow default bitwise assignment
void operator=(const PBiCG&) = delete;
}; };

View File

@ -66,14 +66,6 @@ class PBiCGStab
: :
public lduMatrix::solver public lduMatrix::solver
{ {
// Private Member Functions
//- Disallow default bitwise copy construct
PBiCGStab(const PBiCGStab&) = delete;
//- Disallow default bitwise assignment
void operator=(const PBiCGStab&) = delete;
public: public:
@ -94,6 +86,9 @@ public:
const dictionary& solverControls const dictionary& solverControls
); );
//- Disallow default bitwise copy construct
PBiCGStab(const PBiCGStab&) = delete;
//- Destructor //- Destructor
virtual ~PBiCGStab() virtual ~PBiCGStab()
@ -109,6 +104,12 @@ public:
const scalarField& source, const scalarField& source,
const direction cmpt=0 const direction cmpt=0
) const; ) const;
// Member Operators
//- Disallow default bitwise assignment
void operator=(const PBiCGStab&) = delete;
}; };

View File

@ -51,14 +51,6 @@ class PCG
: :
public lduMatrix::solver public lduMatrix::solver
{ {
// Private Member Functions
//- Disallow default bitwise copy construct
PCG(const PCG&) = delete;
//- Disallow default bitwise assignment
void operator=(const PCG&) = delete;
public: public:
@ -79,6 +71,9 @@ public:
const dictionary& solverControls const dictionary& solverControls
); );
//- Disallow default bitwise copy construct
PCG(const PCG&) = delete;
//- Destructor //- Destructor
virtual ~PCG() virtual ~PCG()
@ -94,6 +89,12 @@ public:
const scalarField& source, const scalarField& source,
const direction cmpt=0 const direction cmpt=0
) const; ) const;
// Member Operators
//- Disallow default bitwise assignment
void operator=(const PCG&) = delete;
}; };

View File

@ -50,14 +50,6 @@ class diagonalSolver
: :
public lduMatrix::solver public lduMatrix::solver
{ {
// Private Member Functions
//- Disallow default bitwise copy construct
diagonalSolver(const diagonalSolver&) = delete;
//- Disallow default bitwise assignment
void operator=(const diagonalSolver&) = delete;
public: public:
@ -78,6 +70,9 @@ public:
const dictionary& solverControls const dictionary& solverControls
); );
//- Disallow default bitwise copy construct
diagonalSolver(const diagonalSolver&) = delete;
// Member Functions // Member Functions
@ -92,6 +87,12 @@ public:
const scalarField& source, const scalarField& source,
const direction cmpt=0 const direction cmpt=0
) const; ) const;
// Member Operators
//- Disallow default bitwise assignment
void operator=(const diagonalSolver&) = delete;
}; };

View File

@ -71,12 +71,6 @@ class SVD
// Private Member Functions // Private Member Functions
//- Disallow default bitwise copy construct
SVD(const SVD&) = delete;
//- Disallow default bitwise assignment
void operator=(const SVD&) = delete;
template<class T> template<class T>
inline const T sign(const T& a, const T& b); inline const T sign(const T& a, const T& b);
@ -88,6 +82,9 @@ public:
//- Construct from a rectangular Matrix //- Construct from a rectangular Matrix
SVD(const scalarRectangularMatrix& A, const scalar minCondition = 0); SVD(const scalarRectangularMatrix& A, const scalar minCondition = 0);
//- Disallow default bitwise copy construct
SVD(const SVD&) = delete;
// Access functions // Access functions
@ -111,6 +108,12 @@ public:
//- Return the matrix product V S^(-1) U^T (the pseudo inverse) //- Return the matrix product V S^(-1) U^T (the pseudo inverse)
scalarRectangularMatrix VSinvUt() const; scalarRectangularMatrix VSinvUt() const;
// Member Operators
//- Disallow default bitwise assignment
void operator=(const SVD&) = delete;
}; };

View File

@ -79,10 +79,6 @@ class solution
//- Read settings from the dictionary //- Read settings from the dictionary
void read(const dictionary&); void read(const dictionary&);
//- Disallow default bitwise copy construct and assignment
solution(const solution&) = delete;
void operator=(const solution&);
public: public:
@ -104,6 +100,9 @@ public:
const fileName& dictName const fileName& dictName
); );
//- Disallow default bitwise copy construct
solution(const solution&) = delete;
// Member Functions // Member Functions
@ -145,6 +144,11 @@ public:
//- Read the solution dictionary //- Read the solution dictionary
bool read(); bool read();
// Member Operators
void operator=(const solution&) = delete;
}; };

View File

@ -57,13 +57,6 @@ class tolerances
dictionary solverRelativeTolerances_; dictionary solverRelativeTolerances_;
// Private Member Functions
//- Disallow default bitwise copy construct and assignment
tolerances(const tolerances&) = delete;
void operator=(const tolerances&);
public: public:
// Constructors // Constructors
@ -71,6 +64,9 @@ public:
//- Construct from time //- Construct from time
tolerances(const Time& t, const fileName& dictName); tolerances(const Time& t, const fileName& dictName);
//- Disallow default bitwise copy construct
tolerances(const tolerances&) = delete;
// Member Functions // Member Functions
@ -89,6 +85,11 @@ public:
//- Read the tolerances //- Read the tolerances
bool read(); bool read();
// Member Operators
void operator=(const tolerances&) = delete;
}; };

View File

@ -61,15 +61,6 @@ class Residuals
mutable label prevTimeIndex_; mutable label prevTimeIndex_;
// Private Member Functions
//- Disallow default bitwise copy construct
Residuals(const Residuals<Type>&) = delete;
//- Disallow default bitwise assignment
void operator=(const Residuals<Type>&) = delete;
public: public:
//- Runtime type information //- Runtime type information
@ -81,6 +72,9 @@ public:
//- Construct for given mesh //- Construct for given mesh
Residuals(const polyMesh& mesh); Residuals(const polyMesh& mesh);
//- Disallow default bitwise copy construct
Residuals(const Residuals<Type>&) = delete;
// Member Functions // Member Functions
@ -105,6 +99,12 @@ public:
const polyMesh& mesh, const polyMesh& mesh,
const SolverPerformance<Type>& const SolverPerformance<Type>&
); );
// Member Operators
//- Disallow default bitwise assignment
void operator=(const Residuals<Type>&) = delete;
}; };

View File

@ -73,6 +73,7 @@ class lduPrimitiveMesh
//- Communicator to use for any parallel communication //- Communicator to use for any parallel communication
const label comm_; const label comm_;
// Private Member Functions // Private Member Functions
//- Get size of all meshes //- Get size of all meshes
@ -93,12 +94,6 @@ class lduPrimitiveMesh
const labelUList& u const labelUList& u
); );
//- Disallow default bitwise copy construct
lduPrimitiveMesh(const lduPrimitiveMesh&) = delete;
//- Disallow default bitwise assignment
void operator=(const lduPrimitiveMesh&) = delete;
public: public:
@ -175,6 +170,9 @@ public:
labelListListList& boundaryFaceMap labelListListList& boundaryFaceMap
); );
//- Disallow default bitwise copy construct
lduPrimitiveMesh(const lduPrimitiveMesh&) = delete;
//- Destructor //- Destructor
virtual ~lduPrimitiveMesh() virtual ~lduPrimitiveMesh()
@ -261,6 +259,11 @@ public:
template<class ProcPatch> template<class ProcPatch>
static lduSchedule nonBlockingSchedule(const lduInterfacePtrsList&); static lduSchedule nonBlockingSchedule(const lduInterfacePtrsList&);
// Member Operators
//- Disallow default bitwise assignment
void operator=(const lduPrimitiveMesh&) = delete;
}; };

View File

@ -173,15 +173,6 @@ protected:
) const; ) const;
private:
// Private Member Functions
//- Disallow default bitwise copy construct and assignment
cellMatcher(const cellMatcher&) = delete;
void operator=(const cellMatcher&);
public: public:
// Constructors // Constructors
@ -195,6 +186,9 @@ public:
const word& cellModelName const word& cellModelName
); );
//- Disallow default bitwise copy construct and assignment
cellMatcher(const cellMatcher&) = delete;
//- Destructor //- Destructor
virtual ~cellMatcher() virtual ~cellMatcher()
@ -269,6 +263,10 @@ public:
cellShape& shape cellShape& shape
) = 0; ) = 0;
// Member Operators
void operator=(const cellMatcher&) = delete;
}; };

View File

@ -61,15 +61,6 @@ class hexMatcher
static const label maxVertPerFace; static const label maxVertPerFace;
// Private Member Functions
//- Disallow default bitwise copy construct
hexMatcher(const hexMatcher&) = delete;
//- Disallow default bitwise assignment
void operator=(const hexMatcher&) = delete;
public: public:
// Constructors // Constructors
@ -77,6 +68,10 @@ public:
//- Construct null //- Construct null
hexMatcher(); hexMatcher();
//- Disallow default bitwise copy construct
hexMatcher(const hexMatcher&) = delete;
//- Destructor //- Destructor
~hexMatcher(); ~hexMatcher();
@ -121,6 +116,12 @@ public:
const label celli, const label celli,
cellShape& shape cellShape& shape
); );
// Member Operators
//- Disallow default bitwise assignment
void operator=(const hexMatcher&) = delete;
}; };

View File

@ -61,15 +61,6 @@ class prismMatcher
static const label maxVertPerFace; static const label maxVertPerFace;
// Private Member Functions
//- Disallow default bitwise copy construct
prismMatcher(const prismMatcher&) = delete;
//- Disallow default bitwise assignment
void operator=(const prismMatcher&) = delete;
public: public:
// Constructors // Constructors
@ -77,6 +68,10 @@ public:
//- Construct //- Construct
prismMatcher(); prismMatcher();
//- Disallow default bitwise copy construct
prismMatcher(const prismMatcher&) = delete;
//- Destructor //- Destructor
~prismMatcher(); ~prismMatcher();
@ -121,6 +116,12 @@ public:
const label celli, const label celli,
cellShape& shape cellShape& shape
); );
// Member Operators
//- Disallow default bitwise assignment
void operator=(const prismMatcher&) = delete;
}; };

View File

@ -61,15 +61,6 @@ class pyrMatcher
static const label maxVertPerFace; static const label maxVertPerFace;
// Private Member Functions
//- Disallow default bitwise copy construct
pyrMatcher(const pyrMatcher&) = delete;
//- Disallow default bitwise assignment
void operator=(const pyrMatcher&) = delete;
public: public:
// Constructors // Constructors
@ -77,6 +68,10 @@ public:
//- Construct null //- Construct null
pyrMatcher(); pyrMatcher();
//- Disallow default bitwise copy construct
pyrMatcher(const pyrMatcher&) = delete;
//- Destructor //- Destructor
~pyrMatcher(); ~pyrMatcher();
@ -121,6 +116,12 @@ public:
const label celli, const label celli,
cellShape& shape cellShape& shape
); );
// Member Operators
//- Disallow default bitwise assignment
void operator=(const pyrMatcher&) = delete;
}; };

View File

@ -61,15 +61,6 @@ class tetMatcher
static const label maxVertPerFace; static const label maxVertPerFace;
// Private Member Functions
//- Disallow default bitwise copy construct
tetMatcher(const tetMatcher&) = delete;
//- Disallow default bitwise assignment
void operator=(const tetMatcher&) = delete;
public: public:
// Constructors // Constructors
@ -77,6 +68,10 @@ public:
//- Construct null //- Construct null
tetMatcher(); tetMatcher();
//- Disallow default bitwise copy construct
tetMatcher(const tetMatcher&) = delete;
//- Destructor //- Destructor
~tetMatcher(); ~tetMatcher();
@ -121,6 +116,12 @@ public:
const label celli, const label celli,
cellShape& shape cellShape& shape
); );
// Member Operators
//- Disallow default bitwise assignment
void operator=(const tetMatcher&) = delete;
}; };

View File

@ -61,15 +61,6 @@ class tetWedgeMatcher
static const label maxVertPerFace; static const label maxVertPerFace;
// Private Member Functions
//- Disallow default bitwise copy construct
tetWedgeMatcher(const tetWedgeMatcher&) = delete;
//- Disallow default bitwise assignment
void operator=(const tetWedgeMatcher&) = delete;
public: public:
// Constructors // Constructors
@ -77,6 +68,10 @@ public:
//- Construct null //- Construct null
tetWedgeMatcher(); tetWedgeMatcher();
//- Disallow default bitwise copy construct
tetWedgeMatcher(const tetWedgeMatcher&) = delete;
//- Destructor //- Destructor
~tetWedgeMatcher(); ~tetWedgeMatcher();
@ -121,6 +116,12 @@ public:
const label celli, const label celli,
cellShape& shape cellShape& shape
); );
// Member Operators
//- Disallow default bitwise assignment
void operator=(const tetWedgeMatcher&) = delete;
}; };

View File

@ -61,15 +61,6 @@ class wedgeMatcher
static const label maxVertPerFace; static const label maxVertPerFace;
// Private Member Functions
//- Disallow default bitwise copy construct
wedgeMatcher(const wedgeMatcher&) = delete;
//- Disallow default bitwise assignment
void operator=(const wedgeMatcher&) = delete;
public: public:
// Constructors // Constructors
@ -77,6 +68,10 @@ public:
//- Construct null //- Construct null
wedgeMatcher(); wedgeMatcher();
//- Disallow default bitwise copy construct
wedgeMatcher(const wedgeMatcher&) = delete;
//- Destructor //- Destructor
~wedgeMatcher(); ~wedgeMatcher();
@ -121,6 +116,12 @@ public:
const label celli, const label celli,
cellShape& shape cellShape& shape
); );
// Member Operators
//- Disallow default bitwise assignment
void operator=(const wedgeMatcher&) = delete;
}; };

View File

@ -65,12 +65,6 @@ class pointBoundaryMesh
//- Calculate the geometry for the patches (transformation tensors etc.) //- Calculate the geometry for the patches (transformation tensors etc.)
void calcGeometry(); void calcGeometry();
//- Disallow default bitwise copy construct
pointBoundaryMesh(const pointBoundaryMesh&) = delete;
//- Disallow default bitwise assignment
void operator=(const pointBoundaryMesh&) = delete;
public: public:
@ -87,6 +81,9 @@ public:
const polyBoundaryMesh& const polyBoundaryMesh&
); );
//- Disallow default bitwise copy construct
pointBoundaryMesh(const pointBoundaryMesh&) = delete;
// Member functions // Member functions
@ -117,6 +114,12 @@ public:
// after reordering to recalculate data (so call needs to be parallel // after reordering to recalculate data (so call needs to be parallel
// sync in that case) // sync in that case)
void shuffle(const labelUList& newToOld, const bool validBoundary); void shuffle(const labelUList& newToOld, const bool validBoundary);
// Member Operators
//- Disallow default bitwise assignment
void operator=(const pointBoundaryMesh&) = delete;
}; };

View File

@ -62,12 +62,6 @@ class pointMesh
//- Map all fields //- Map all fields
void mapFields(const mapPolyMesh&); void mapFields(const mapPolyMesh&);
//- Disallow default bitwise copy construct
pointMesh(const pointMesh&) = delete;
//- Disallow default bitwise assignment
void operator=(const pointMesh&) = delete;
public: public:
@ -84,6 +78,9 @@ public:
//- Construct from polyMesh //- Construct from polyMesh
explicit pointMesh(const polyMesh& pMesh); explicit pointMesh(const polyMesh& pMesh);
//- Disallow default bitwise copy construct
pointMesh(const pointMesh&) = delete;
//- Destructor //- Destructor
~pointMesh(); ~pointMesh();
@ -147,6 +144,9 @@ public:
// Member Operators // Member Operators
//- Disallow default bitwise assignment
void operator=(const pointMesh&) = delete;
bool operator!=(const pointMesh& pm) const bool operator!=(const pointMesh& pm) const
{ {
return &pm != this; return &pm != this;

View File

@ -48,14 +48,6 @@ class pointBoundaryMeshMapper
: :
public PtrList<pointPatchMapper> public PtrList<pointPatchMapper>
{ {
// Private Member Functions
//- Disallow default bitwise copy construct
pointBoundaryMeshMapper(const pointBoundaryMeshMapper&) = delete;
//- Disallow default bitwise assignment
void operator=(const pointBoundaryMeshMapper&) = delete;
public: public:
@ -87,6 +79,15 @@ public:
); );
} }
} }
//- Disallow default bitwise copy construct
pointBoundaryMeshMapper(const pointBoundaryMeshMapper&) = delete;
// Member Operators
//- Disallow default bitwise assignment
void operator=(const pointBoundaryMeshMapper&) = delete;
}; };

View File

@ -89,13 +89,6 @@ class pointMapper
// Private Member Functions // Private Member Functions
//- Disallow default bitwise copy construct
pointMapper(const pointMapper&) = delete;
//- Disallow default bitwise assignment
void operator=(const pointMapper&) = delete;
//- Calculate addressing for mapping with inserted points //- Calculate addressing for mapping with inserted points
void calcAddressing() const; void calcAddressing() const;
@ -110,6 +103,9 @@ public:
//- Construct from mapPolyMesh //- Construct from mapPolyMesh
pointMapper(const pointMesh&, const mapPolyMesh& mpm); pointMapper(const pointMesh&, const mapPolyMesh& mpm);
//- Disallow default bitwise copy construct
pointMapper(const pointMapper&) = delete;
//- Destructor //- Destructor
virtual ~pointMapper(); virtual ~pointMapper();
@ -150,6 +146,12 @@ public:
//- Return list of inserted points //- Return list of inserted points
const labelList& insertedObjectLabels() const; const labelList& insertedObjectLabels() const;
// Member Operators
//- Disallow default bitwise assignment
void operator=(const pointMapper&) = delete;
}; };

View File

@ -66,15 +66,6 @@ class pointMeshMapper
pointBoundaryMeshMapper boundaryMap_; pointBoundaryMeshMapper boundaryMap_;
// Private Member Functions
//- Disallow default bitwise copy construct
pointMeshMapper(const pointMeshMapper&) = delete;
//- Disallow default bitwise assignment
void operator=(const pointMeshMapper&) = delete;
public: public:
// Constructors // Constructors
@ -87,6 +78,9 @@ public:
boundaryMap_(mesh, pointMap_, mpm) boundaryMap_(mesh, pointMap_, mpm)
{} {}
//- Disallow default bitwise copy construct
pointMeshMapper(const pointMeshMapper&) = delete;
// Member Functions // Member Functions
@ -115,6 +109,12 @@ public:
{ {
return boundaryMap_; return boundaryMap_;
} }
// Member Operators
//- Disallow default bitwise assignment
void operator=(const pointMeshMapper&) = delete;
}; };

View File

@ -88,16 +88,6 @@ class pointPatchMapper
// Private Member Functions // Private Member Functions
//- Disallow default bitwise copy construct
pointPatchMapper
(
const pointPatchMapper&
);
//- Disallow default bitwise assignment
void operator=(const pointPatchMapper&) = delete;
//- Calculate addressing for mapping with inserted cells //- Calculate addressing for mapping with inserted cells
void calcAddressing() const; void calcAddressing() const;
@ -117,6 +107,12 @@ public:
const mapPolyMesh& mpm const mapPolyMesh& mpm
); );
//- Disallow default bitwise copy construct
pointPatchMapper
(
const pointPatchMapper&
);
//- Destructor //- Destructor
virtual ~pointPatchMapper(); virtual ~pointPatchMapper();
@ -149,6 +145,12 @@ public:
//- Return interpolaion weights //- Return interpolaion weights
virtual const scalarListList& weights() const; virtual const scalarListList& weights() const;
// Member Operators
//- Disallow default bitwise assignment
void operator=(const pointPatchMapper&) = delete;
}; };

View File

@ -85,17 +85,6 @@ protected:
virtual void updateMesh(PstreamBuffers&); virtual void updateMesh(PstreamBuffers&);
private:
// Private Member Functions
//- Disallow default bitwise copy construct
facePointPatch(const facePointPatch&) = delete;
//- Disallow default bitwise assignment
void operator=(const facePointPatch&) = delete;
public: public:
// Declare friendship with the coupledPointPatches to allow them to extend // Declare friendship with the coupledPointPatches to allow them to extend
@ -129,6 +118,9 @@ public:
const pointBoundaryMesh& const pointBoundaryMesh&
); );
//- Disallow default bitwise copy construct
facePointPatch(const facePointPatch&) = delete;
// Selectors // Selectors
@ -196,6 +188,12 @@ public:
{ {
return polyPatch_.pointNormals(); return polyPatch_.pointNormals();
} }
// Member Operators
//- Disallow default bitwise assignment
void operator=(const facePointPatch&) = delete;
}; };

View File

@ -62,15 +62,6 @@ class pointPatch
const pointBoundaryMesh& boundaryMesh_; const pointBoundaryMesh& boundaryMesh_;
// Private Member Functions
//- Disallow default bitwise copy construct
pointPatch(const pointPatch&) = delete;
//- Disallow default bitwise assignment
void operator=(const pointPatch&) = delete;
protected: protected:
// Protected Member Functions // Protected Member Functions
@ -119,6 +110,9 @@ public:
boundaryMesh_(bm) boundaryMesh_(bm)
{} {}
//- Disallow default bitwise copy construct
pointPatch(const pointPatch&) = delete;
//- Destructor //- Destructor
virtual ~pointPatch() virtual ~pointPatch()
@ -170,6 +164,12 @@ public:
pointConstraint& pointConstraint&
) const ) const
{} {}
// Member Operators
//- Disallow default bitwise assignment
void operator=(const pointPatch&) = delete;
}; };

View File

@ -304,13 +304,6 @@ class globalMeshData
void calcGlobalCoPointSlaves() const; void calcGlobalCoPointSlaves() const;
//- Disallow default bitwise copy construct
globalMeshData(const globalMeshData&) = delete;
//- Disallow default bitwise assignment
void operator=(const globalMeshData&) = delete;
public: public:
// Public class // Public class
@ -351,6 +344,9 @@ public:
//- Construct from mesh, derive rest (does parallel communication!) //- Construct from mesh, derive rest (does parallel communication!)
globalMeshData(const polyMesh& mesh); globalMeshData(const polyMesh& mesh);
//- Disallow default bitwise copy construct
globalMeshData(const globalMeshData&) = delete;
//- Destructor //- Destructor
~globalMeshData(); ~globalMeshData();
@ -614,6 +610,12 @@ public:
// full parallel analysis to determine shared points and // full parallel analysis to determine shared points and
// boundaries. // boundaries.
void updateMesh(); void updateMesh();
// Member Operators
//- Disallow default bitwise assignment
void operator=(const globalMeshData&) = delete;
}; };

View File

@ -262,12 +262,6 @@ class globalPoints
const bool mergeSeparated const bool mergeSeparated
); );
//- Disallow default bitwise copy construct
globalPoints(const globalPoints&) = delete;
//- Disallow default bitwise assignment
void operator=(const globalPoints&) = delete;
public: public:
@ -301,6 +295,9 @@ public:
const bool mergeSeparated const bool mergeSeparated
); );
//- Disallow default bitwise copy construct
globalPoints(const globalPoints&) = delete;
// Member Functions // Member Functions
@ -368,6 +365,12 @@ public:
{ {
return procPoints_; return procPoints_;
} }
// Member Operators
//- Disallow default bitwise assignment
void operator=(const globalPoints&) = delete;
}; };

Some files were not shown because too many files have changed in this diff Show More