ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Public Attributes | Private Member Functions | List of all members
JupyROOT.kernel.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 35 of file cppcompleter.py.

Public Member Functions

def __init__
 
def activate
 
def deactivate
 
def complete
 

Public Attributes

 hook
 
 active
 
 firstActivation
 
 accessors
 
 Declarer
 
 Executor
 

Private Member Functions

def _getSuggestions
 
def _getLastAccessorPos
 
def _completeImpl
 
Inheritance diagram for JupyROOT.kernel.cppcompleter.CppCompleter:
[legend]

Constructor & Destructor Documentation

def JupyROOT.kernel.cppcompleter.CppCompleter.__init__ (   self)

Definition at line 91 of file cppcompleter.py.

Member Function Documentation

def JupyROOT.kernel.cppcompleter.CppCompleter._completeImpl (   self,
  line 
)
private

Definition at line 125 of file cppcompleter.py.

Referenced by JupyROOT.kernel.cppcompleter.CppCompleter.complete().

def JupyROOT.kernel.cppcompleter.CppCompleter._getLastAccessorPos (   self,
  line 
)
private
def JupyROOT.kernel.cppcompleter.CppCompleter._getSuggestions (   self,
  line 
)
private
def JupyROOT.kernel.cppcompleter.CppCompleter.activate (   self)

Definition at line 99 of file cppcompleter.py.

def JupyROOT.kernel.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 135 of file cppcompleter.py.

def JupyROOT.kernel.cppcompleter.CppCompleter.deactivate (   self)

Definition at line 109 of file cppcompleter.py.

Member Data Documentation

JupyROOT.kernel.cppcompleter.CppCompleter.accessors
JupyROOT.kernel.cppcompleter.CppCompleter.active
JupyROOT.kernel.cppcompleter.CppCompleter.Declarer

Definition at line 96 of file cppcompleter.py.

Referenced by JupyROOT.kernel.cppcompleter.CppCompleter.activate().

JupyROOT.kernel.cppcompleter.CppCompleter.Executor
JupyROOT.kernel.cppcompleter.CppCompleter.firstActivation

Definition at line 94 of file cppcompleter.py.

Referenced by JupyROOT.kernel.cppcompleter.CppCompleter.activate().

JupyROOT.kernel.cppcompleter.CppCompleter.hook
Collaboration diagram for JupyROOT.kernel.cppcompleter.CppCompleter:
[legend]

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