Public Member Functions | Private Attributes | Friends
surfacePatch Class Reference

'Patch' on surface as subset of triSurface. More...

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

Public Member Functions

 ClassName ("surfacePatch")
 Runtime type information. More...
 
 surfacePatch ()
 Construct null. More...
 
 surfacePatch (const word &geometricType, const word &name, const label size, const label start, const label index)
 Construct from components. More...
 
 surfacePatch (Istream &is, const label index)
 Construct from Istream. More...
 
 surfacePatch (const word &name, const dictionary &dict, const label index)
 Construct from dictionary. More...
 
 surfacePatch (const surfacePatch &)
 Construct as copy. More...
 
label start () const
 Return start label of this patch in the polyMesh face list. More...
 
labelstart ()
 Return start label of this patch in the polyMesh face list. More...
 
label size () const
 Return size of this patch in the polyMesh face list. More...
 
labelsize ()
 Return size of this patch in the polyMesh face list. More...
 
void write (Ostream &) const
 Write. More...
 
void writeDict (Ostream &) const
 Write dictionary. More...
 
bool operator!= (const surfacePatch &) const
 
bool operator== (const surfacePatch &) const
 compare. More...
 
 ClassName ("surfacePatch")
 Runtime type information. More...
 
 surfacePatch ()
 Construct null. More...
 
 surfacePatch (const word &geometricType, const word &name, const label size, const label start, const label index)
 Construct from components. More...
 
 surfacePatch (Istream &is, const label index)
 Construct from Istream. More...
 
 surfacePatch (const word &name, const dictionary &dict, const label index)
 Construct from dictionary. More...
 
 surfacePatch (const surfacePatch &)
 Construct as copy. More...
 
label start () const
 Return start label of this patch in the polyMesh face list. More...
 
labelstart ()
 Return start label of this patch in the polyMesh face list. More...
 
label size () const
 Return size of this patch in the polyMesh face list. More...
 
labelsize ()
 Return size of this patch in the polyMesh face list. More...
 
void write (Ostream &) const
 Write. More...
 
void writeDict (Ostream &) const
 Write dictionary. More...
 
bool operator!= (const surfacePatch &) const
 
bool operator== (const surfacePatch &) const
 compare. More...
 
- Public Member Functions inherited from geometricSurfacePatch
 ClassName ("geometricSurfacePatch")
 Runtime type information. More...
 
 geometricSurfacePatch ()
 Construct null. More...
 
 geometricSurfacePatch (const word &geometricType, const word &name, const label index)
 Construct from components. More...
 
 geometricSurfacePatch (Istream &, const label index)
 Construct from Istream. More...
 
 geometricSurfacePatch (const word &name, const dictionary &dict, const label index)
 Construct from dictionary. More...
 
const wordname () const
 Return name. More...
 
wordname ()
 Return name. More...
 
const wordgeometricType () const
 Return the type of the patch. More...
 
wordgeometricType ()
 Return the type of the patch. More...
 
label index () const
 Return the index of this patch in the boundaryMesh. More...
 
labelindex ()
 Return the index of this patch in the boundaryMesh. More...
 
void write (Ostream &) const
 Write. More...
 
void writeDict (Ostream &) const
 Write dictionary. More...
 
bool operator!= (const geometricSurfacePatch &) const
 
bool operator== (const geometricSurfacePatch &) const
 compare. More...
 
 ClassName ("geometricSurfacePatch")
 Runtime type information. More...
 
 geometricSurfacePatch ()
 Construct null. More...
 
 geometricSurfacePatch (const word &geometricType, const word &name, const label index)
 Construct from components. More...
 
 geometricSurfacePatch (Istream &, const label index)
 Construct from Istream. More...
 
 geometricSurfacePatch (const word &name, const dictionary &dict, const label index)
 Construct from dictionary. More...
 
const wordname () const
 Return name. More...
 
wordname ()
 Return name. More...
 
const wordgeometricType () const
 Return the type of the patch. More...
 
wordgeometricType ()
 Return the type of the patch. More...
 
label index () const
 Return the index of this patch in the boundaryMesh. More...
 
labelindex ()
 Return the index of this patch in the boundaryMesh. More...
 
void write (Ostream &) const
 Write. More...
 
void writeDict (Ostream &) const
 Write dictionary. More...
 
bool operator!= (const geometricSurfacePatch &) const
 
bool operator== (const geometricSurfacePatch &) const
 compare. More...
 

Private Attributes

label size_
 size of this patch in the triSurface face list More...
 
label start_
 Start label of this patch in the triSurface face list. More...
 

Friends

Ostreamoperator<< (Ostream &, const surfacePatch &)
 
Ostreamoperator<< (Ostream &, const surfacePatch &)
 

Detailed Description

'Patch' on surface as subset of triSurface.

Source files

Source files

Definition at line 51 of file surfacePatch.H.

Constructor & Destructor Documentation

◆ surfacePatch() [1/10]

Construct null.

Definition at line 41 of file surfacePatch.C.

◆ surfacePatch() [2/10]

