Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
topoBoolSet Class Reference

Base for a special purpose topoSet using labels stored as a boolList. More...

Inheritance diagram for topoBoolSet:
Inheritance graph
[legend]
Collaboration diagram for topoBoolSet:
Collaboration graph
[legend]

Public Member Functions

virtual ~topoBoolSet ()=default
 
const boolListaddressing () const
 
boolListaddressing ()
 
void reset ()
 
virtual bool found (const label id) const
 
virtual bool set (const label id)
 
virtual bool unset (const label id)
 
virtual void set (const labelUList &labels)
 
virtual void unset (const labelUList &labels)
 
virtual void invert (const label maxLen)
 
virtual void subset (const topoSet &set)
 
virtual void addSet (const topoSet &set)
 
virtual void subtractSet (const topoSet &set)
 
- Public Member Functions inherited from topoSet
 TypeName ("topoSet")
 
 declareRunTimeSelectionTable (autoPtr, topoSet, word,(const polyMesh &mesh, const word &name, readOption r, writeOption w),(mesh, name, r, w))
 
 declareRunTimeSelectionTable (autoPtr, topoSet, size,(const polyMesh &mesh, const word &name, const label size, writeOption w),(mesh, name, size, w))
 
 declareRunTimeSelectionTable (autoPtr, topoSet, set,(const polyMesh &mesh, const word &name, const topoSet &set, writeOption w),(mesh, name, set, w))
 
 topoSet (const IOobject &obj, const word &wantedType)
 
 topoSet (const polyMesh &mesh, const word &wantedType, const word &name, readOption r=MUST_READ, writeOption w=NO_WRITE)
 
 topoSet (const polyMesh &mesh, const word &name, const label size, writeOption w=NO_WRITE)
 
 topoSet (const polyMesh &mesh, const word &name, const labelHashSet &labels, writeOption w=NO_WRITE)
 
 topoSet (const polyMesh &mesh, const word &name, labelHashSet &&labels, writeOption w=NO_WRITE)
 
 topoSet (const polyMesh &mesh, const word &name, const labelUList &labels, writeOption w=NO_WRITE)
 
 topoSet (const IOobject &io, const label size)
 
 topoSet (const IOobject &io, const labelHashSet &labels)
 
 topoSet (const IOobject &io, labelHashSet &&labels)
 
autoPtr< topoSetclone () const
 
virtual ~topoSet ()=default
 
virtual void sync (const polyMesh &mesh)
 
virtual void writeDebug (Ostream &os, const label maxLen) const
 
virtual void writeDebug (Ostream &os, const primitiveMesh &, const label maxLen) const =0
 
virtual bool writeData (Ostream &) const
 
virtual void updateMesh (const mapPolyMesh &morphMap)
 
virtual void distribute (const mapDistributePolyMesh &)=0
 
virtual label maxSize (const polyMesh &mesh) const =0
 
void operator= (const topoSet &)
 
virtual void deleteSet (const topoSet &set)
 
- Public Member Functions inherited from regIOobject
 TypeName ("regIOobject")
 
 regIOobject (const IOobject &io, const bool isTimeObject=false)
 
 regIOobject (const regIOobject &rio)
 
 regIOobject (const regIOobject &rio, bool registerCopy)
 
 regIOobject (const word &newName, const regIOobject &, bool registerCopy)
 
 regIOobject (const IOobject &io, const regIOobject &rio)
 
virtual ~regIOobject ()
 
bool checkIn ()
 
bool checkOut ()
 
virtual void addWatch ()
 
bool ownedByRegistry () const
 
bool store ()
 
void release (const bool unregister=false)
 
label eventNo () const
 
label & eventNo ()
 
bool upToDate (const regIOobject &) const
 
bool upToDate (const regIOobject &, const regIOobject &) const
 
bool upToDate (const regIOobject &, const regIOobject &, const regIOobject &) const
 
bool upToDate (const regIOobject &, const regIOobject &, const regIOobject &, const regIOobject &) const
 
void setUpToDate ()
 
virtual void rename (const word &newName)
 
const dictionaryfindMetaData () const noexcept
 
dictionarygetMetaData () noexcept
 
void removeMetaData ()
 
virtual void updateMetaData ()
 
virtual fileName filePath () const
 
bool headerOk ()
 
IstreamreadStream (const word &, const bool valid=true)
 
void close ()
 
