Public Member Functions | Public Attributes | Static Public Attributes | List of all members
gtwrap.interface_parser.classes.Operator Class Reference

Public Member Functions

def __init__
 
def __repr__ (self)
 

Public Attributes

 args
 
 is_const
 
 is_unary
 
 name
 
 operator
 
 parent
 
 return_type
 

Static Public Attributes

tuple rule
 

Detailed Description

Rule for parsing operator overloads.

E.g.
```
class Overload {
    Vector2 operator+(const Vector2 &v) const;
};

Definition at line 142 of file classes.py.

Constructor & Destructor Documentation

def gtwrap.interface_parser.classes.Operator.__init__ (   self,
  name 
)

Definition at line 165 of file classes.py.

Member Function Documentation

def gtwrap.interface_parser.classes.Operator.__repr__ (   self,
  str 
)

Definition at line 195 of file classes.py.

Member Data Documentation

gtwrap.interface_parser.classes.Operator.args

Definition at line 174 of file classes.py.

gtwrap.interface_parser.classes.Operator.is_const

Definition at line 175 of file classes.py.

gtwrap.interface_parser.classes.Operator.is_unary

Definition at line 176 of file classes.py.

gtwrap.interface_parser.classes.Operator.name

Definition at line 171 of file classes.py.

gtwrap.interface_parser.classes.Operator.operator

Definition at line 172 of file classes.py.

gtwrap.interface_parser.classes.Operator.parent

Definition at line 178 of file classes.py.

gtwrap.interface_parser.classes.Operator.return_type

Definition at line 173 of file classes.py.

tuple gtwrap.interface_parser.classes.Operator.rule
static
Initial value:
1 = (
2  ReturnType.rule("return_type") #
3  + Literal("operator")("name") #
4  + OPERATOR("operator") #
5  + LPAREN #
6  + ArgumentList.rule("args_list") #
7  + RPAREN #
8  + CONST("is_const") #
9  + SEMI_COLON # BR
10  ).setParseAction(lambda t: Operator(t.name, t.operator, t.return_type, t.
11  args_list, t.is_const))

Definition at line 152 of file classes.py.


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


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