Relacs Numerics Library  0.9.8
Namespaces | Macros
containerops.h File Reference
This graph shows which files directly or indirectly include this file:

Namespaces

 relacs
 

Macros

#define CONTAINEROPS1SCALARDEC(CONTAINERTYPE, COP)
 
#define CONTAINEROPS1DEC(CONTAINERTYPE, COP)
 
#define CONTAINEROPS1SINGLESCALARDEF(CONTAINERTEMPL, CONTAINERTYPE, COPNAME, COP, SCALAR)
 
#define CONTAINEROPS1SCALARDEF(CONTAINERTEMPL, CONTAINERTYPE, COPNAME, COP)
 
#define CONTAINEROPS1DEF(CONTAINERTEMPL, CONTAINERTYPE, COPNAME, COP)
 
#define CONTAINEROPS2SCALARDEC(CONTAINERTEMPL, CONTAINERTYPE, COP)
 
#define CONTAINEROPS2DEC(CONTAINERTEMPL, CONTAINERTYPE, COP)
 
#define CONTAINEROPS2SINGLESCALARDEF(CONTAINERTEMPL, CONTAINERTYPE, COPNAME, COP, SCALAR)
 
#define CONTAINEROPS2SCALARDEF(CONTAINERTEMPL, CONTAINERTYPE, COPNAME, COP)
 
#define CONTAINEROPS2DEF(CONTAINERTEMPL, CONTAINERTYPE, COPNAME, COP)
 
#define CONTAINERFUNC0DEF(CONTAINERTEMPL, CONTAINERTYPE, FUNC, CFUNC)
 
#define CONTAINERFUNC1SCALARDEC(CONTAINERTYPE, CFUNC)
 
#define CONTAINERFUNC1DEC(CONTAINERTYPE, CFUNC)
 
#define CONTAINERFUNC1SINGLESCALARDEF(CONTAINERTEMPL, CONTAINERTYPE, CFUNCNAME, CFUNC, SCALAR)
 
#define CONTAINERFUNC1SCALARDEF(CONTAINERTEMPL, CONTAINERTYPE, CFUNCNAME, CFUNC)
 
#define CONTAINERFUNC1DEF(CONTAINERTEMPL, CONTAINERTYPE, CFUNCNAME, CFUNC)
 

Macro Definition Documentation