surfacePatch ( const word geometricType,
const word name,
const label  size,
const label  start,
const label  index 
)

Construct from components.

Definition at line 52 of file surfacePatch.C.

◆ surfacePatch() [3/10]

surfacePatch ( Istream is,
const label  index 
)

Construct from Istream.

Definition at line 67 of file surfacePatch.C.

References Foam::readLabel(), surfacePatch::size_, and surfacePatch::start_.

Here is the call graph for this function:

◆ surfacePatch() [4/10]

surfacePatch ( const word name,
const dictionary dict,
const label  index 
)

Construct from dictionary.

Definition at line 79 of file surfacePatch.C.

◆ surfacePatch() [5/10]

surfacePatch ( const surfacePatch sp)

Construct as copy.

Definition at line 92 of file surfacePatch.C.

◆ surfacePatch() [6/10]

Construct null.

◆ surfacePatch() [7/10]

surfacePatch ( const word geometricType,
const word name,
const label  size,
const label  start,
const label  index 
)

Construct from components.

◆ surfacePatch() [8/10]

surfacePatch ( Istream is,
const label  index 
)

Construct from Istream.

◆ surfacePatch() [9/10]

surfacePatch ( const word name,
const dictionary dict,
const label  index 
)

Construct from dictionary.

◆ surfacePatch() [10/10]

surfacePatch ( const surfacePatch )

Construct as copy.

Member Function Documentation

◆ ClassName() [1/2]

ClassName ( "surfacePatch"  )

Runtime type information.

◆ start() [1/4]

label start ( ) const
inline

Return start label of this patch in the polyMesh face list.

Definition at line 102 of file surfacePatch.H.

References surfacePatch::start_.

Referenced by triSurface::calcPatches().

Here is the caller graph for this function:

◆ start() [2/4]

label& start ( )
inline

Return start label of this patch in the polyMesh face list.

Definition at line 108 of file surfacePatch.H.

References surfacePatch::start_.

◆ size() [1/4]

label size ( ) const
inline

Return size of this patch in the polyMesh face list.

Definition at line 114 of file surfacePatch.H.

References surfacePatch::size_.

Referenced by triSurface::calcPatches(), and triSurface::writeSTLASCII().

Here is the caller graph for this function:

◆ size() [2/4]

label& size ( )
inline

Return size of this patch in the polyMesh face list.

Definition at line 120 of file surfacePatch.H.

References surfacePatch::size_.

◆ write() [1/2]

void write ( Ostream os) const

Write.

Definition at line 102 of file surfacePatch.C.

References Foam::endl(), Foam::nl, and Foam::tab.

Here is the call graph for this function:

◆ writeDict() [1/2]

void writeDict ( Ostream os) const

Write dictionary.

Definition at line 109 of file surfacePatch.C.

References token::BEGIN_BLOCK, token::END_BLOCK, Foam::endl(), Foam::name(), Foam::nl, and geometricSurfacePatch::writeDict().

Here is the call graph for this function:

◆ operator!=() [1/2]

bool operator!= ( const surfacePatch p) const

Definition at line 123 of file surfacePatch.C.

References p.

◆ operator==() [1/2]

bool operator== ( const surfacePatch p) const

compare.

Definition at line 129 of file surfacePatch.C.

References p.

◆ ClassName() [2/2]

ClassName ( "surfacePatch"  )

Runtime type information.

◆ start() [3/4]

label start ( ) const
inline

Return start label of this patch in the polyMesh face list.

Definition at line 102 of file surfacePatch.H.

References surfacePatch::start_.

◆ start() [4/4]

label& start ( )
inline

Return start label of this patch in the polyMesh face list.

Definition at line 108 of file surfacePatch.H.

References surfacePatch::start_.

◆ size() [3/4]

label size ( ) const
inline

Return size of this patch in the polyMesh face list.

Definition at line 114 of file surfacePatch.H.

References surfacePatch::size_.

◆ size() [4/4]

label& size ( )
inline

Return size of this patch in the polyMesh face list.

Definition at line 120 of file surfacePatch.H.

References surfacePatch::size_.

◆ write() [2/2]

void write ( Ostream ) const

Write.

◆ writeDict() [2/2]

void writeDict ( Ostream ) const

Write dictionary.

◆ operator!=() [2/2]

bool operator!= ( const surfacePatch ) const

◆ operator==() [2/2]

bool operator== ( const surfacePatch ) const

compare.

Friends And Related Function Documentation

◆ operator<< [1/2]

Ostream& operator<< ( Ostream ,
const surfacePatch  
)
friend

◆ operator<< [2/2]

Ostream& operator<< ( Ostream ,
const surfacePatch  
)
friend

Field Documentation

◆ size_

label size_
private

size of this patch in the triSurface face list

Size of this patch in the triSurface face list.

Definition at line 58 of file surfacePatch.H.

Referenced by surfacePatch::size(), and surfacePatch::surfacePatch().

◆ start_

label start_
private

Start label of this patch in the triSurface face list.

Definition at line 61 of file surfacePatch.H.

Referenced by surfacePatch::start(), and surfacePatch::surfacePatch().


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