Rosetta 3.3
Public Types | Public Member Functions
utility::keys::KeyCount Class Reference

Key counter functor. More...

#include <KeyCount.hh>

Collaboration diagram for utility::keys::KeyCount:
Collaboration graph
[legend]

List of all members.

Public Types

typedef std::size_type size_type
typedef std::size_type Size

Public Member Functions

 KeyCount (Size const count_a)
 Count constructor.
 KeyCount (Size const count_a, Size const expected_count)
 Count + expected count constructor.
Size operator() () const
 Count.

Detailed Description

Key counter functor.


Member Typedef Documentation


Constructor & Destructor Documentation

utility::keys::KeyCount::KeyCount ( Size const  count_a) [inline, explicit]

Count constructor.

utility::keys::KeyCount::KeyCount ( Size const  count_a,
Size const  expected_count 
) [inline, explicit]

Count + expected count constructor.

Note:
Useful if a namespace constant is stored with the number of keys so that other namespace-scoped UserKeys can set contiguous indexes without global initialization order issues

Member Function Documentation

Size utility::keys::KeyCount::operator() ( ) const [inline]

Count.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines