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

Base class for profile models. More...

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

Public Member Functions

 profileModelList (const dictionary &dict, const bool readFields=true)
 Constructor. More...
 
 ~profileModelList ()
 Destructor. More...
 
void connectBlades (const List< word > &names, List< label > &addr) const
 Set blade->profile addressing. More...
 
- Public Member Functions inherited from PtrList< profileModel >
 PtrList ()
 Null Constructor. More...
 
 PtrList (const label)
 Construct with size specified. More...
 
 PtrList (const PtrList< profileModel > &)
 Copy constructor. More...
 
 PtrList (const PtrList< profileModel > &, const CloneArg &)
 Copy constructor with additional argument for clone. More...
 
 PtrList (const Xfer< PtrList< profileModel > > &)
 Construct by transferring the parameter contents. More...
 
 PtrList (PtrList< profileModel > &, bool reUse)
 Construct as copy or re-use as specified. More...
 
 PtrList (const SLPtrList< profileModel > &)
 Construct as copy of SLPtrList<T> More...
 
 PtrList (Istream &, const INew &)
 Construct from Istream using given Istream constructor class. More...
 
 PtrList (Istream &)
 Construct from Istream using default Istream constructor class. More...
 
 ~PtrList ()
 Destructor. More...
 
label size () const
 Return the number of elements in the PtrList. More...
 
bool empty () const
 Return true if the PtrList is empty (ie, size() is zero). More...
 
profileModelfirst ()
 Return reference to the first element of the list. More...
 
const profileModelfirst () const
 Return reference to first element of the list. More...
 
profileModellast ()
 Return reference to the last element of the list. More...
 
const profileModellast () const
 Return reference to the last element of the list. More...
 
void setSize (const label)
 Reset size of PtrList. If extending the PtrList, new entries are. More...
 
void resize (const label)
 Alias for setSize(const label) More...
 
void clear ()
 Clear the PtrList, i.e. set size to zero deleting all the. More...
 
void append (profileModel *)
 Append an element at the end of the list. More...
 
void append (const autoPtr< profileModel > &)
 
void append (const tmp< profileModel > &)
 
void transfer (PtrList< profileModel > &)
 Transfer the contents of the argument PtrList into this PtrList. More...
 
Xfer< PtrList< profileModel > > xfer ()
 Transfer contents to the Xfer container. More...
 
bool set (const label) const
 Is element set. More...
 
autoPtr< profileModelset (const label, profileModel *)
 Set element. Return old element (can be NULL). More...
 
autoPtr< profileModelset (const label, const autoPtr< profileModel > &)
 
autoPtr< profileModelset (const label, const tmp< profileModel > &)
 
void reorder (const labelUList &)
 Reorders elements. Ordering does not have to be done in. More...
 
const profileModeloperator[] (const label) const
 Return element const reference. More...
 
profileModeloperator[] (const label)
 Return element reference. More...
 
const profileModeloperator() (const label) const
 Return element const pointer. More...
 
PtrList< profileModel > & operator= (const PtrList< profileModel > &)
 Assignment. More...
 
iterator begin ()
 Return an iterator to begin traversing the PtrList. More...
 
const_iterator begin () const
 Return an const_iterator to begin traversing the PtrList. More...
 
iterator end ()
 Return an iterator to end traversing the PtrList. More...
 
const_iterator end () const
 Return an const_iterator to end traversing the PtrList. More...
 
const_iterator cbegin () const
 Return an const_iterator to begin traversing the PtrList. More...
 
const_iterator cend () const
 Return an const_iterator to end traversing the PtrList. More...
 

Protected Attributes

const dictionary dict_
 Dictionary. More...
 

Additional Inherited Members

- Public Types inherited from PtrList< profileModel >
typedef profileModel value_type
 Type of values the PtrList contains. More...
 
typedef profileModelreference
 Type that can be used for storing into PtrList::value_type objects. More...
 
typedef const profileModelconst_reference
 Type that can be used for storing into constant PtrList::value_type. More...
 
- Protected Member Functions inherited from PtrList< profileModel >
void read (Istream &, const INew &inewt)
 Read from Istream using given Istream constructor class. More...
 

Detailed Description

Base class for profile models.

Source files

Definition at line 49 of file profileModelList.H.

Constructor & Destructor Documentation

profileModelList ( const dictionary dict,
const bool  readFields = true 
)

Constructor.

Definition at line 31 of file profileModelList.C.

References Foam::endl(), forAll, Foam::Info, Foam::compressible::New(), setSize(), dictionary::subDict(), and dictionary::toc().

Here is the call graph for this function:

Destructor.

Definition at line 70 of file profileModelList.C.

References profileModelList::connectBlades().

Here is the call graph for this function:

Member Function Documentation

void connectBlades ( const List< word > &  names,
List< label > &  addr 
) const

Set blade->profile addressing.

Definition at line 77 of file profileModelList.C.

References Foam::exit(), Foam::FatalError, FatalErrorIn, forAll, profileModel::name(), PtrList< profileModel >::operator[](), and PtrList< profileModel >::size().

Referenced by profileModelList::~profileModelList().

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

const dictionary dict_
protected

Dictionary.

Definition at line 59 of file profileModelList.H.


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