casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
casacore::STLMath_global_functions_Container_Math Struct Reference

Math operations on STL-like containers. More...

#include <STLMath.h>

Public Member Functions

void throwContainerSizes (const char *name, size_t l1, size_t l2)
 Throw an exception that two container sizes mismatch. More...
 
template<typename CONTAINER >
void checkContainerSizes (const CONTAINER &left, const CONTAINER &right, const char *name)
 Check if the sizes of both containers are the same. More...
 
template<typename CONTAINER >
CONTAINER reversedCasaContainer (const CONTAINER &in)
 Reverse a Casacore container like IPosition, Block, or Vector. More...
 
template<class T >
std::vector< T > operator+ (const std::vector< T > &left, const std::vector< T > &right)
 Add two std::vector objects. More...
 
template<class T >
std::vector< T > operator/ (const std::vector< T > &left, const T &right)
 Divide a vector by a scalar. More...
 

Detailed Description

Math operations on STL-like containers.

Intended use:

Public interface

Review Status

Reviewed By:
Paul Shannon
Date Reviewed:
1995/02/21

Prerequisite

Synopsis

This file defines a few functions with a math operation on a vector. Others can be added later.

Definition at line 58 of file STLMath.h.

Member Function Documentation

template<typename CONTAINER >
void casacore::STLMath_global_functions_Container_Math::checkContainerSizes ( const CONTAINER &  left,
const CONTAINER &  right,
const char *  name 
)
inline

Check if the sizes of both containers are the same.

Definition at line 64 of file STLMath.h.

template<class T >
std::vector<T> casacore::STLMath_global_functions_Container_Math::operator+ ( const std::vector< T > &  left,
const std::vector< T > &  right 
)
inline

Add two std::vector objects.

Definition at line 86 of file STLMath.h.

References casa::utilj::transform().

template<class T >
std::vector<T> casacore::STLMath_global_functions_Container_Math::operator/ ( const std::vector< T > &  left,
const T &  right 
)
inline

Divide a vector by a scalar.

Definition at line 98 of file STLMath.h.

References casa::utilj::transform().

template<typename CONTAINER >
CONTAINER casacore::STLMath_global_functions_Container_Math::reversedCasaContainer ( const CONTAINER &  in)
inline

Reverse a Casacore container like IPosition, Block, or Vector.

Definition at line 74 of file STLMath.h.

void casacore::STLMath_global_functions_Container_Math::throwContainerSizes ( const char *  name,
size_t  l1,
size_t  l2 
)

Throw an exception that two container sizes mismatch.


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