pTraits< bool > Class Reference

Public Types

typedef bool cmptType
 Component type. More...
 
typedef bool magType
 Magnitude type. More...
 

Public Member Functions

 pTraits (bool val) noexcept
 Copy construct from primitive. More...
 
 pTraits (Istream &is)
 Read construct from Istream. More...
 
 operator bool () const noexcept
 Return the value. More...
 
 operator bool & () noexcept
 Access the value. More...
 

Static Public Attributes

static constexpr direction dim = 3
 Dimensionality of space. More...
 
static constexpr direction rank = 0
 Rank of bool is 0. More...
 
static constexpr direction nComponents = 1
 Number of components in bool is 1. More...
 
static const char *const typeName = "bool"
 
static const char *const componentNames [] = { "" }
 
static const bool zero = false
 
static const bool one = true
 

Detailed Description

Definition at line 74 of file bool.H.

Member Typedef Documentation

◆ cmptType

typedef bool cmptType

Component type.

Definition at line 83 of file bool.H.

◆ magType

typedef bool magType

Magnitude type.

Definition at line 86 of file bool.H.

Constructor & Destructor Documentation

◆ pTraits() [1/2]

pTraits ( bool  val)
inlineexplicitnoexcept

Copy construct from primitive.

Definition at line 112 of file bool.H.

◆ pTraits() [2/2]

pTraits ( Istream is)
explicit

Read construct from Istream.

Definition at line 45 of file bool.C.

Member Function Documentation

◆ operator bool()

operator bool ( ) const
inlinenoexcept

Return the value.

Definition at line 124 of file bool.H.

◆ operator bool &()

operator bool & ( )
inlinenoexcept

Access the value.

Definition at line 130 of file bool.H.

Member Data Documentation

◆ dim

constexpr direction dim = 3
staticconstexpr

Dimensionality of space.

Definition at line 92 of file bool.H.

Referenced by Foam::cof(), Foam::det(), and Foam::kShellMean().

◆ rank

constexpr direction rank = 0
staticconstexpr

Rank of bool is 0.

Definition at line 95 of file bool.H.

◆ nComponents

constexpr direction nComponents = 1
staticconstexpr

Number of components in bool is 1.

Definition at line 98 of file bool.H.

Referenced by porosityModel::adjustNegativeResistance(), anisotropicFilter::anisotropicFilter(), uniformBin::binAddr(), treeBoundBox::calcExtremities(), primitiveMeshTools::cellClosedness(), primitiveMeshTools::cellDeterminant(), CollidingParcel< ParcelType >::CollidingParcel(), Foam::ComplexField(), Foam::meshTools::constrainDirection(), Foam::meshTools::constrainToMeshCentre(), treeBoundBox::contains(), coordinateScaling< scalar >::coordinateScaling(), coordinateScaling< Type >::coordinateScaling(), displacementInterpolationMotionSolver::curPoints(), DSMCParcel< ParcelType >::DSMCParcel(), boundBox::empty(), treeBoundBox::extend(), findCellParticle::findCellParticle(), searchableBox::findLine(), searchableBox::findNearestOnEdge(), coordinateRotation::findOrthogonal(), forAll(), fft::forwardTransform(), ensightSurfaceReader::geometry(), get_geom_list(), searchableBox::getVolumeType(), Foam::Im(), Foam::ImComplexField(), uniformBin::initialise(), injectedParticle::injectedParticle(), KinematicParcel< ParcelType >::KinematicParcel(), Foam::less(), molecule::molecule(), MPPICParcel< ParcelType >::MPPICParcel(), boundBox::nDim(), anisotropicFilter::operator()(), Foam::operator>>(), searchableSphere::overlaps(), dynamicIndexedOctree< Type >::overlaps(), boundBox::overlaps(), genericPatchFieldBase::processEntry(), radiativeIntensityRay::radiativeIntensityRay(), Foam::Re(), uniformBin::read(), particle< Type >::readData(), Foam::readScaling(), Foam::ReComplexField(), Foam::ReImSum(), PDRblock::reset(), sphericalAngularSpring::restrain(), fft::reverseTransform(), solidParticle::solidParticle(), faMatrix< Type >::solve(), fvMatrix< Type >::solveSegregated(), SprayParcel< ParcelType >::SprayParcel(), trackedParticle::trackedParticle(), surfaceDisplacementPointPatchVectorField::updateCoeffs(), boundBox::valid(), wallBoundedParticle::wallBoundedParticle(), regionSizeDistribution::write(), writeCellCentres::write(), PDRblock::gridControl::writeDict(), uniformBin::writeFileHeader(), and dynamicIndexedOctree< Foam::dynamicTreeDataPoint >::writeTreeInfo().

◆ typeName

const char *const typeName = "bool"
static

Definition at line 103 of file bool.H.

◆ componentNames

const char *const componentNames = { "" }
static

◆ zero

const bool zero = false
static

Definition at line 105 of file bool.H.

◆ one

const bool one = true
static

Definition at line 106 of file bool.H.


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