Inherits lsst::afw::image::MapWithHash.
|
typedef
detail::MaskPlaneDict::value_type | value_type |
|
typedef
detail::MaskPlaneDict::const_iterator | const_iterator |
|
Definition at line 174 of file Mask.cc.
lsst::afw::image::detail::MaskDict::MaskDict |
( |
| ) |
|
|
inlineprivate |
lsst::afw::image::detail::MaskDict::MaskDict |
( |
MapWithHash const * |
dict | ) |
|
|
inlineprivate |
Definition at line 178 of file Mask.cc.
178 : MapWithHash(*dict) {}
lsst::afw::image::detail::MaskDict::~MaskDict |
( |
| ) |
|
Definition at line 322 of file Mask.cc.
323 _state.eraseDict(
this);
boost::shared_ptr< MaskDict > lsst::afw::image::detail::MaskDict::clone |
( |
void |
| ) |
const |
Definition at line 314 of file Mask.cc.
317 _state.addDict(dict.get());
int lsst::afw::image::detail::MaskDict::getMaskPlane |
( |
const std::string & |
name | ) |
const |
Definition at line 359 of file Mask.cc.
361 MapWithHash::const_iterator i = find(
name);
363 return (i == end()) ? -1 : i->second;
table::Key< std::string > name
int lsst::afw::image::detail::MaskDict::getUnusedPlane |
( |
| ) |
const |
Definition at line 331 of file Mask.cc.
337 MapWithHash::const_iterator
const it =
338 std::max_element(begin(), end(), boost::bind(std::less<int>(),
339 boost::bind(&MapWithHash::value_type::second, _1),
340 boost::bind(&MapWithHash::value_type::second, _2)
344 int id = it->second + 1;
346 for (
int i = 0; i <
id; ++i) {
347 MapWithHash::const_iterator
const it =
348 std::find_if(begin(), end(), boost::bind(std::equal_to<int>(),
349 boost::bind(&MapWithHash::value_type::second, _1), i));
boost::shared_ptr< MaskDict > lsst::afw::image::detail::MaskDict::incrDefaultVersion |
( |
| ) |
|
|
static |
Definition at line 326 of file Mask.cc.
327 return _state.incrDefaultVersion();
static void lsst::afw::image::detail::MaskDict::listMaskDicts |
( |
| ) |
|
|
static |
boost::shared_ptr< MaskDict > lsst::afw::image::detail::MaskDict::makeMaskDict |
( |
| ) |
|
|
static |
Definition at line 289 of file Mask.cc.
291 return _state.getDefaultDict();
Definition at line 295 of file Mask.cc.
300 MapWithHash mwh(mpd);
302 _state.addDict(dict.get());
if(width!=gim.getWidth()||height!=gim.getHeight()||x0!=gim.getX0()||y0!=gim.getY0())
void lsst::afw::image::detail::MaskDict::print |
( |
| ) |
const |
|
inline |
Definition at line 191 of file Mask.cc.
192 for (MapWithHash::const_iterator ptr = begin(); ptr != end(); ++ptr) {
193 std::cout <<
"Plane " << ptr->second <<
" -> " << ptr->first << std::endl;
boost::shared_ptr< MaskDict > lsst::afw::image::detail::MaskDict::setDefaultDict |
( |
boost::shared_ptr< MaskDict > |
dict | ) |
|
|
static |
Definition at line 309 of file Mask.cc.
311 return _state.setDefaultDict(dict);
friend class ::lsst::afw::image::DictState |
|
friend |
The documentation for this class was generated from the following file:
- /home/lsstsw/stack/Linux64/afw/11.0-2-g04d2804/src/image/Mask.cc