Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:toolworks:docs:apparatus:naming-conventions [2021/09/01 17:42] – vladius | en:toolworks:docs:apparatus:naming-conventions [2022/05/13 13:07] (current) – vladius | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Naming Conventions ====== | ====== Naming Conventions ====== | ||
- | There are certain naming conventions used within the framework | + | There are certain naming conventions used within the framework. You should be aware of them, since they actually |
+ | denote a certain behavioral semantics. | ||
- | Those are featured both is C++ and BP workflows: | + | Those are usually |
- | **Get** – get some property value or an item directly. If the get is non-trivial (indirect with a searching involved), also asserts the result is actually available (non-null). | + | ===== Terms ===== |
- | **Find** – something like " | + | **Get** – acquire some property value (or an item) in a direct manner, without performing any sophisticated time-consuming searches or calculations. |
- | **Obtain** – gets an item, if it already exists. Creates and returns | + | **Find** – performs a ceratin (possibly time-consuming) search procedure of any indirection in order to get the necessary entity. The resulting status (or a referal type) would usually explicitly denote the search failure, i.e. the absense of the needed element. |
+ | |||
+ | **Obtain** – tries to get an existing | ||
+ | |||
+ | **Calc** – performs a certain (possibly time-consuming) calculation in order to provide the needed result. | ||
+ | |||
+ | **At** – get an element at a certain indexed position. A corresponding method thereby would usually accept an integral argument. | ||
+ | |||
+ | **Make** – construct a certain entity in a useful (utility) fashing, returning it as a result. The resulting object is usually allocated in an automatic (scope) memory. | ||
+ | |||
+ | **Collect** – add up to the existing elements within the container, instead of emptying it beforehand. | ||