LSSTApplications  10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
Public Member Functions | Public Attributes | List of all members
lsst::afw::table::SchemaMapper::AddMappingsWhere< Predicate > Struct Template Reference

Public Member Functions

template<typename T >
void operator() (SchemaItem< T > const &item) const
 
 AddMappingsWhere (SchemaMapper *mapper_, Predicate predicate_, bool doReplace_)
 

Public Attributes

SchemaMappermapper
 
Predicate predicate
 
bool doReplace
 

Detailed Description

template<typename Predicate>
struct lsst::afw::table::SchemaMapper::AddMappingsWhere< Predicate >

Definition at line 208 of file SchemaMapper.h.

Constructor & Destructor Documentation

template<typename Predicate >
lsst::afw::table::SchemaMapper::AddMappingsWhere< Predicate >::AddMappingsWhere ( SchemaMapper mapper_,
Predicate  predicate_,
bool  doReplace_ 
)
inline

Member Function Documentation

template<typename Predicate >
template<typename T >
void lsst::afw::table::SchemaMapper::AddMappingsWhere< Predicate >::operator() ( SchemaItem< T > const &  item) const
inline

Definition at line 211 of file SchemaMapper.h.

211  {
212  if (predicate(item)) mapper->addMapping(item.key, doReplace);
213  }
Key< T > addMapping(Key< T > const &inputKey, bool doReplace=false)
Add a new field to the output Schema that is a copy of a field in the input Schema.

Member Data Documentation

template<typename Predicate >
bool lsst::afw::table::SchemaMapper::AddMappingsWhere< Predicate >::doReplace

Definition at line 220 of file SchemaMapper.h.

template<typename Predicate >
SchemaMapper* lsst::afw::table::SchemaMapper::AddMappingsWhere< Predicate >::mapper

Definition at line 218 of file SchemaMapper.h.

template<typename Predicate >
Predicate lsst::afw::table::SchemaMapper::AddMappingsWhere< Predicate >::predicate

Definition at line 219 of file SchemaMapper.h.


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