ROOT  6.06/09
Reference Guide
Public Member Functions | Public Attributes | Private Member Functions | List of all members
ROOTaaS.iPyROOT.cppcompleter.CppCompleter Class Reference

Completer which interfaces to the TTabCom of ROOT. It is activated
(deactivated) upon the load(unload) of the load of the extension.

>>> comp = CppCompleter()
>>> comp.activate()
>>> for suggestion in comp._completeImpl("TH1"):
...     print suggestion
TH1
TH1C
TH1D
TH1F
TH1I
TH1K
TH1S
>>> for suggestion in comp._completeImpl("TH2"):
...     print suggestion
TH2
TH2C
TH2D
TH2F
TH2GL
TH2I
TH2Poly
TH2PolyBin
TH2S
>>> garbage = ROOT.gInterpreter.ProcessLine("TH1F* h")
>>> for suggestion in comp._completeImpl("h->GetA"):
...     print suggestion
h->GetArray
h->GetAsymmetry
h->GetAt
h->GetAxisColor
>>> for suggestion in comp._completeImpl("TROOT::Is"):
...     print suggestion
IsA
IsBatch
IsEqual
IsEscaped
IsExecutingMacro
IsFolder
IsInterrupted
IsLineProcessing
IsModified
IsOnHeap
IsProofServ
IsRootFile
IsSortable
IsWritable
IsZombie
>>> comp.deactivate()
>>> for suggestion in comp._completeImpl("TG"):
...     print suggestion

Definition at line 21 of file cppcompleter.py.

Public Member Functions

def __init__ (self)
 
def activate (self)
 
def deactivate (self)
 
def complete (self, ip, event)
 

Public Attributes

 hook
 
 active
 
 firstActivation
 
 accessors
 

Private Member Functions

def _getSuggestions (self, line)
 
def _getLastAccessorPos (self, line)
 
def _completeImpl (self, line)
 
+ Inheritance diagram for ROOTaaS.iPyROOT.cppcompleter.CppCompleter:
+ Collaboration diagram for ROOTaaS.iPyROOT.cppcompleter.CppCompleter:

Constructor & Destructor Documentation

def ROOTaaS.iPyROOT.cppcompleter.CppCompleter.__init__ (   self)

Definition at line 77 of file cppcompleter.py.

Member Function Documentation

def ROOTaaS.iPyROOT.cppcompleter.CppCompleter._completeImpl (   self,
  line 
)
private

Definition at line 109 of file cppcompleter.py.

Referenced by ROOTaaS.iPyROOT.cppcompleter.CppCompleter.complete().

def ROOTaaS.iPyROOT.cppcompleter.CppCompleter._getLastAccessorPos (   self,
  line 
)
private
def ROOTaaS.iPyROOT.cppcompleter.CppCompleter._getSuggestions (   self,
  line 
)
private
def ROOTaaS.iPyROOT.cppcompleter.CppCompleter.activate (   self)

Definition at line 83 of file cppcompleter.py.

def ROOTaaS.iPyROOT.cppcompleter.CppCompleter.complete (   self,
  ip,
  event 
)
Autocomplete interfacing to TTabCom. If an accessor of a scope is
present in the line, the suggestions are prepended with the line.
That's how completers work. For example:
myGraph.Set<tab> will return "myGraph.Set+suggestion in the list of
suggestions.

Definition at line 119 of file cppcompleter.py.

def ROOTaaS.iPyROOT.cppcompleter.CppCompleter.deactivate (   self)

Definition at line 93 of file cppcompleter.py.

Member Data Documentation

ROOTaaS.iPyROOT.cppcompleter.CppCompleter.accessors
ROOTaaS.iPyROOT.cppcompleter.CppCompleter.active
ROOTaaS.iPyROOT.cppcompleter.CppCompleter.firstActivation

Definition at line 80 of file cppcompleter.py.

Referenced by ROOTaaS.iPyROOT.cppcompleter.CppCompleter.activate().

ROOTaaS.iPyROOT.cppcompleter.CppCompleter.hook

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