A Discrete-Event Network Simulator
API
check-style.PatchChunk Class Reference

PatchChunk class. More...

Public Member Functions

def __init__ (self, src_pos, dst_pos)
 Initializer. More...
 
def add_line (self, line)
 Add line function. More...
 
def dst (self)
 Get destination lines. More...
 
def dst_len (self)
 Get number of destinaton lines. More...
 
def src (self)
 Get source lines. More...
 
def src_len (self)
 Get number of source lines. More...
 
def src_start (self)
 Source start function. More...
 
def write (self, f)
 Write lines to file. More...
 

Private Attributes

 __dst_pos
 destination position More...
 
 __lines
 list of lines More...
 
 __src_pos
 source position More...
 

Detailed Description

PatchChunk class.

Definition at line 220 of file check-style.py.

Constructor & Destructor Documentation

◆ __init__()

def check-style.PatchChunk.__init__ (   self,
  src_pos,
  dst_pos 
)

Initializer.

Parameters
selfthis object
src_possource position
dst_posdestination position
Returns
none

Definition at line 231 of file check-style.py.

Member Function Documentation

◆ add_line()

def check-style.PatchChunk.add_line (   self,
  line 
)

Add line function.

Parameters
selfThe current class
lineline to add
Returns
none

Definition at line 247 of file check-style.py.

References check-style.PatchChunk.__lines.

◆ dst()

check-style.PatchChunk.dst (   self)

Get destination lines.

destination

Parameters
selfThe current class
Returns
the destination lines

Definition at line 264 of file check-style.py.

References check-style.PatchChunk.__lines.

Referenced by check-style.PatchChunk.dst_len().

+ Here is the caller graph for this function:

◆ dst_len()

def check-style.PatchChunk.dst_len (   self)

Get number of destinaton lines.

Parameters
selfThe current class
Returns
number of destination lines

Definition at line 280 of file check-style.py.

References FlameRtableTest.dst, HwmpRtableTest.dst, ns3::dot11s::HwmpProtocol::QueuedPacket.dst, check-style.PatchChunk.dst(), and ns3::ofi::SwitchPacketMetadata.dst.

Referenced by check-style.PatchChunk.write().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ src()

check-style.PatchChunk.src (   self)

Get source lines.

source

Parameters
selfThe current class
Returns
the source lines

Definition at line 254 of file check-style.py.

References check-style.PatchChunk.__lines.

Referenced by check-style.PatchChunk.src_len().

+ Here is the caller graph for this function:

◆ src_len()

def check-style.PatchChunk.src_len (   self)

Get number of source lines.

Parameters
selfThe current class
Returns
number of source lines

Definition at line 274 of file check-style.py.

References ns3::dot11s::HwmpProtocol::QueuedPacket.src, check-style.PatchChunk.src(), and ns3::ofi::SwitchPacketMetadata.src.

Referenced by check-style.PatchChunk.write().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ src_start()

def check-style.PatchChunk.src_start (   self)

Source start function.

Parameters
selfthis object
Returns
source position

Definition at line 241 of file check-style.py.

References check-style.PatchChunk.__src_pos.

◆ write()

def check-style.PatchChunk.write (   self,
  f 
)

Write lines to file.

Parameters
selfThe current class
ffile to write to
Returns
none

Definition at line 286 of file check-style.py.

References check-style.PatchChunk.__dst_pos, check-style.PatchChunk.__lines, check-style.PatchChunk.__src_pos, check-style.PatchChunk.dst_len(), and check-style.PatchChunk.src_len().

Referenced by visualizer.ipython_view.IPythonView.onKeyPressExtend().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ __dst_pos

check-style.PatchChunk.__dst_pos
private

destination position

Definition at line 240 of file check-style.py.

Referenced by check-style.PatchChunk.write().

◆ __lines

check-style.PatchChunk.__lines
private

◆ __src_pos

check-style.PatchChunk.__src_pos
private

source position

Definition at line 239 of file check-style.py.

Referenced by check-style.PatchChunk.src_start(), and check-style.PatchChunk.write().


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