virtual bool readData (Istream &)
 
virtual bool read ()
 
virtual label addWatch (const fileName &)
 
const labelListwatchIndices () const
 
labelListwatchIndices ()
 
virtual bool modified () const
 
virtual bool readIfModified ()
 
virtual bool writeObject (IOstreamOption streamOpt, const bool valid) const
 
virtual bool write (const bool valid=true) const
 
virtual bool global () const
 
void operator= (const IOobject &io)
 
virtual bool writeObject (IOstreamOption::streamFormat fmt, IOstreamOption::versionNumber ver, IOstreamOption::compressionType comp, const bool valid) const
 
- Public Member Functions inherited from IOobject
 TypeName ("IOobject")
 
 IOobject (const IOobject &)=default
 
virtual ~IOobject ()=default
 
 IOobject (const word &name, const fileName &instance, const objectRegistry &registry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true, bool globalObject=false)
 
 IOobject (const word &name, const fileName &instance, const fileName &local, const objectRegistry &registry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true, bool globalObject=false)
 
 IOobject (const fileName &path, const objectRegistry &registry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true, bool globalObject=false)
 
 IOobject (const IOobject &io, const objectRegistry &registry)
 
 IOobject (const IOobject &io, const word &name)
 
 IOobject (const IOobject &io, readOption, writeOption)
 
autoPtr< IOobjectclone () const
 
autoPtr< IOobjectclone (const objectRegistry &registry) const
 
const objectRegistrydb () const noexcept
 
const Timetime () const
 
const wordname () const noexcept
 
const wordheaderClassName () const noexcept
 
wordheaderClassName () noexcept
 
const stringnote () const noexcept
 
stringnote () noexcept
 
bool registerObject () const noexcept
 
bool registerObject (bool on) noexcept
 
bool globalObject () const noexcept
 
bool globalObject (bool on) noexcept
 
unsigned labelByteSize () const noexcept
 
unsigned scalarByteSize () const noexcept
 
bool isHeaderClassName (const word &clsName) const
 
template<class Type >
bool isHeaderClassName () const
 
readOption readOpt () const noexcept
 
readOption readOpt (readOption opt) noexcept
 
writeOption writeOpt () const noexcept
 
writeOption writeOpt (writeOption opt) noexcept
 
word group () const
 
word member () const
 
const fileNamerootPath () const
 
const fileNamecaseName () const
 
const fileNameinstance () const noexcept
 
fileNameinstance () noexcept
 
const fileNamelocal () const noexcept
 
fileName path () const
 
fileName path (const word &instance, const fileName &local=fileName::null) const
 
fileName objectPath () const
 
fileName objectRelPath () const
 
fileName localFilePath (const word &typeName, const bool search=true) const
 
fileName globalFilePath (const word &typeName, const bool search=true) const
 
IOstreamOption parseHeader (const dictionary &headerDict)
 
bool readHeader (Istream &is)
 
bool readHeader (dictionary &headerDict, Istream &is)
 
template<class Type >
bool typeHeaderOk (const bool checkType=true, const bool search=true, const bool verbose=true)
 
template<class Type >
void warnNoRereading () const
 
bool writeHeader (Ostream &os) const
 
bool writeHeader (Ostream &os, const word &objectType) const
 
void writeHeader (dictionary &dict, IOstreamOption streamOpt) const
 
void writeHeader (dictionary &dict, const word &objectType, IOstreamOption streamOpt) const
 
bool good () const noexcept
 
bool bad () const noexcept
 
InfoProxy< IOobjectinfo () const
 
void operator= (const IOobject &io)
 
readOptionreadOpt () noexcept
 
writeOptionwriteOpt () noexcept
 
boolregisterObject () noexcept
 
boolglobalObject () noexcept
 
template<>
bool isHeaderClassName () const
 
template<class StringType >
Foam::word groupName (StringType base, const word &group)
 
- Public Member Functions inherited from HashSet
 HashSet ()
 
 HashSet (const this_type &rhs)
 
 HashSet (this_type &&rhs)
 
 HashSet (const label size)
 
 HashSet (Istream &is)
 
template<unsigned N>
 HashSet (const FixedList< Key, N > &list)
 
 HashSet (const UList< Key > &list)
 
template<class Addr >
 HashSet (const IndirectListBase< Key, Addr > &list)
 
 HashSet (std::initializer_list< Key > list)
 
