Public Member Functions | Public Attributes | Static Public Attributes | List of all members
gtwrap.interface_parser.enum.Enum Class Reference

Public Member Functions

def __init__ (self, name, enumerators, parent='')
 
def __repr__ (self)
 
def cpp_typename (self)
 
def namespaces (self)
 

Public Attributes

 enumerators
 
 name
 
 parent
 

Static Public Attributes

 rule
 

Detailed Description

Rule to parse enums defined in the interface file.

E.g.
```
enum Kind {
    Dog,
    Cat
};
```

Definition at line 34 of file enum.py.

Constructor & Destructor Documentation

def gtwrap.interface_parser.enum.Enum.__init__ (   self,
  name,
  enumerators,
  parent = '' 
)

Definition at line 51 of file enum.py.

Member Function Documentation

def gtwrap.interface_parser.enum.Enum.__repr__ (   self)

Definition at line 69 of file enum.py.

def gtwrap.interface_parser.enum.Enum.cpp_typename (   self)
Return a Typename with the namespaces and cpp name of this
class.

Definition at line 60 of file enum.py.

def gtwrap.interface_parser.enum.Enum.namespaces (   self,
  list 
)
Get the namespaces which this class is nested under as a list.

Definition at line 56 of file enum.py.

Member Data Documentation

gtwrap.interface_parser.enum.Enum.enumerators

Definition at line 53 of file enum.py.

gtwrap.interface_parser.enum.Enum.name

Definition at line 52 of file enum.py.

gtwrap.interface_parser.enum.Enum.parent

Definition at line 54 of file enum.py.

gtwrap.interface_parser.enum.Enum.rule
static

Definition at line 47 of file enum.py.


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


gtsam
Author(s):
autogenerated on Sat May 8 2021 02:59:10