|
OXY API 1.0
OXY API Library Documentation
|
Function object to count the number of records in the container metadata database. More...
#include <metadata.hpp>
Public Member Functions | |
| int64_t | operator() (context_t const &ctx) const |
| int64_t | operator() (context_t const &ctx, std::string const &expr) const |
Function object to count the number of records in the container metadata database.
This function object provides two operator() overloads: one that takes a context and returns the count of all records, and another that takes a context and an expression string for counting records that match the specified expression. It is designed to be used in a constexpr context for compile-time evaluation of record counting operations.
| int64_t oxy::api::metadata::count_fn::operator() | ( | context_t const & | ctx | ) | const |
| ctx | - The context for container metadata record operations. |
| int64_t oxy::api::metadata::count_fn::operator() | ( | context_t const & | ctx, |
| std::string const & | expr ) const |
| ctx | - The context for container metadata record operations. |
| expr | - The expression string to filter the count of records. |