template<class AnyType , class AnyHash >
 HashSet (const HashTable< AnyType, Key, AnyHash > &tbl)
 
bool test (const Key &key) const noexcept
 
bool insert (const Key &key)
 
bool set (const Key &key)
 
bool unset (const Key &key)
 
template<class InputIter >
label insert (InputIter first, InputIter last)
 
label insert (std::initializer_list< Key > list)
 
template<unsigned N>
label insert (const FixedList< Key, N > &list)
 
label insert (const UList< Key > &list)
 
template<class Addr >
label insert (const IndirectListBase< Key, Addr > &list)
 
template<class InputIter >
label set (InputIter first, InputIter last)
 
label set (std::initializer_list< Key > list)
 
template<unsigned N>
label set (const FixedList< Key, N > &list)
 
label set (const UList< Key > &list)
 
template<class Addr >
label set (const IndirectListBase< Key, Addr > &list)
 
template<class InputIter >
label setMany (InputIter first, InputIter last)
 
template<class InputIter >
label unset (InputIter first, InputIter last)
 
label unset (std::initializer_list< Key > list)
 
template<unsigned N>
label unset (const FixedList< Key, N > &list)
 
label unset (const UList< Key > &list)
 
template<class Addr >
label unset (const IndirectListBase< Key, Addr > &list)
 
iterator begin ()
 
const_iterator begin () const
 
const_iterator cbegin () const
 
iterator end () noexcept
 
const_iterator end () const noexcept
 
constexpr const_iterator cend () const noexcept
 
OstreamwriteList (Ostream &os, const label shortLen=0) const
 
bool operator() (const Key &key) const noexcept
 
bool operator[] (const Key &key) const noexcept
 
void operator= (const this_type &rhs)
 
void operator= (this_type &&rhs)
 
bool operator== (const this_type &rhs) const
 
bool operator!= (const this_type &rhs) const
 
void operator= (const UList< Key > &rhs)
 
template<unsigned N>
void operator= (const FixedList< Key, N > &rhs)
 
void operator= (std::initializer_list< Key > rhs)
 
this_typeoperator|= (const this_type &rhs)
 
this_typeoperator&= (const this_type &rhs)
 
this_typeoperator^= (const this_type &rhs)
 
this_typeoperator+= (const this_type &rhs)
 
this_typeoperator-= (const this_type &rhs)
 
template<class UnaryPredicate >
List< Key > tocValues (const UnaryPredicate &, const bool)=delete
 
template<class BinaryPredicate >
List< Key > tocEntries (const BinaryPredicate &, const bool)=delete
 
template<class UnaryPredicate >
label countValues (const UnaryPredicate &, const bool)=delete
 
template<class BinaryPredicate >
label countEntries (const BinaryPredicate &, const bool)=delete
 
template<class UnaryPredicate >
label filterValues (const UnaryPredicate &, const bool)=delete
 
template<class BinaryPredicate >
label filterEntries (const BinaryPredicate &, const bool)=delete
 
template<class InputIter >
Foam::label assignMany (const label nItems, InputIter first, InputIter last)
 
template<class Key , class Hash >
 HashSet (const UList< Key > &list)
 
template<class Key , class Hash >
 HashSet (std::initializer_list< Key > list)
 
template<class InputIter >
Foam::label insert (InputIter first, InputIter last)
 
template<unsigned N>
Foam::label insert (const FixedList< Key, N > &list)
 
template<class Addr >
Foam::label insert (const IndirectListBase< Key, Addr > &list)
 
template<class InputIter >
Foam::label unset (InputIter first, InputIter last)
 
template<unsigned N>
Foam::label unset (const FixedList< Key, N > &list)
 
template<class Addr >
Foam::label unset (const IndirectListBase< Key, Addr > &list)
 

Protected Member Functions

virtual void updateLabels (const labelUList &map)
 
virtual void check (const label maxSize)
 
 topoBoolSet (const polyMesh &mesh, const word &setName)
 
 topoBoolSet (const polyMesh &mesh, const word &setName, const label size, const bool val)
 
 topoBoolSet (const polyMesh &mesh, const word &setName, const label size, const boolList &bools)
 
 topoBoolSet (const polyMesh &mesh, const word &setName, const label size, boolList &&bools)
 
