EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
eicpy.cpplint.CleansedLines Class Reference
+ Inheritance diagram for eicpy.cpplint.CleansedLines:
+ Collaboration diagram for eicpy.cpplint.CleansedLines:

Public Member Functions

def __init__
 
def NumLines
 

Public Attributes

 elided
 
 lines
 
 raw_lines
 
 num_lines
 

Static Private Member Functions

def _CollapseStrings
 

Detailed Description

Holds 3 copies of all lines with different preprocessing applied to them.

1) elided member contains lines without strings and comments,
2) lines member contains lines without comments, and
3) raw_lines member contains all the lines without processing.
All these three members are of <type 'list'>, and of the same length.

Definition at line 988 of file cpplint.py.

View newest version in sPHENIX GitHub at line 988 of file cpplint.py

Constructor & Destructor Documentation

def eicpy.cpplint.CleansedLines.__init__ (   self,
  lines 
)

Definition at line 997 of file cpplint.py.

View newest version in sPHENIX GitHub at line 997 of file cpplint.py

Member Function Documentation

def eicpy.cpplint.CleansedLines._CollapseStrings (   elided)
staticprivate
Collapses strings and chars on a line to simple "" or '' blocks.

We nix strings first so we're not fooled by text like '"http://"'

Args:
  elided: The line being processed.

Returns:
  The line with collapsed strings.

Definition at line 1012 of file cpplint.py.

View newest version in sPHENIX GitHub at line 1012 of file cpplint.py

def eicpy.cpplint.CleansedLines.NumLines (   self)
Returns the number of lines represented.

Definition at line 1007 of file cpplint.py.

View newest version in sPHENIX GitHub at line 1007 of file cpplint.py

References eicpy.cpplint.CleansedLines.num_lines.

Member Data Documentation

eicpy.cpplint.CleansedLines.elided

Definition at line 998 of file cpplint.py.

View newest version in sPHENIX GitHub at line 998 of file cpplint.py

eicpy.cpplint.CleansedLines.lines

Definition at line 999 of file cpplint.py.

View newest version in sPHENIX GitHub at line 999 of file cpplint.py

eicpy.cpplint.CleansedLines.num_lines

Definition at line 1001 of file cpplint.py.

View newest version in sPHENIX GitHub at line 1001 of file cpplint.py

Referenced by eicpy.cpplint.CleansedLines.NumLines().

eicpy.cpplint.CleansedLines.raw_lines

Definition at line 1000 of file cpplint.py.

View newest version in sPHENIX GitHub at line 1000 of file cpplint.py


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