.. _program_listing_file_src_bitrl_utils_predicates.h: Program Listing for File predicates.h ===================================== |exhale_lsh| :ref:`Return to documentation for file ` (``src/bitrl/utils/predicates.h``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp #ifndef PREDICATES_H #define PREDICATES_H #include "bitrl/bitrl_types.h" namespace bitrl{ struct NotNull { NotNull() {} template bool operator()(const ITERATOR* itr)const{ return itr!=nullptr; } }; struct IsActive { IsActive() {} template bool operator()(const ITERATOR* itr)const{ return itr->is_active(); } }; struct ActiveBoundaryObject { ActiveBoundaryObject() {} template bool operator()(const ITERATOR* itr)const{ return (itr->is_active() && itr->on_boundary()); } }; } #endif