A simple class to track which types have already been processed by a code maker.
More...
#include <generatedtypeset.hxx>
|
std::unordered_set< OString > | m_set |
|
A simple class to track which types have already been processed by a code maker.
This class is not multi-thread–safe.
Definition at line 37 of file generatedtypeset.hxx.
◆ GeneratedTypeSet() [1/2]
codemaker::GeneratedTypeSet::GeneratedTypeSet |
( |
| ) |
|
|
inline |
◆ GeneratedTypeSet() [2/2]
◆ add()
void codemaker::GeneratedTypeSet::add |
( |
OString const & |
type | ) |
|
|
inline |
Add a type to the set of generated types.
If the type was already present, nothing happens.
- Parameters
-
type | a UNO type registry name |
Definition at line 49 of file generatedtypeset.hxx.
References m_set, and type.
Referenced by produce().
◆ contains()
bool codemaker::GeneratedTypeSet::contains |
( |
OString const & |
type | ) |
const |
|
inline |
Checks whether a given type has already been generated.
- Parameters
-
type | a UNO type registry name |
- Returns
- true iff the given type has already been generated
Definition at line 58 of file generatedtypeset.hxx.
References m_set, and type.
Referenced by produce().
◆ operator=()
◆ m_set
std::unordered_set<OString> codemaker::GeneratedTypeSet::m_set |
|
private |
The documentation for this class was generated from the following file: