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

Public Member Functions

def __init__ (self, str name, str operator, ReturnType return_type, ArgumentList args, str is_const, Union["Class", Any] parent='')
 
str __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 153 of file interface_parser/classes.py.

Constructor & Destructor Documentation

◆ __init__()

def gtwrap.interface_parser.classes.Operator.__init__ (   self,
str  name,
str  operator,
ReturnType  return_type,
ArgumentList  args,
str  is_const,
Union["Class", Any]   parent = '' 
)

Definition at line 175 of file interface_parser/classes.py.

Member Function Documentation

◆ __repr__()

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

Definition at line 206 of file interface_parser/classes.py.

Member Data Documentation

◆ args

gtwrap.interface_parser.classes.Operator.args

Definition at line 179 of file interface_parser/classes.py.

◆ is_const

gtwrap.interface_parser.classes.Operator.is_const

Definition at line 180 of file interface_parser/classes.py.

◆ is_unary

gtwrap.interface_parser.classes.Operator.is_unary

Definition at line 181 of file interface_parser/classes.py.

◆ name

gtwrap.interface_parser.classes.Operator.name

Definition at line 176 of file interface_parser/classes.py.

◆ operator

gtwrap.interface_parser.classes.Operator.operator

Definition at line 177 of file interface_parser/classes.py.

◆ parent

gtwrap.interface_parser.classes.Operator.parent

Definition at line 183 of file interface_parser/classes.py.

◆ return_type

gtwrap.interface_parser.classes.Operator.return_type

Definition at line 178 of file interface_parser/classes.py.

◆ rule

tuple gtwrap.interface_parser.classes.Operator.rule
static
Initial value:
= (
ReturnType.rule("return_type") #
+ Literal("operator")("name") #
+ OPERATOR("operator") #
+ LPAREN #
+ ArgumentList.rule("args_list") #
+ RPAREN #
+ CONST("is_const") #
+ SEMI_COLON # BR
).setParseAction(lambda t: Operator(t.name, t.operator, t.return_type, t.
args_list, t.is_const))

Definition at line 163 of file interface_parser/classes.py.


The documentation for this class was generated from the following file:
gtwrap.interface_parser.tokens.OPERATOR
OPERATOR
Definition: tokens.py:71
gtwrap.interface_parser.tokens.CONST
CONST
Definition: tokens.py:42


gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:16:45