- Protected Member Functions inherited from topoSet
void writeDebug (Ostream &os, const label maxElem, topoSet::const_iterator &iter, label &elemI) const
 
void writeDebug (Ostream &os, const pointField &coords, const label maxElem, topoSet::const_iterator &iter, label &elemI) const
 
void writeDebug (Ostream &os, const pointField &coords, const label maxLen) const
 
 topoSet (const topoSet &)=delete
 
- Protected Member Functions inherited from regIOobject
bool readHeaderOk (const IOstreamOption::streamFormat fmt, const word &typeName)
 
- Protected Member Functions inherited from IOobject
void setBad (const string &s)
 

Protected Attributes

boolList selected_
 

Additional Inherited Members

- Public Types inherited from IOobject
enum  objectState : char { GOOD, BAD }
 
enum  readOption : char { MUST_READ, MUST_READ_IF_MODIFIED, READ_IF_PRESENT, NO_READ }
 
enum  writeOption : char { AUTO_WRITE = 0, NO_WRITE = 1 }
 
enum  fileCheckTypes : char { timeStamp, timeStampMaster, inotify, inotifyMaster }
 
- Public Types inherited from HashSet
typedef HashSet< Key, Hashthis_type
 
typedef HashTable< zero::null, Key, Hashparent_type
 
using iterator = typename parent_type::key_iterator
 
using const_iterator = typename parent_type::const_key_iterator
 
- Static Public Member Functions inherited from topoSet
static fileName localPath (const polyMesh &mesh, const word &name)
 
static IOobject findIOobject (const polyMesh &mesh, const word &name, readOption r=MUST_READ, writeOption w=NO_WRITE)
 
static IOobject findIOobject (const Time &runTime, const word &name, readOption r=MUST_READ, writeOption w=NO_WRITE)
 
static autoPtr< topoSetNew (const word &setType, const polyMesh &mesh, const word &name, readOption r=MUST_READ, writeOption w=NO_WRITE)
 
static autoPtr< topoSetNew (const word &setType, const polyMesh &mesh, const word &name, const label size, writeOption w=NO_WRITE)
 
static autoPtr< topoSetNew (const word &setType, const polyMesh &mesh, const word &name, const topoSet &set, writeOption w=NO_WRITE)
 
template<class Container >
static void updateMesh (const fileName &instance, const mapPolyMesh &, Container &)
 
template<class Container >
static void setInstance (const fileName &instance, Container &)
 
static void removeFiles (const polyMesh &)
 
- Static Public Member Functions inherited from regIOobject
template<class Type >
static Type & store (Type *p)
 
template<class Type >
static Type & store (autoPtr< Type > &ptr)
 
template<class Type >
static Type & store (autoPtr< Type > &&ptr)
 
template<class Type >
static Type & store (refPtr< Type > &ptr)
 
template<class Type >
static Type & store (refPtr< Type > &&ptr)
 
template<class Type >
static Type & store (tmp< Type > &ptr)
 
template<class Type >
static Type & store (tmp< Type > &&ptr)
 
- Static Public Member Functions inherited from IOobject
static bool bannerEnabled () noexcept
 
static bool bannerEnabled (bool on) noexcept
 
static bool fileNameComponents (const fileName &path, fileName &instance, fileName &local, word &name)
 
template<class StringType >
static word groupName (StringType base, const word &group)
 
static word group (const word &name)
 
static word member (const word &name)
 
static word scopedName (const std::string &scope, const word &name)
 
static IOobject selectIO (const IOobject &io, const fileName &altFile, const word &ioName="")
 
static OstreamwriteBanner (Ostream &os, const bool noSyntaxHint=false)
 
static OstreamwriteDivider (Ostream &os)
 
static OstreamwriteEndDivider (Ostream &os)
 
- Static Public Attributes inherited from topoSet
static int disallowGenericSets
 
- Static Public Attributes inherited from IOobject
static const Enum< fileCheckTypesfileCheckTypesNames
 
static char scopeSeparator
 
static fileCheckTypes fileModificationChecking
 
static float fileModificationSkew
 
static int maxFileModificationPolls
 
- Static Protected Member Functions inherited from IOobject
static void writeHeaderContent (Ostream &os, const IOobject &io, const word &objectType, const dictionary *metaDataDict=nullptr)
 
static void writeHeaderContent (dictionary &dict, const IOobject &io, const word &objectType, IOstreamOption streamOpt, const dictionary *metaDataDict=nullptr)
 
- Static Protected Attributes inherited from regIOobject
static bool masterOnlyReading = false
 

Detailed Description

Base for a special purpose topoSet using labels stored as a boolList.

Source files

Definition at line 47 of file topoBoolSet.H.

Constructor & Destructor Documentation

◆ topoBoolSet() [1/4]

topoBoolSet ( const polyMesh mesh,
const word setName 
)
protected

Definition at line 115 of file topoBoolSet.C.

◆ topoBoolSet() [2/4]

topoBoolSet ( const polyMesh mesh,
const word setName,
const label  size,
const bool  val 
)
protected

Definition at line 138 of file topoBoolSet.C.

◆ topoBoolSet() [3/4]

topoBoolSet ( const polyMesh mesh,
const word setName,
const label  size,
const boolList bools 
)
protected

Definition at line 152 of file topoBoolSet.C.

References Foam::HashSetOps::bools(), and List::resize().

Here is the call graph for this function:

◆ topoBoolSet() [4/4]

topoBoolSet ( const polyMesh mesh,
const word setName,
const label  size,
boolList &&  bools 
)
protected

Definition at line 167 of file topoBoolSet.C.

References Foam::HashSetOps::bools().

Here is the call graph for this function:

◆ ~topoBoolSet()

virtual ~topoBoolSet ( )
virtualdefault

Member Function Documentation

◆ updateLabels()

void updateLabels ( const labelUList map)
protectedvirtual

Reimplemented from topoSet.

Definition at line 29 of file topoBoolSet.C.

References Foam::abort(), Foam::endl(), Foam::FatalError, FatalErrorInFunction, forAll, IOobject::name(), Foam::nl, topoBoolSet::selected_, List::set(), UList::size(), List::transfer(), and Foam::type().

Here is the call graph for this function:

◆ check()

void check ( const label  maxSize)
protectedvirtual

Reimplemented from topoSet.

Definition at line 94 of file topoBoolSet.C.

References Foam::abort(), Foam::endl(), Foam::FatalError, FatalErrorInFunction, Foam::name(), Foam::nl, and Foam::type().

Here is the call graph for this function:

◆ addressing() [1/2]

const boolList& addressing ( ) const
inline

Definition at line 108 of file topoBoolSet.H.

References topoBoolSet::selected_.

Referenced by geometric::add().

Here is the caller graph for this function:

◆ addressing() [2/2]

boolList& addressing ( )
inline

Definition at line 114 of file topoBoolSet.H.

References topoBoolSet::selected_.

◆ reset()

void reset ( )
inline

Definition at line 120 of file topoBoolSet.H.

References topoBoolSet::selected_.

◆ found()

bool found ( const label  id) const
virtual

Reimplemented from topoSet.

Definition at line 183 of file topoBoolSet.C.

◆ set() [1/2]

bool set ( const label  id)
virtual

Reimplemented from topoSet.

Definition at line 189 of file topoBoolSet.C.

◆ unset() [1/2]

bool unset ( const label  id)
virtual

Reimplemented from topoSet.

Definition at line 195 of file topoBoolSet.C.

◆ set() [2/2]

void set ( const labelUList labels)
virtual

Reimplemented from topoSet.

Definition at line 201 of file topoBoolSet.C.

◆ unset() [2/2]

void unset ( const labelUList labels)
virtual

Reimplemented from topoSet.

Definition at line 210 of file topoBoolSet.C.

◆ invert()

void invert ( const label  maxLen)
virtual

Reimplemented from topoSet.

Definition at line 219 of file topoBoolSet.C.

References Foam::constant::physicoChemical::b.

◆ subset()

void subset ( const topoSet set)
virtual

Reimplemented from topoSet.

Definition at line 229 of file topoBoolSet.C.

References forAll, and Foam::BitOps::set().

Here is the call graph for this function:

◆ addSet()

void addSet ( const topoSet set)
virtual

Reimplemented from topoSet.

Definition at line 246 of file topoBoolSet.C.

References Foam::BitOps::set().

Here is the call graph for this function:

◆ subtractSet()

void subtractSet ( const topoSet set)
virtual

Reimplemented from topoSet.

Definition at line 256 of file topoBoolSet.C.

References Foam::BitOps::set().

Here is the call graph for this function:

Member Data Documentation

◆ selected_

boolList selected_
protected

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