class BaseTargetHelper { public: explicit BaseTargetHelper(); BaseTargetHelper(BaseTargetHelper&) = delete; BaseTargetHelper& operator=(BaseTargetHelper&); ~BaseTargetHelper() = default; void EnableMultiThreadingSupport(bool enableMultiThreading = true); bool isMTSupportEnabled(); void SetFlushPolicy(const Flush_Policy& fPolicy); const std::unique_ptr<Flush_Policy>& Policy() const; private: bool multiThreadSupport; protected: std::unique_ptr<Flush_Policy> policy; };
| Public Functions | |||||
|---|---|---|---|---|---|
| explicit |
BaseTargetHelper();
This is the only constructor available for this class.
|
||||
| BaseTargetHelper& |
operator=(BaseTargetHelper&);
This copy operator copies the multi-threading support option and the flush policy currently
in place.
|
||||
| void |
EnableMultiThreadingSupport(bool
enableMultiThreading=true);
This function uses a boolean value to simply toggle whether or not multi-threading support
is enabled.
|
||||
| bool |
isMTSupportEnabled();
Simply returns `true` or `false` based on the current state of
multi-threading support.
|
||||
| void |
SetFlushPolicy(const Flush_Policy&
fPolicy);
This functions is responsible for setting the flush policy used and covers the flush mode,
flush type, and flushing values.
|
||||
| const std::unique_ptr<Flush_Policy>& |
Policy() const;
This function simply returns a const pointer to the policy currently in place.
|
||||
| explicit BaseTargetHelper(); |
|---|
This is the only constructor available for this class. By default, it sets:
|
| BaseTargetHelper&operator=(BaseTargetHelper&); |
| This copy operator copies the multi-threading support option and the flush policy currently in place. |
| void EnableMultiThreadingSupport(bool enableMultiThreading =true); |
This function uses a boolean value to simply toggle whether or not multi-threading support
is enabled.
|
| bool isMTSupportEnabled(); |
Simply returns `true` or `false` based on the current state of
multi-threading support.
|
| void SetFlushPolicy(const Flush_Policy& fPolicy); |
|
This function takes a reference to a Flush_Policy class object as its
parameter.
Flush_Policy covers the following options:
|
| const std::unique_ptr<Flush_Policy>&Policy() const; |
| This function simply returns a const pointer to the policy currently in place. |