Template Class ConstReferenceFunctorKey¶
Defined in File FunctorKey.h
Class Documentation¶
-
template<typename
T
>
classConstReferenceFunctorKey
¶ Base class for objects that can return a const reference to part of a record, but are not a true Key
Objects that inherit from ConstReferenceFunctorKey can be passed to BaseRecord::operator[], just as true Keys can, but the record will simply pass itself to ReferenceFunctorKey::getConstReference().
- Note
We’d combine this with the ReferenceFunctorKey interface if it weren’t for the fact that we can’t pass multiple template arguments to a Swig macro if either contains commas, and we’d need that to wrap a combined interface base class.
Public Functions
-
virtual T
getConstReference
(BaseRecord const &record) const = 0¶
-
virtual
~ConstReferenceFunctorKey
()¶