top | up | prev | next

Operation Abstract Class

Definition at line 12 of Operation.hpp

Member Functions

FunctionSymbol* Create() const pure virtual
FunctionSymbol* Get(std::vector<Operation*>& operations)
void Release()

Member Variables

std::unique_ptr<FunctionSymbol> fun

Member Function Details

Create Member Function

FunctionSymbol * cmajor::symbols::Operation::Create() const pure virtual

Definition at line 30 of Operation.hpp

Called by: cmajor::symbols::Operation::Get


Get Member Function

FunctionSymbol * cmajor::symbols::Operation::Get(std::vector<Operation *>& operations)

Definition at line 16 of Operation.hpp :
17 {
18     if (!fun)
19     {
20         fun.reset(Create());
21         operations.push_back(this);
22     }
23     return fun.get();
24 }


Calls: cmajor::symbols::Operation::Create


Release Member Function

void cmajor::symbols::Operation::Release()

Definition at line 25 of Operation.hpp :
26 {
27     fun.reset();
28 }



top | up | prev | next