A templated class for holding compound tokens. The underlying container is normally a List of values, it must have a value_type typedef as well as size(), resize(), cdata_bytes(), data_bytes(), size_bytes() methods.
More...
#include <token.H>


Public Types | |
| typedef T::value_type | value_type |
| The type of values held by the compound. | |
Public Member Functions | |
| TypeNameNoDebug ("Compound<T>") | |
| Declare type-name, virtual type (without debug switch). | |
| Compound (const Compound< T > &)=delete | |
| No copy construct. | |
| void | operator= (const Compound< T > &)=delete |
| No copy assignment. | |
| Compound ()=default | |
| Default construct. | |
| Compound (const T &content) | |
| Copy construct from base content. | |
| Compound (T &&content) | |
| Move construct from base content. | |
| Compound (Istream &is) | |
| Read construct from Istream. | |
| virtual label | size () const |
| The size of the underlying content. | |
| virtual void | resize (const label n) |
| Change the size of the underlying content. | |
| virtual void | fill_zero () |
| Fill with zero value or with default value initialized. | |
| virtual void | read (Istream &is) |
| Redirect read to underlying content. | |
| virtual void | write (Ostream &os) const |
| Redirect write to underlying content. | |
| virtual tokenType | typeCode () const |
| The token type (if any) corresponding to the contained component type (LABEL, FLOAT, DOUBLE, etc). | |
| virtual direction | nComponents () const |
| The number of vector-space or other components of the underlying data content. | |
| virtual direction | rank () const |
| The vector-space rank associated with the data content. | |
| virtual const char * | cdata_bytes () const |
| Pointer to the underlying data as byte data. | |
| virtual char * | data_bytes () |
| Pointer to the underlying data as byte data. | |
| virtual std::streamsize | size_bytes () const |
| Size of the (contiguous) byte data. | |
| const::Foam::word | typeName ("List<edge>") |
| Public Member Functions inherited from token::compound | |
| TypeNameNoDebug ("compound") | |
| Declare type-name, virtual type (without debug switch). | |
| declareRunTimeSelectionTable (autoPtr, compound, empty,(),()) | |
| Declare run-time constructor selection table. | |
| constexpr | compound () noexcept |
| Default construct. | |
| virtual | ~compound () noexcept=default |
| Destructor. | |
| template<class Type> | |
| const Type * | isA () const |
Attempt dynamic_cast to Type returns nullptr if cast is not possible. | |
| bool | moved () const noexcept |
| Get compound transferred status. | |
| void | moved (bool b) noexcept |
| Set compound transferred status. | |
| bool | pending () const noexcept |
| Get compound pending-read status. | |
| void | pending (bool b) noexcept |
| Set compound pending-read status. | |
| Public Member Functions inherited from refCount | |
| constexpr | refCount () noexcept |
| Default construct, initializing count to 0. | |
| int | use_count () const noexcept |
| Return the current reference count. | |
| bool | unique () const noexcept |
| Return true if the reference count is zero. | |
| void | operator++ () noexcept |
| Increment the reference count. | |
| void | operator++ (int) noexcept |
| Increment the reference count. | |
| void | operator-- () noexcept |
| Decrement the reference count. | |
| void | operator-- (int) noexcept |
| Decrement the reference count. | |
Static Public Member Functions | |
| template<class... Args> | |
| static autoPtr< compound > | New (Args &&... args) |
| Construct autoPtr compound with forwarding arguments. | |
| Static Public Member Functions inherited from token::compound | |
| static autoPtr< compound > | New (const word &compoundType) |
| Default construct specified compound type. | |
| static autoPtr< compound > | New (const word &compoundType, Istream &is, const bool readContent=true) |
| Default construct specified compound type and read from stream. | |
| static bool | isCompound (const word &compoundType) |
| True if a known (registered) compound type. | |
Additional Inherited Members | |
| Protected Attributes inherited from token::compound | |
| unsigned char | state_ |
| The compound token state, internally used values only. | |
A templated class for holding compound tokens. The underlying container is normally a List of values, it must have a value_type typedef as well as size(), resize(), cdata_bytes(), data_bytes(), size_bytes() methods.
| typedef T::value_type value_type |
No copy construct.
References Compound().
Referenced by Compound(), New(), and operator=().


|
default |
Default construct.
Declare type-name, virtual type (without debug switch).
|
inlinevirtual |
The size of the underlying content.
Implements token::compound.
|
inlinevirtual |
Change the size of the underlying content.
Implements token::compound.
Definition at line 488 of file token.H.
References n.
|
inlinevirtual |
Fill with zero value or with default value initialized.
Implements token::compound.
Redirect read to underlying content.
Implements token::compound.
Definition at line 501 of file token.H.
References Foam::operator>>(), token::compound::state_, and Foam::T().

Redirect write to underlying content.
Implements token::compound.
Definition at line 510 of file token.H.
References os().

|
virtual |
The token type (if any) corresponding to the contained component type (LABEL, FLOAT, DOUBLE, etc).
Implements token::compound.
Definition at line 1182 of file tokenI.H.
References token::BOOL, token::DOUBLE, token::FLOAT, token::INTEGER_32, token::INTEGER_64, token::PUNCTUATION, and token::UNDEFINED.
The number of vector-space or other components of the underlying data content.
Implements token::compound.
The vector-space rank associated with the data content.
Implements token::compound.
|
inlinevirtual |
Pointer to the underlying data as byte data.
Implements token::compound.
|
inlinevirtual |
Pointer to the underlying data as byte data.
Implements token::compound.
|
inlinevirtual |
Size of the (contiguous) byte data.
Implements token::compound.
| const::Foam::word typeName | ( | "List<edge>" | ) |