Template Function nix::util::checkEntityInput¶
Defined in File util.hpp
Function Documentation¶
-
template<typename T>
bool nix::util::checkEntityInput(const T &entity, bool raise_exception = true)¶ Helper that checks the entity passed as an argument to a method. If wanted it throws an exception if the entity is not initialized.
- Parameters
entity – The entity
raise_exception – bool defines whether an exception should be thrown, default true
- Returns
true if entity is intialized, false otherwise