#define CONTAINEROPS1SCALARDEC (   CONTAINERTYPE,
  COP 
)
Value:
const CONTAINERTYPE &COP( float x ); \
const CONTAINERTYPE &COP( double x ); \
const CONTAINERTYPE &COP( long double x ); \
const CONTAINERTYPE &COP( signed char x ); \
const CONTAINERTYPE &COP( unsigned char x ); \
const CONTAINERTYPE &COP( signed int x ); \
const CONTAINERTYPE &COP( unsigned int x ); \
const CONTAINERTYPE &COP( signed long x ); \
const CONTAINERTYPE &COP( unsigned long x ); \
#define CONTAINEROPS1DEC (   CONTAINERTYPE,
  COP 
)
Value:
template< class COT > \
const CONTAINERTYPE &COP( const COT &x ); \
CONTAINEROPS1SCALARDEC( CONTAINERTYPE, COP ) \
#define CONTAINEROPS1SCALARDEC(CONTAINERTYPE, COP)
Definition: containerops.h:34
#define CONTAINEROPS1SINGLESCALARDEF (   CONTAINERTEMPL,
  CONTAINERTYPE,
  COPNAME,
  COP,
  SCALAR 
)
Value:
CONTAINERTEMPL \
const CONTAINERTYPE &CONTAINERTYPE::COPNAME( SCALAR x ) \
{ \
iterator iter1 = begin(); \
iterator end1 = end(); \
while ( iter1 != end1 ) { \
(*iter1) COP static_cast< value_type >( x ); \
++iter1; \
}; \
return *this; \
} \
#define CONTAINEROPS1SCALARDEF (   CONTAINERTEMPL,
  CONTAINERTYPE,
  COPNAME,
  COP 
)
Value:
CONTAINEROPS1SINGLESCALARDEF( CONTAINERTEMPL, CONTAINERTYPE, COPNAME, COP, float ) \
CONTAINEROPS1SINGLESCALARDEF( CONTAINERTEMPL, CONTAINERTYPE, COPNAME, COP, double ) \
CONTAINEROPS1SINGLESCALARDEF( CONTAINERTEMPL, CONTAINERTYPE, COPNAME, COP, long double ) \
CONTAINEROPS1SINGLESCALARDEF( CONTAINERTEMPL, CONTAINERTYPE, COPNAME, COP, signed char ) \
CONTAINEROPS1SINGLESCALARDEF( CONTAINERTEMPL, CONTAINERTYPE, COPNAME, COP, unsigned char ) \
CONTAINEROPS1SINGLESCALARDEF( CONTAINERTEMPL, CONTAINERTYPE, COPNAME, COP, signed int ) \
CONTAINEROPS1SINGLESCALARDEF( CONTAINERTEMPL, CONTAINERTYPE, COPNAME, COP, unsigned int ) \
CONTAINEROPS1SINGLESCALARDEF( CONTAINERTEMPL, CONTAINERTYPE, COPNAME, COP, signed long ) \
CONTAINEROPS1SINGLESCALARDEF( CONTAINERTEMPL, CONTAINERTYPE, COPNAME, COP, unsigned long ) \
#define CONTAINEROPS1SINGLESCALARDEF(CONTAINERTEMPL, CONTAINERTYPE, COPNAME, COP, SCALAR)
Definition: containerops.h:65
#define CONTAINEROPS1DEF (   CONTAINERTEMPL,
  CONTAINERTYPE,
  COPNAME,
  COP 
)
Value:
CONTAINERTEMPL template < class COT > \
const CONTAINERTYPE &CONTAINERTYPE::COPNAME ( const COT &x ) \
{ \
iterator iter1 = begin(); \
iterator end1 = end(); \
typename COT::const_iterator iter2 = x.begin(); \
typename COT::const_iterator end2 = x.end(); \
while ( iter1 != end1 && iter2 != end2 ) { \
(*iter1) COP static_cast< value_type >(*iter2); \
++iter1; \
++iter2; \
}; \
return *this; \
} \
CONTAINEROPS1SCALARDEF( CONTAINERTEMPL, CONTAINERTYPE, COPNAME, COP ) \
#define CONTAINEROPS1SCALARDEF(CONTAINERTEMPL, CONTAINERTYPE, COPNAME, COP)
Definition: containerops.h:85
#define CONTAINEROPS2SCALARDEC (   CONTAINERTEMPL,
  CONTAINERTYPE,
  COP 
)
Value:
CONTAINERTEMPL friend CONTAINERTYPE COP( float x, const CONTAINERTYPE &y ); \
CONTAINERTEMPL friend CONTAINERTYPE COP( const CONTAINERTYPE &x, float y ); \
CONTAINERTEMPL friend CONTAINERTYPE COP( double x, const CONTAINERTYPE &y ); \
CONTAINERTEMPL friend CONTAINERTYPE COP( const CONTAINERTYPE &x, double y ); \
CONTAINERTEMPL friend CONTAINERTYPE COP( long double x, const CONTAINERTYPE &y ); \
CONTAINERTEMPL friend CONTAINERTYPE COP( const CONTAINERTYPE &x, long double y ); \
CONTAINERTEMPL friend CONTAINERTYPE COP( signed char x, const CONTAINERTYPE &y ); \
CONTAINERTEMPL friend CONTAINERTYPE COP( const CONTAINERTYPE &x, signed char y ); \
CONTAINERTEMPL friend CONTAINERTYPE COP( unsigned char x, const CONTAINERTYPE &y ); \
CONTAINERTEMPL friend CONTAINERTYPE COP( const CONTAINERTYPE &x, unsigned char y ); \
CONTAINERTEMPL friend CONTAINERTYPE COP( signed int x, const CONTAINERTYPE &y ); \
CONTAINERTEMPL friend CONTAINERTYPE COP( const CONTAINERTYPE &x, signed int y ); \
CONTAINERTEMPL friend CONTAINERTYPE COP( unsigned int x, const CONTAINERTYPE &y ); \
CONTAINERTEMPL friend CONTAINERTYPE COP( const CONTAINERTYPE &x, unsigned int y ); \
CONTAINERTEMPL friend CONTAINERTYPE COP( signed long x, const CONTAINERTYPE &y ); \
CONTAINERTEMPL friend CONTAINERTYPE COP( const CONTAINERTYPE &x, signed long y ); \
CONTAINERTEMPL friend CONTAINERTYPE COP( unsigned long x, const CONTAINERTYPE &y ); \
CONTAINERTEMPL friend CONTAINERTYPE COP( const CONTAINERTYPE &x, unsigned long y ); \
#define CONTAINEROPS2DEC (   CONTAINERTEMPL,
  CONTAINERTYPE,
  COP 
)
Value:
template < CONTAINERTEMPL, typename COT > \
friend CONTAINERTYPE COP( const CONTAINERTYPE &x, const COT &y ); \
CONTAINEROPS2SCALARDEC( template < CONTAINERTEMPL >, CONTAINERTYPE, COP ) \
#define CONTAINEROPS2SCALARDEC(CONTAINERTEMPL, CONTAINERTYPE, COP)
Definition: containerops.h:129
#define CONTAINEROPS2SINGLESCALARDEF (   CONTAINERTEMPL,
  CONTAINERTYPE,
  COPNAME,
  COP,
  SCALAR 
)
Value:
CONTAINERTEMPL \
CONTAINERTYPE COPNAME( SCALAR x, const CONTAINERTYPE &y ) \
{ \
CONTAINERTYPE z( y ); \
typename CONTAINERTYPE::iterator iter1 = z.begin(); \
typename CONTAINERTYPE::iterator end1 = z.end(); \
while ( iter1 != end1 ) { \
(*iter1) = static_cast< typename CONTAINERTYPE::value_type >( x COP (*iter1) ); \
++iter1; \
}; \
return z; \
} \
\
CONTAINERTEMPL \
CONTAINERTYPE COPNAME( const CONTAINERTYPE &x, SCALAR y ) \
{ \
CONTAINERTYPE z( x ); \
typename CONTAINERTYPE::iterator iter1 = z.begin(); \
typename CONTAINERTYPE::iterator end1 = z.end(); \
while ( iter1 != end1 ) { \
(*iter1) = static_cast< typename CONTAINERTYPE::value_type >( (*iter1) COP y ); \
++iter1; \
}; \
return z; \
} \
#define CONTAINEROPS2SCALARDEF (   CONTAINERTEMPL,
  CONTAINERTYPE,
  COPNAME,
  COP 
)
Value:
CONTAINEROPS2SINGLESCALARDEF( CONTAINERTEMPL, CONTAINERTYPE, COPNAME, COP, float ) \
CONTAINEROPS2SINGLESCALARDEF( CONTAINERTEMPL, CONTAINERTYPE, COPNAME, COP, double ) \
CONTAINEROPS2SINGLESCALARDEF( CONTAINERTEMPL, CONTAINERTYPE, COPNAME, COP, long double ) \
CONTAINEROPS2SINGLESCALARDEF( CONTAINERTEMPL, CONTAINERTYPE, COPNAME, COP, signed char ) \
CONTAINEROPS2SINGLESCALARDEF( CONTAINERTEMPL, CONTAINERTYPE, COPNAME, COP, unsigned char ) \
CONTAINEROPS2SINGLESCALARDEF( CONTAINERTEMPL, CONTAINERTYPE, COPNAME, COP, signed int ) \
CONTAINEROPS2SINGLESCALARDEF( CONTAINERTEMPL, CONTAINERTYPE, COPNAME, COP, unsigned int ) \
CONTAINEROPS2SINGLESCALARDEF( CONTAINERTEMPL, CONTAINERTYPE, COPNAME, COP, signed long ) \
CONTAINEROPS2SINGLESCALARDEF( CONTAINERTEMPL, CONTAINERTYPE, COPNAME, COP, unsigned long ) \
#define CONTAINEROPS2SINGLESCALARDEF(CONTAINERTEMPL, CONTAINERTYPE, COPNAME, COP, SCALAR)
Definition: containerops.h:170
#define CONTAINEROPS2DEF (   CONTAINERTEMPL,
  CONTAINERTYPE,
  COPNAME,
  COP 
)
Value:
template < CONTAINERTEMPL, typename COT > \
CONTAINERTYPE COPNAME( const CONTAINERTYPE &x, const COT &y ) \
{ \
CONTAINERTYPE z( x ); \
typename CONTAINERTYPE::iterator iter1 = z.begin(); \
typename CONTAINERTYPE::iterator end1 = z.end(); \
typename COT::const_iterator iter2 = y.begin(); \
typename COT::const_iterator end2 = y.end(); \
while ( iter1 != end1 && iter2 != end2 ) { \
(*iter1) = (*iter1) COP (*iter2); \
++iter1; \
++iter2; \
}; \
return z; \
} \
CONTAINEROPS2SCALARDEF( template< CONTAINERTEMPL >, CONTAINERTYPE, COPNAME, COP ) \
#define CONTAINEROPS2SCALARDEF(CONTAINERTEMPL, CONTAINERTYPE, COPNAME, COP)
Definition: containerops.h:204
#define CONTAINERFUNC0DEF (   CONTAINERTEMPL,
  CONTAINERTYPE,
  FUNC,
  CFUNC 
)
Value:
CONTAINERTEMPL \
CONTAINERTYPE &CONTAINERTYPE::FUNC( void ) \
{ \
iterator iter1 = begin(); \
iterator end1 = end(); \
while ( iter1 != end1 ) { \
(*iter1) = CFUNC(*iter1); \
++iter1; \
}; \
return *this; \
} \
#define CONTAINERFUNC1SCALARDEC (   CONTAINERTYPE,
  CFUNC 
)
Value:
const CONTAINERTYPE &CFUNC( float x ); \
const CONTAINERTYPE &CFUNC( double x ); \
const CONTAINERTYPE &CFUNC( long double x ); \
const CONTAINERTYPE &CFUNC( signed char x ); \
const CONTAINERTYPE &CFUNC( unsigned char x ); \
const CONTAINERTYPE &CFUNC( signed int x ); \
const CONTAINERTYPE &CFUNC( unsigned int x ); \
const CONTAINERTYPE &CFUNC( signed long x ); \
const CONTAINERTYPE &CFUNC( unsigned long x ); \
#define CONTAINERFUNC1DEC (   CONTAINERTYPE,
  CFUNC 
)
Value:
template< class COT > \
const CONTAINERTYPE &CFUNC( const COT &x ); \
CONTAINERFUNC1SCALARDEC( CONTAINERTYPE, CFUNC ) \
#define CONTAINERFUNC1SCALARDEC(CONTAINERTYPE, CFUNC)
Definition: containerops.h:273
#define CONTAINERFUNC1SINGLESCALARDEF (   CONTAINERTEMPL,
  CONTAINERTYPE,
  CFUNCNAME,
  CFUNC,
  SCALAR 
)
Value:
CONTAINERTEMPL \
const CONTAINERTYPE &CONTAINERTYPE::CFUNCNAME( SCALAR x ) \
{ \
iterator iter1 = begin(); \
iterator end1 = end(); \
while ( iter1 != end1 ) { \
(*iter1) = static_cast< value_type >( CFUNC( *iter1, x ) ); \
++iter1; \
}; \
return *this; \
} \
#define CONTAINERFUNC1SCALARDEF (   CONTAINERTEMPL,
  CONTAINERTYPE,
  CFUNCNAME,
  CFUNC 
)
Value:
CONTAINERFUNC1SINGLESCALARDEF( CONTAINERTEMPL, CONTAINERTYPE, CFUNCNAME, CFUNC, float ) \
CONTAINERFUNC1SINGLESCALARDEF( CONTAINERTEMPL, CONTAINERTYPE, CFUNCNAME, CFUNC, double ) \
CONTAINERFUNC1SINGLESCALARDEF( CONTAINERTEMPL, CONTAINERTYPE, CFUNCNAME, CFUNC, long double ) \
CONTAINERFUNC1SINGLESCALARDEF( CONTAINERTEMPL, CONTAINERTYPE, CFUNCNAME, CFUNC, signed char ) \
CONTAINERFUNC1SINGLESCALARDEF( CONTAINERTEMPL, CONTAINERTYPE, CFUNCNAME, CFUNC, unsigned char ) \
CONTAINERFUNC1SINGLESCALARDEF( CONTAINERTEMPL, CONTAINERTYPE, CFUNCNAME, CFUNC, signed int ) \
CONTAINERFUNC1SINGLESCALARDEF( CONTAINERTEMPL, CONTAINERTYPE, CFUNCNAME, CFUNC, unsigned int ) \
CONTAINERFUNC1SINGLESCALARDEF( CONTAINERTEMPL, CONTAINERTYPE, CFUNCNAME, CFUNC, signed long ) \
CONTAINERFUNC1SINGLESCALARDEF( CONTAINERTEMPL, CONTAINERTYPE, CFUNCNAME, CFUNC, unsigned long ) \
#define CONTAINERFUNC1SINGLESCALARDEF(CONTAINERTEMPL, CONTAINERTYPE, CFUNCNAME, CFUNC, SCALAR)
Definition: containerops.h:304
#define CONTAINERFUNC1DEF (   CONTAINERTEMPL,
  CONTAINERTYPE,
  CFUNCNAME,
  CFUNC 
)
Value:
CONTAINERTEMPL template < class COT > \
const CONTAINERTYPE &CONTAINERTYPE::CFUNCNAME ( const COT &x ) \
{ \
iterator iter1 = begin(); \
iterator end1 = end(); \
typename COT::const_iterator iter2 = x.begin(); \
typename COT::const_iterator end2 = x.end(); \
while ( iter1 != end1 && iter2 != end2 ) { \
(*iter1) = static_cast< value_type >( CFUNC( *iter1, *iter2 ) ); \
++iter1; \
++iter2; \
}; \
return *this; \
} \
CONTAINERFUNC1SCALARDEF( CONTAINERTEMPL, CONTAINERTYPE, CFUNCNAME, CFUNC ) \
#define CONTAINERFUNC1SCALARDEF(CONTAINERTEMPL, CONTAINERTYPE, CFUNCNAME, CFUNC)
Definition: containerops.h:324