Audacity 3.2.0
Public Types | Public Member Functions | Public Attributes | List of all members
anonymous_namespace{CellularPanel.cpp}::Adaptor Struct Reference
Inheritance diagram for anonymous_namespace{CellularPanel.cpp}::Adaptor:
[legend]
Collaboration diagram for anonymous_namespace{CellularPanel.cpp}::Adaptor:
[legend]

Public Types

using SimpleCellVisitor = CellularPanel::SimpleCellVisitor
 
using SimpleNodeVisitor = CellularPanel::SimpleNodeVisitor
 

Public Member Functions

 Adaptor (const SimpleCellVisitor &function_)
 
 Adaptor (const SimpleNodeVisitor &function_, bool pre_)
 
void VisitCell (const wxRect &rect, TrackPanelCell &cell) override
 
void BeginGroup (const wxRect &rect, TrackPanelGroup &group) override
 
void EndGroup (const wxRect &rect, TrackPanelGroup &group) override
 
- Public Member Functions inherited from CellularPanel::Visitor
virtual ~Visitor ()
 
virtual void VisitCell (const wxRect &rect, TrackPanelCell &cell)
 
virtual void BeginGroup (const wxRect &rect, TrackPanelGroup &group)
 
virtual void EndGroup (const wxRect &rect, TrackPanelGroup &group)
 

Public Attributes

SimpleNodeVisitor function
 
const bool pre { false }
 
const bool post { false }
 

Detailed Description

Definition at line 1035 of file CellularPanel.cpp.

Member Typedef Documentation

◆ SimpleCellVisitor

using anonymous_namespace{CellularPanel.cpp}::Adaptor::SimpleCellVisitor = CellularPanel::SimpleCellVisitor

Definition at line 1036 of file CellularPanel.cpp.

◆ SimpleNodeVisitor

using anonymous_namespace{CellularPanel.cpp}::Adaptor::SimpleNodeVisitor = CellularPanel::SimpleNodeVisitor

Definition at line 1037 of file CellularPanel.cpp.

Constructor & Destructor Documentation

◆ Adaptor() [1/2]

anonymous_namespace{CellularPanel.cpp}::Adaptor::Adaptor ( const SimpleCellVisitor function_)
inline

Definition at line 1040 of file CellularPanel.cpp.

1041 : function{ [&](const wxRect &rect, TrackPanelNode &cell) {
1042 return function_( rect, static_cast<TrackPanelCell&>(cell) );
1043 } }
1044 {}
The TrackPanel is built up of nodes, subtrees of the CellularPanel's area Common base class for Track...

◆ Adaptor() [2/2]

anonymous_namespace{CellularPanel.cpp}::Adaptor::Adaptor ( const SimpleNodeVisitor function_,
bool  pre_ 
)
inline

Definition at line 1048 of file CellularPanel.cpp.

Member Function Documentation

◆ BeginGroup()

void anonymous_namespace{CellularPanel.cpp}::Adaptor::BeginGroup ( const wxRect &  rect,
TrackPanelGroup group 
)
inlineoverridevirtual

Reimplemented from CellularPanel::Visitor.

Definition at line 1053 of file CellularPanel.cpp.

1054 { if (pre) return function( rect, group ); }

◆ EndGroup()

void anonymous_namespace{CellularPanel.cpp}::Adaptor::EndGroup ( const wxRect &  rect,
TrackPanelGroup group 
)
inlineoverridevirtual

Reimplemented from CellularPanel::Visitor.

Definition at line 1055 of file CellularPanel.cpp.

1056 { if (post) return function( rect, group ); }

◆ VisitCell()

void anonymous_namespace{CellularPanel.cpp}::Adaptor::VisitCell ( const wxRect &  rect,
TrackPanelCell cell 
)
inlineoverridevirtual

Reimplemented from CellularPanel::Visitor.

Definition at line 1051 of file CellularPanel.cpp.

1052 { return function( rect, cell ); }

Member Data Documentation

◆ function

SimpleNodeVisitor anonymous_namespace{CellularPanel.cpp}::Adaptor::function

Definition at line 1058 of file CellularPanel.cpp.

◆ post

const bool anonymous_namespace{CellularPanel.cpp}::Adaptor::post { false }

Definition at line 1059 of file CellularPanel.cpp.

◆ pre

const bool anonymous_namespace{CellularPanel.cpp}::Adaptor::pre { false }

Definition at line 1059 of file CellularPanel.cpp.


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