|
FOSSredder 0.5.0
|
#include <Statement.h>
Public Member Functions | |
| Statement () | |
| Statement (const Statement &)=delete | |
| Statement (Statement &&)=delete | |
| Statement & | operator= (const Statement &)=delete |
| Statement & | operator= (Statement &&)=delete |
| void | rename (EntityName value) |
| Renames the statement with normalized entity text. | |
| void | rename (std::string value) |
| Renames the statement with raw text. | |
| void | addTransaction (std::string value) |
| Adds a normalized transaction id when it is not already present. | |
| void | setTransactionIds (std::vector< std::string > value) |
| Replaces the transaction id list with normalized values. | |
| void | insertTransaction (std::string value, std::size_t position) |
| Inserts a transaction id at a requested position. | |
| void | removeTransaction (const std::string &value) |
| Removes a transaction id from the statement. | |
| std::size_t | indexOfTransaction (const std::string &value) const |
| Returns the index of a transaction id. | |
| bool | hasTransactionAt (std::size_t index) const noexcept |
| Checks whether a transaction exists at a given index. | |
| void | moveTransaction (const std::string &value, std::size_t newPosition) |
| Moves a transaction id to a new position. | |
| bool | containsTransaction (const std::string &value) const |
| Checks whether a transaction id exists. | |
| void | clearTransactions () |
| Clears all linked transactions. | |
| std::size_t | transactionCount () const noexcept |
| Returns the number of linked transactions. | |
| bool | empty () const noexcept |
| Checks whether the statement is empty. | |
| const std::string & | id () const noexcept |
| const std::string & | name () const noexcept |
| const std::vector< std::string > & | transactionIds () const noexcept |
| const std::string & | createdAt () const noexcept |
| const std::string & | updatedAt () const noexcept |
| void | setId (std::string value) |
| void | setCreatedAt (std::string value) |
| void | setUpdatedAt (std::string value) |
Definition at line 19 of file Statement.h.
|
default |
|
delete |
|
delete |
| void core::domain::Statement::addTransaction | ( | std::string | value | ) |
Adds a normalized transaction id when it is not already present.
| value | Transaction id to add. |
Definition at line 24 of file Statement.cpp.
| void core::domain::Statement::clearTransactions | ( | ) |
Clears all linked transactions.
Definition at line 86 of file Statement.cpp.
|
nodiscard |
Checks whether a transaction id exists.
| value | Transaction id to search for. |
Definition at line 82 of file Statement.cpp.
|
nodiscardnoexcept |
Definition at line 101 of file Statement.cpp.
|
nodiscardnoexcept |
Checks whether the statement is empty.
Definition at line 94 of file Statement.cpp.
|
nodiscardnoexcept |
Checks whether a transaction exists at a given index.
| index | Index to inspect. |
Definition at line 59 of file Statement.cpp.
|
nodiscardnoexcept |
Definition at line 98 of file Statement.cpp.
|
nodiscard |
Returns the index of a transaction id.
| value | Transaction id to search for. |
Definition at line 55 of file Statement.cpp.
| void core::domain::Statement::insertTransaction | ( | std::string | value, |
| std::size_t | position ) |
Inserts a transaction id at a requested position.
| value | Transaction id to insert. |
| position | Target insertion position. |
Definition at line 37 of file Statement.cpp.
| void core::domain::Statement::moveTransaction | ( | const std::string & | value, |
| std::size_t | newPosition ) |
Moves a transaction id to a new position.
| value | Transaction id to move. |
| newPosition | New insertion position. |
Definition at line 63 of file Statement.cpp.
|
nodiscardnoexcept |
Definition at line 99 of file Statement.cpp.
| void core::domain::Statement::removeTransaction | ( | const std::string & | value | ) |
Removes a transaction id from the statement.
| value | Transaction id to remove. |
Definition at line 50 of file Statement.cpp.
| void core::domain::Statement::rename | ( | EntityName | value | ) |
Renames the statement with normalized entity text.
| value | Normalized entity name wrapper. |
Definition at line 16 of file Statement.cpp.
| void core::domain::Statement::rename | ( | std::string | value | ) |
Renames the statement with raw text.
| value | Raw entity name text. |
Definition at line 20 of file Statement.cpp.
| void core::domain::Statement::setCreatedAt | ( | std::string | value | ) |
Definition at line 104 of file Statement.cpp.
| void core::domain::Statement::setId | ( | std::string | value | ) |
Definition at line 103 of file Statement.cpp.
| void core::domain::Statement::setTransactionIds | ( | std::vector< std::string > | value | ) |
Replaces the transaction id list with normalized values.
| value | Transaction id list to store. |
Definition at line 32 of file Statement.cpp.
| void core::domain::Statement::setUpdatedAt | ( | std::string | value | ) |
Definition at line 105 of file Statement.cpp.
|
nodiscardnoexcept |
Returns the number of linked transactions.
Definition at line 90 of file Statement.cpp.
|
nodiscardnoexcept |
Definition at line 100 of file Statement.cpp.
|
nodiscardnoexcept |
Definition at line 102 of file Statement.cpp.