Go to the documentation of this file.
77 int main(
int argc,
char *argv[])
93 for (
label i = 0; i < 5; ++i)
100 Info<<
"listApp: " << listApp <<
endl;
102 Info<<
"indirectly delete some items via set(.., 0) :" <<
endl;
103 for (
label i = 0; i < 3; i++)
108 Info<<
"transfer list2 -> list1:" <<
endl;
114 Info<<
"indirectly delete some items via setSize :" <<
endl;
120 Info<<
"Transferred via the xfer() method" <<
endl;
Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be repl...
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
void append(T *)
Append an element at the end of the list.
#define forAll(list, i)
Loop across all elements in list.
Xfer< PtrList< T > > xfer()
Transfer contents to the Xfer container.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Geometric class that creates a 2D plane and can return the intersection point between a line and the ...
bool set(const label) const
Is element set.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
void transfer(PtrList< T > &)
Transfer the contents of the argument PtrList into this PtrList.
Ostream & operator<<(Ostream &, const edgeMesh &)
Vector< scalar > vector
A scalar version of the templated Vector.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
autoPtr< Scalar > clone() const
void setSize(const label)
Reset size of PtrList. If extending the PtrList, new entries are.
int main(int argc, char *argv[])
friend Ostream & operator<<(Ostream &os, const Scalar &val)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...