A List of objects of type <T> with automated input and output using a compact storage. Behaves like IOList except when binary output in case it writes a CompactListList. More...
Public Member Functions | |
| TypeName ("CompactList") | |
| Runtime type information. More... | |
| CompactIOList (const CompactIOList &)=default | |
| Default copy construct. More... | |
| CompactIOList (const IOobject &io) | |
| Construct from IOobject. More... | |
| CompactIOList (const IOobject &io, const label len) | |
| Construct from IOobject and default length of CompactIOList. More... | |
| CompactIOList (const IOobject &io, const UList< T > &content) | |
| Construct from IOobject and List content. More... | |
| CompactIOList (const IOobject &io, List< T > &&content) | |
| Construct by transferring the List content. More... | |
| virtual | ~CompactIOList ()=default |
| virtual bool | writeObject (IOstreamOption streamOpt, const bool valid) const |
| Write using stream options. Checks for overflow in binary. More... | |
| virtual bool | writeData (Ostream &) const |
| void | operator= (const CompactIOList< T, BaseType > &rhs) |
| Copy assignment of entries. More... | |
Friends | |
| Istream & | operator>> (Istream &, CompactIOList< T, BaseType > &) |
| Read List from Istream, discarding contents of existing List. More... | |
| Ostream & | operator (Ostream &, const CompactIOList< T, BaseType > &) |
A List of objects of type <T> with automated input and output using a compact storage. Behaves like IOList except when binary output in case it writes a CompactListList.
Useful for lists of small sublists e.g. faceList, cellList.
Definition at line 55 of file CompactIOList.H.
|
default |
Default copy construct.
|
explicit |
Construct from IOobject.
Definition at line 81 of file CompactIOList.C.
| CompactIOList | ( | const IOobject & | io, |
| const label | len | ||
| ) |
Construct from IOobject and default length of CompactIOList.
Definition at line 98 of file CompactIOList.C.
| CompactIOList | ( | const IOobject & | io, |
| const UList< T > & | content | ||
| ) |
Construct from IOobject and List content.
Definition at line 122 of file CompactIOList.C.
| CompactIOList | ( | const IOobject & | io, |
| List< T > && | content | ||
| ) |
Construct by transferring the List content.
Definition at line 146 of file CompactIOList.C.
|
virtualdefault |
| TypeName | ( | "CompactList" | ) |
Runtime type information.
|
virtual |
Write using stream options. Checks for overflow in binary.
Definition at line 170 of file CompactIOList.C.
Definition at line 209 of file CompactIOList.C.
| void operator= | ( | const CompactIOList< T, BaseType > & | rhs | ) |
Copy assignment of entries.
Definition at line 219 of file CompactIOList.C.
|
friend |
|
friend |