#include <WSFieldIndex.h>
|
enum class | Group : uint8_t { ELEMENTS = 1
, ATTRIBUTES = 2
, ELEMENTS_AND_ATTRIBUTES = 3
} |
|
Field index contains pointers to WSType objects
◆ Group
Type(s) of field that are processed with forEach
◆ WSFieldIndex() [1/3]
sptk::WSFieldIndex::WSFieldIndex |
( |
| ) |
|
|
default |
Initialize field index with field fieldList
- Parameters
-
◆ ~WSFieldIndex()
sptk::WSFieldIndex::~WSFieldIndex |
( |
| ) |
|
|
default |
◆ WSFieldIndex() [2/3]
Do not change internal state
◆ WSFieldIndex() [3/3]
Do not change internal state
◆ attributes()
const std::map< String, WSType * > & sptk::WSFieldIndex::attributes |
( |
| ) |
const |
|
inline |
Get attributes
- Returns
- const attributes map
◆ elements()
const std::map< String, WSType * > & sptk::WSFieldIndex::elements |
( |
| ) |
const |
|
inline |
Get elements
- Returns
- const elements map
◆ find()
WSType * sptk::WSFieldIndex::find |
( |
const String & |
name | ) |
const |
Return a field for field name, or return nullptr if not found
- Parameters
-
- Returns
- field pointer, or nullptr if not found
◆ forEach() [1/2]
void sptk::WSFieldIndex::forEach |
( |
const std::function< bool(const WSType *)> & |
method, |
|
|
Group |
fieldType = Group::ELEMENTS_AND_ATTRIBUTES |
|
) |
| const |
Execute the method for each field until it returns false
- Parameters
-
◆ forEach() [2/2]
void sptk::WSFieldIndex::forEach |
( |
const std::function< bool(WSType *)> & |
method, |
|
|
Group |
fieldType = Group::ELEMENTS_AND_ATTRIBUTES |
|
) |
| |
Execute the method for each field until it returns false
- Parameters
-
◆ operator=() [1/2]
Do not change internal state
◆ operator=() [2/2]
Do not change internal state
◆ setAttributes()
void sptk::WSFieldIndex::setAttributes |
( |
const Strings & |
fieldNames, |
|
|
std::initializer_list< WSType * > |
fieldList |
|
) |
| |
Initialize field index with attributes
- Parameters
-
◆ setElements()
void sptk::WSFieldIndex::setElements |
( |
const Strings & |
fieldNames, |
|
|
std::initializer_list< WSType * > |
fieldList |
|
) |
| |
Initialize field index with elements
- Parameters
-
The documentation for this class was generated from the following file: