Scarab  v2.9.1
Project 8 C++ Utility Library
Public Member Functions | Public Attributes | Private Attributes | List of all members
BaseEnumeration Class Reference
Inheritance diagram for BaseEnumeration:
Inheritance graph

Public Member Functions

def __init__ (self, value)
 
def from_param (self)
 
def name (self)
 
def from_id (cls, id)
 
def __repr__ (self)
 

Public Attributes

 value
 

Private Attributes

 _name_map
 

Detailed Description

Common base class for named enumerations held in sync with Index.h values.

Subclasses must define their own _kinds and _name_map members, as:
_kinds = []
_name_map = None
These values hold the per-subclass instances and value-to-name mappings,
respectively.

Definition at line 516 of file cindex.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  value 
)

Definition at line 528 of file cindex.py.

Member Function Documentation

◆ __repr__()

def __repr__ (   self)

Definition at line 558 of file cindex.py.

◆ from_id()

def from_id (   cls,
  id 
)

Definition at line 553 of file cindex.py.

◆ from_param()

def from_param (   self)

Definition at line 539 of file cindex.py.

◆ name()

def name (   self)
Get the enumeration name of this cursor kind.

Definition at line 543 of file cindex.py.

Member Data Documentation

◆ _name_map

_name_map
private

Definition at line 546 of file cindex.py.

◆ value

value

Definition at line 534 of file cindex.py.


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