CEPS
24.01
Cardiac ElectroPhysiology Simulator
|
#include "common/core/CepsTypes.hpp"
#include "common/core/CepsFlags.hpp"
#include "common/core/CepsIoMacros.hpp"
#include "common/core/CepsException.hpp"
Go to the source code of this file.
Namespaces | |
ceps | |
A namespace for all utility methods. | |
Functions | |
template<typename _Type > | |
CepsBool | ceps::isNullPtr (_Type *ptr) |
Tells if passed pointer is null. More... | |
template<typename _Type > | |
CepsBool | ceps::isNullPtr (std::shared_ptr< _Type > ptr) |
Tells if passed pointer is null. More... | |
template<typename _Type > | |
CepsBool | ceps::isValidPtr (_Type *ptr) |
Tells if pointer is not null. More... | |
template<typename _Type > | |
CepsBool | ceps::isValidPtr (std::shared_ptr< _Type > ptr) |
Tells if pointer is not null. More... | |
template<typename _Type , typename U > | |
CepsBool | ceps::isSamePtr (_Type *xptr, U *yptr) |
Tells if two pointers designate the same address. More... | |
template<typename _Type , typename U > | |
CepsBool | ceps::isDifferentPtr (_Type *xptr, U *yptr) |
Tells if two pointers designate two different addresses. More... | |
template<typename _Derived , class _Base > | |
_Derived | ceps::runtimeCast (_Base x) |
Perform a runtime cast between base type and derived type if we can. More... | |
template<typename _Type > | |
void | ceps::destroyObject (_Type &) |
Destroy[delete] any type. More... | |
template<typename _Type > | |
void | ceps::destroyObject (_Type *&obj) |
Specialization if is_pointer : Destroy[delete] any type. More... | |
template<typename _Type > | |
void | ceps::destroyObject (const _Type *obj) |
Specialization if is_pointer : Destroy[delete] any type. More... | |
template<typename _Type > | |
void | ceps::destroyTabular (_Type &) |
Destroy[delete] any type. More... | |
template<typename _Type > | |
void | ceps::destroyTabular (_Type *&obj) |
Specialization if is_pointer : Destroy[delete] any type. More... | |
template<typename _Type , typename... _Args> | |
_Type * | ceps::getNew (_Args... args) |
Allocates memory for one object. Be careful, the expansion of arguments may produce some weird results when pointers and const references are passed. More... | |
template<typename _Type > | |
_Type * | ceps::newArray (long unsigned int n, _Type fill=_Type()) |
Creates a C-array with optional init value. More... | |
template<typename _Type > | |
_Type * | ceps::newCopyArray (_Type *src, long unsigned int n) |
Generates a C-style copy of a C-style array. More... | |
Pointer, new, delete, utilities
Definition in file CepsMemory.hpp.