Public Member Functions | Private Member Functions | Private Attributes | Friends
cellListPMG Class Reference
Inheritance diagram for cellListPMG:
Inheritance graph
[legend]
Collaboration diagram for cellListPMG:
Collaboration graph
[legend]

Public Member Functions

 cellListPMG ()
 null construct More...
 
 ~cellListPMG ()
 
label size () const
 return the number of used elements More...
 
void setSize (const label nElmts)
 set the number of used elements More...
 
void clear ()
 set the size to zero More...
 
void append (const cell &)
 add a cell at the end of the list More...
 
cellnewElmt (const label)
 return an element with bound checking More...
 
void operator= (const cellList &)
 
- Public Member Functions inherited from List
 List ()
 Null constructor. More...
 
 List (const label)
 Construct with given size. More...
 
 List (const label, const T &)
 Construct with given size and value for all elements. More...
 
 List (const List< T > &)
 Copy constructor. More...
 
 List (const Xfer< List< T > > &)
 Construct by transferring the parameter contents. More...
 
 List (List< T > &, bool reUse)
 Construct as copy or re-use as specified. More...
 
 List (const UList< T > &, const labelUList &mapAddressing)
 Construct as subset. More...
 
template<class InputIterator >
 List (InputIterator first, InputIterator last)
 Construct given start and end iterators. More...
 
template<unsigned Size>
 List (const FixedList< T, Size > &)
 Construct as copy of FixedList<T, Size> More...
 
 List (const PtrList< T > &)
 Construct as copy of PtrList<T> More...
 
 List (const SLList< T > &)
 Construct as copy of SLList<T> More...
 
 List (const UIndirectList< T > &)
 Construct as copy of UIndirectList<T> More...
 
 List (const BiIndirectList< T > &)
 Construct as copy of BiIndirectList<T> More...
 
 List (Istream &)
 Construct from Istream. More...
 
autoPtr< List< T > > clone () const
 Clone. More...
 
 ~List ()
 Destructor. More...
 
label size () const
 Return the number of elements in the UList. More...
 
void resize (const label)
 Alias for setSize(const label) More...
 
void resize (const label, const T &)
 Alias for setSize(const label, const T&) More...
 
void setSize (const label)
 Reset size of List. More...
 
void setSize (const label, const T &)
 Reset size of List and value for new elements. More...
 
void clear ()
 Clear the list, i.e. set size to zero. More...
 
void append (const T &)
 Append an element at the end of the list. More...
 
void append (const UList< T > &)
 Append a List at the end of this list. More...
 
void append (const UIndirectList< T > &)
 Append a UIndirectList at the end of this list. More...
 
void transfer (List< T > &)
 Transfer the contents of the argument List into this list. More...
 
template<unsigned SizeInc, unsigned SizeMult, unsigned SizeDiv>
void transfer (DynamicList< T, SizeInc, SizeMult, SizeDiv > &)
 Transfer the contents of the argument List into this list. More...
 
void transfer (SortableList< T > &)
 Transfer the contents of the argument List into this list. More...
 
Xfer< List< T > > xfer ()
 Transfer contents to the Xfer container. More...
 
TnewElmt (const label)
 Return subscript-checked element of UList. More...
 
void operator= (const UList< T > &)
 Assignment from UList operator. Takes linear time. More...
 
void operator= (const List< T > &)
 Assignment operator. Takes linear time. More...
 
void operator= (const SLList< T > &)
 Assignment from SLList operator. Takes linear time. More...
 
void operator= (const UIndirectList< T > &)
 Assignment from UIndirectList operator. Takes linear time. More...
 
void operator= (const BiIndirectList< T > &)
 Assignment from BiIndirectList operator. Takes linear time. More...
 
void operator= (const T &)
 Assignment of all entries to the given value. More...
 
template<class T >
 List (const label s)
 
template<class T >
 List (const label s, const T &a)
 
template<class T >
 List (const List< T > &a)
 
template<class T >
 List (const Xfer< List< T > > &lst)
 
template<class T >
 List (List< T > &a, bool reUse)
 
template<class T >
 List (const UList< T > &a, const labelUList &map)
 
template<class T >
 List (const PtrList< T > &lst)
 
template<class T >
 List (const SLList< T > &lst)
 
template<class T >
 List (const UIndirectList< T > &lst)
 
template<class T >
 List (const BiIndirectList< T > &lst)
 
template<class T >
void transfer (List< T > &a)
 
template<class T >
void transfer (SortableList< T > &a)
 
template<class T >
 List ()
 
template<class T >
 List (Istream &is)
 

Private Member Functions

void operator= (const cellListPMG &)
 
 cellListPMG (const cellListPMG &)
 
void transfer (cellList &)
 

Private Attributes

label nElmts_
 number of used elements More...
 

Friends

Ostreamoperator<< (Ostream &, const cellListPMG &)
 
Istreamoperator>> (Istream &, cellListPMG &)
 

Additional Inherited Members

- Public Types inherited from List
typedef SubList< TsubList
 Declare type of subList. More...
 
- Static Public Member Functions inherited from List
static const List< T > & null ()
 Return a null List. More...
 
- Protected Member Functions inherited from List
void size (const label)
 Override size to be inconsistent with allocated storage. More...
 

Detailed Description

Definition at line 49 of file cellListPMG.H.

Constructor & Destructor Documentation

◆ cellListPMG() [1/2]

cellListPMG ( const cellListPMG )
private

◆ cellListPMG() [2/2]

cellListPMG ( )
inline

null construct

Definition at line 40 of file cellListPMGI.H.

◆ ~cellListPMG()

~cellListPMG ( )
inline

Definition at line 50 of file cellListPMGI.H.

Member Function Documentation

◆ operator=() [1/2]

void operator= ( const cellListPMG )
private

◆ transfer()

void transfer ( cellList )
private

Referenced by polyMeshGenModifier::renumberMesh(), and cellListPMG::setSize().

Here is the caller graph for this function:

◆ size()

label size ( ) const
inline

◆ setSize()

void setSize ( const label  nElmts)
inline

set the number of used elements

Definition at line 61 of file cellListPMGI.H.

References Foam::endl(), Foam::Info, cellListPMG::nElmts_, List::setSize(), List::size(), cellListPMG::transfer(), and List::transfer().

Referenced by cellListPMG::append(), cellListPMG::newElmt(), cellListPMG::operator=(), polyMeshGenCells::read(), and polyMeshGenModifierAddCellByCell::~polyMeshGenModifierAddCellByCell().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ clear()

void clear ( )
inline

set the size to zero

Definition at line 83 of file cellListPMGI.H.

References cellListPMG::nElmts_.

◆ append()

void append ( const cell c)
inline

add a cell at the end of the list

Definition at line 88 of file cellListPMGI.H.

References Foam::constant::universal::c, cellListPMG::nElmts_, and cellListPMG::setSize().

Here is the call graph for this function:

◆ newElmt()

cell & newElmt ( const label  cI)
inline

return an element with bound checking

Definition at line 95 of file cellListPMGI.H.

References cellListPMG::setSize().

Here is the call graph for this function:

◆ operator=() [2/2]

void operator= ( const cellList cls)
inline

Definition at line 103 of file cellListPMGI.H.

References forAll, cellListPMG::setSize(), and List::size().

Here is the call graph for this function:

Friends And Related Function Documentation

◆ operator<<

Ostream& operator<< ( Ostream os,
const cellListPMG cls 
)
friend

Definition at line 110 of file cellListPMGI.H.

◆ operator>>

Istream& operator>> ( Istream is,
cellListPMG cls 
)
friend

Definition at line 118 of file cellListPMGI.H.

Field Documentation

◆ nElmts_

label nElmts_
private

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