Quick Links:

bal | bbl | bdl | bsl

Static Public Member Functions

bdlat_TypeCategoryUtil Struct Reference
[Component bdlat_typecategory]

#include <bdlat_typecategory.h>

List of all members.

Static Public Member Functions

template<class TYPE , class MANIPULATOR >
static int manipulateByCategory (TYPE *object, MANIPULATOR &manipulator)
template<class TYPE , class ACCESSOR >
static int accessByCategory (const TYPE &object, ACCESSOR &accessor)

Detailed Description

This struct contains utility functions that operate on bdlat compatible objects, implicitly dispatching to the action appropriate for the bdlat type category of the object.

See Component bdlat_typecategory


Member Function Documentation

template<class TYPE , class MANIPULATOR >
static int bdlat_TypeCategoryUtil::manipulateByCategory ( TYPE *  object,
MANIPULATOR &  manipulator 
) [static]

Invoke one of the following functions, based on the result of bdlat_TypeCategoryFunctions::select(object):

where each function is invoked with the specified object and manipulator. See MANIPULATOR Functors for the requirements on manipulator. Return the value returned by the invoked function. The behavior is undefined unless the parameterized TYPE supports the type category returned by the call to the bdlat_TypeCategoryFunctions::select function.

template<class TYPE , class ACCESSOR >
static int bdlat_TypeCategoryUtil::accessByCategory ( const TYPE &  object,
ACCESSOR &  accessor 
) [static]

Invoke one of the following functions, based on the result of bdlat_TypeCategoryFunctions::select:

where each function is invoked with the specified object and accessor. See ACCESSOR Functors for the requirements on accessor. Return the value returned by the invoked function. The behavior is undefined unless the parameterized TYPE supports the type category returned by the call to the bdlat_TypeCategoryFunctions::select function.


The documentation for this struct was generated from the following file: