ATLAS Offline Software
Loading...
Searching...
No Matches
python.pydraw._Loopvar Class Reference
Inheritance diagram for python.pydraw._Loopvar:
Collaboration diagram for python.pydraw._Loopvar:

Public Types

typedef HLT::TypeInformation::for_each_type_c< typenameEDMLIST::map, my_functor, my_result<>, my_arg< HLT::TypeInformation::get_cont, CONTAINER > >::type result

Public Member Functions

 __init__ (self, name)
 itname (self, id)
 dumname (self)
 add_id (self, id)
 get_ids (self)

Public Attributes

 name = name
 ids = set()
int explicit = 0

Detailed Description

Holds information about a dummy loop variable.

Attributes:
  name - The name of the dummy variable.
  ids  - Set of loop identifiers (`foo' in `foo$i') with which
         this dummy has been used.
  explicit - Set to true if this variable is ever used on its own
         (just $i)

Definition at line 561 of file pydraw.py.

Member Typedef Documentation

◆ result

Definition at line 90 of file EDM_MasterSearch.h.

Constructor & Destructor Documentation

◆ __init__()

python.pydraw._Loopvar.__init__ ( self,
name )
Initialize given the name.

Definition at line 572 of file pydraw.py.

572 def __init__ (self, name):
573 """Initialize given the name."""
574 self.name = name
575 self.ids = set()
576 self.explicit = 0
577 return
578
STL class.

Member Function Documentation

◆ add_id()

python.pydraw._Loopvar.add_id ( self,
id )
Notice this this dummy is used with loop identifier ID.

Return the iterator variable.

Definition at line 588 of file pydraw.py.

588 def add_id (self, id):
589 """Notice this this dummy is used with loop identifier ID.
590
591 Return the iterator variable.
592 """
593 self.ids.add (id)
594 return self.itname (id)
595

◆ dumname()

python.pydraw._Loopvar.dumname ( self)
Return the dummy variable name for this dummy.

Definition at line 584 of file pydraw.py.

584 def dumname (self):
585 """Return the dummy variable name for this dummy."""
586 return "_dum_" + self.name
587

◆ get_ids()

python.pydraw._Loopvar.get_ids ( self)
Return the list of loop identifiers with which we've been used.

Definition at line 596 of file pydraw.py.

596 def get_ids (self):
597 """Return the list of loop identifiers with which we've been used."""
598 return list (self.ids)
599
600

◆ itname()

python.pydraw._Loopvar.itname ( self,
id )
Return the iterator variable for this dummy and loop identifier ID.

Definition at line 579 of file pydraw.py.

579 def itname (self, id):
580 """Return the iterator variable for this dummy and loop identifier ID.
581 """
582 return "_it_%s_%s" % (self.name, id)
583

Member Data Documentation

◆ explicit

int python.pydraw._Loopvar.explicit = 0

Definition at line 576 of file pydraw.py.

◆ ids

python.pydraw._Loopvar.ids = set()

Definition at line 575 of file pydraw.py.

◆ name

python.pydraw._Loopvar.name = name

Definition at line 574 of file pydraw.py.


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