NavMask Class Reference

#include <NavMask.h>

List of all members.

Public Types

typedef UShort_t Mask_t

Public Member Functions

 NavMask ()
virtual ~NavMask ()
Mask_t GetMask (void *obj) const
void SetMask (Mask_t mask, void *obj)
void SetAllMasks (Mask_t mask)

Private Member Functions

 NavMask (const NavMask &)

Private Attributes

Mask_t fDefaultMask
std::map< void *, Mask_tfExceptions

Detailed Description

Definition at line 23 of file NavMask.h.


Member Typedef Documentation

typedef UShort_t NavMask::Mask_t

Definition at line 28 of file NavMask.h.


Constructor & Destructor Documentation

NavMask::NavMask (  )  [inline]

Definition at line 31 of file NavMask.h.

References LEA_CTOR.

00031 : fDefaultMask(0) { LEA_CTOR; }

virtual NavMask::~NavMask (  )  [inline, virtual]

Definition at line 32 of file NavMask.h.

References LEA_DTOR.

00032 { LEA_DTOR; }

NavMask::NavMask ( const NavMask  )  [private]

Member Function Documentation

Mask_t NavMask::GetMask ( void *  obj  )  const

Definition at line 37 of file NavMask.cxx.

00037                                        {
00038 //
00039 //
00040 //  Purpose:  Return mask assosiated with object.
00041 //
00042 //  Arguments: 
00043 //    obj          in    Address of object whose mask is required.
00044 //
00045 //  Return:    Mask assosiated with object.
00046 //
00047 //  Contact:   N. West
00048 //
00049 //  Specification:-
00050 //  =============
00051 //
00052 //  o Return mask assosiated with object.
00053 
00054 //  Program Notes:-
00055 //  =============
00056 
00057 //  None.
00058 
00059   std::map<void*,Mask_t>::const_iterator itr =  fExceptions.find(obj);
00060   return ( itr == fExceptions.end() ) ? fDefaultMask : (*itr).second;
00061 
00062 }

void NavMask::SetAllMasks ( Mask_t  mask  )  [inline]

Definition at line 39 of file NavMask.h.

References fDefaultMask, and fExceptions.

00039                                 { fExceptions.clear(); 
00040                                   fDefaultMask=mask; }

void NavMask::SetMask ( Mask_t  mask,
void *  obj 
) [inline]

Definition at line 38 of file NavMask.h.

References fExceptions.

00038 { fExceptions[obj]=mask; }


Member Data Documentation

Definition at line 49 of file NavMask.h.

Referenced by SetAllMasks().

std::map<void*,Mask_t> NavMask::fExceptions [private]

Definition at line 50 of file NavMask.h.

Referenced by SetAllMasks(), and SetMask().


The documentation for this class was generated from the following files:

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1