![]() |
ROOT
6.06/09
Reference Guide
|
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:| def ROOTaaS.iPyROOT.cppcompleter.CppCompleter.__init__ | ( | self | ) |
Definition at line 77 of file cppcompleter.py.
|
private |
Definition at line 109 of file cppcompleter.py.
Referenced by ROOTaaS.iPyROOT.cppcompleter.CppCompleter.complete().
|
private |
Definition at line 101 of file cppcompleter.py.
Referenced by ROOTaaS.iPyROOT.cppcompleter.CppCompleter._completeImpl().
|
private |
Definition at line 96 of file cppcompleter.py.
Referenced by ROOTaaS.iPyROOT.cppcompleter.CppCompleter._completeImpl().
| 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.
| ROOTaaS.iPyROOT.cppcompleter.CppCompleter.accessors |
Definition at line 81 of file cppcompleter.py.
Referenced by ROOTaaS.iPyROOT.cppcompleter.CppCompleter._getLastAccessorPos().
| ROOTaaS.iPyROOT.cppcompleter.CppCompleter.active |
Definition at line 79 of file cppcompleter.py.
Referenced by ROOTaaS.iPyROOT.cppcompleter.CppCompleter._getSuggestions(), ROOTaaS.iPyROOT.cppcompleter.CppCompleter.activate(), and ROOTaaS.iPyROOT.cppcompleter.CppCompleter.deactivate().
| 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 |
Definition at line 78 of file cppcompleter.py.
Referenced by ROOTaaS.iPyROOT.cppcompleter.CppCompleter._getSuggestions(), and ROOTaaS.iPyROOT.cppcompleter.CppCompleter.activate().