Loading...
Searching...
No Matches
baseFunctor.h
Go to the documentation of this file.
// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
#ifndef BALL_CONCEPT_BASEFUNCTOR_H
#define BALL_CONCEPT_BASEFUNCTOR_H
#ifndef BALL_COMMON_GLOBAL_H
# include <BALL/COMMON/global.h>
#endif
namespace BALL
{
template <class ArgumentType, class ResultType>
class BALL_EXPORT UnaryFunctor
{
public:
typedef ResultType result_type;
typedef ArgumentType argument_type;
typedef ArgumentType& argument_reference;
typedef const ArgumentType& const_argument_reference;
typedef ArgumentType* argument_pointer;
typedef const ArgumentType* const_argument_pointer;
};
template <class FirstArgumentType, class SecondArgumentType, class ResultType>
class BALL_EXPORT BinaryFunctor
{
public:
typedef ResultType result_type;
typedef FirstArgumentType first_argument_type;
typedef FirstArgumentType & first_argument_reference;
typedef const FirstArgumentType & const_first_argument_reference;
typedef FirstArgumentType * first_argument_pointer;
typedef const FirstArgumentType * const_first_argument_pointer;
typedef SecondArgumentType second_argument_type;
typedef SecondArgumentType & second_argument_reference;
typedef const SecondArgumentType & const_second_argument_reference;
typedef SecondArgumentType * second_argument_pointer;
typedef const SecondArgumentType * const_second_argument_pointer;
};
} // namespace BALL
#endif // BALL_CONCEPT_BASEFUNCTOR_H
global.h
BALL_EXPORT
#define BALL_EXPORT
Definition COMMON/global.h:50
BALL::BinaryFunctor
Definition baseFunctor.h:65
BALL::BinaryFunctor::const_first_argument_reference
const FirstArgumentType & const_first_argument_reference
Definition baseFunctor.h:84
BALL::BinaryFunctor::const_second_argument_pointer
const SecondArgumentType * const_second_argument_pointer
Definition baseFunctor.h:106
BALL::BinaryFunctor::second_argument_type
SecondArgumentType second_argument_type
Definition baseFunctor.h:94
BALL::BinaryFunctor::const_second_argument_reference
const SecondArgumentType & const_second_argument_reference
Definition baseFunctor.h:100
BALL::BinaryFunctor::first_argument_pointer
FirstArgumentType * first_argument_pointer
Definition baseFunctor.h:87
BALL::BinaryFunctor::second_argument_pointer
SecondArgumentType * second_argument_pointer
Definition baseFunctor.h:103
BALL::BinaryFunctor::first_argument_reference
FirstArgumentType & first_argument_reference
Definition baseFunctor.h:81
BALL::BinaryFunctor::first_argument_type
FirstArgumentType first_argument_type
Definition baseFunctor.h:78
BALL::BinaryFunctor::result_type
ResultType result_type
Definition baseFunctor.h:74
BALL::BinaryFunctor::second_argument_reference
SecondArgumentType & second_argument_reference
Definition baseFunctor.h:97
BALL::BinaryFunctor::const_first_argument_pointer
const FirstArgumentType * const_first_argument_pointer
Definition baseFunctor.h:90
BALL::UnaryFunctor
Definition baseFunctor.h:26
BALL::UnaryFunctor::result_type
ResultType result_type
Definition baseFunctor.h:35
BALL::UnaryFunctor::argument_reference
ArgumentType & argument_reference
Definition baseFunctor.h:43
BALL::UnaryFunctor::argument_pointer
ArgumentType * argument_pointer
Definition baseFunctor.h:51
BALL::UnaryFunctor::const_argument_pointer
const ArgumentType * const_argument_pointer
Definition baseFunctor.h:55
BALL::UnaryFunctor::argument_type
ArgumentType argument_type
Definition baseFunctor.h:39
BALL::UnaryFunctor::const_argument_reference
const ArgumentType & const_argument_reference
Definition baseFunctor.h:47
BALL
Definition constants.h:13