37 m_identifier (identifier),
46 m_identifier (that.m_identifier),
49 m_location (that.m_location),
129 "Cannot add interaction with nullptr"
CepsLocationFlag
DataLocation: an enum that will be used by various elements of the code (pde, readers,...
@ Point
Data is defined on each point.
@ ZeroD
Data is defined once.
#define CEPS_ABORT_IF(condition, message)
Stops the execution with a message if condition is true. If testing is enabled, only throws a runtime...
std::basic_string< CepsChar > CepsString
C++ format string.
CepsIndex CepsUnknownIndex
For unknowns.
std::set< _Type, _Compare, _Alloc > CepsSet
C++ set.
A class used to defined an unknown of a PDE problem The unknown can be defined on a specific region,...
CepsBool interactsWith(Unknown *u) const
Tells if unknowns interacts with another, true if self.
const CepsSet< Unknown * > & getUnknownsInInteraction() const
Get the set of unknowns with whom there are interactions.
Unknown & operator=(const Unknown &that)
Copy assignement.
const CepsLocationFlag & getLocation() const
Get the data location of the unknown.
CepsBool isOnLocation(const CepsLocationFlag &flag) const
Detect if the unknown is appliable on this location.
void setUnit(const CepsString &unit)
Set the unit of the unknown.
CepsString m_unit
Unit of the unknown.
void setName(const CepsString &name)
Get the name of the unknown.
CepsString m_name
Name of the unknown.
void addUnknownInteraction(Unknown *u, CepsBool addReciprocal=true)
Add an unknown this one interacts with.
CepsLocationFlag m_location
Unknown location.
const CepsString & getName() const
Get the name of the unknown.
Unknown()=delete
Default constructor.
CepsBool isSpatial() const
Tells if unknown is defined on geometrical elements.
void setLocation(const CepsLocationFlag &location)
Set the data location of the unknown.
const CepsString & getUnit() const
Get the unit of the unknown.
CepsUnknownIndex getIdentifier() const
Get the identifier of the unknown.
CepsUnknownIndex m_identifier
Identifier.
CepsSet< Unknown * > m_interactsWith
Other unknowns in interaction.
CepsBool isNullPtr(_Type *ptr)
Tells if passed pointer is null.
CepsBool isDifferentPtr(_Type *xptr, U *yptr)
Tells if two pointers designate two different addresses.