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

using 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 564 of file pydraw.py.

Member Typedef Documentation

◆ result

using master_search< typenameEDMLIST::map, HLT::TypeInformation::get_cont, CONTAINER >::result
inherited

Definition at line 67 of file EDM_MasterSearch.h.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 575 of file pydraw.py.

575 def __init__ (self, name):
576 """Initialize given the name."""
577 self.name = name
578 self.ids = set()
579 self.explicit = 0
580 return
581
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 591 of file pydraw.py.

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

◆ dumname()

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

Definition at line 587 of file pydraw.py.

587 def dumname (self):
588 """Return the dummy variable name for this dummy."""
589 return "_dum_" + self.name
590

◆ get_ids()

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

Definition at line 599 of file pydraw.py.

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

◆ itname()

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

Definition at line 582 of file pydraw.py.

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

Member Data Documentation

◆ explicit

int python.pydraw._Loopvar.explicit = 0

Definition at line 579 of file pydraw.py.

◆ ids

python.pydraw._Loopvar.ids = set()

Definition at line 578 of file pydraw.py.

◆ name

python.pydraw._Loopvar.name = name

Definition at line 577 of file pydraw.py.


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