📑 Table of Contents

A structural pattern is a software design pattern that encapsulates relationships between entities.

Examples

edit

Examples include:

Adapter pattern
Adapts one interface for a class into one that a client expects.
Adapter pipeline
Use multiple adapters for debugging purposes.[1]
Retrofit Interface Pattern
An adapter used as a new interface for multiple classes at the same time.[2][3]
Aggregate pattern
A version of the Composite pattern with methods for aggregation of children.
Bridge pattern
decouple an abstraction from its implementation so that the two can vary independently.
Tombstone
An intermediate lookup object contains the real location of an object.[4]
Composite pattern
A tree structure of objects where every object has the same interface.
Decorator pattern
Supports adding additional functionality to an object at runtime. Prevents issue where subclassing would result in an exponential rise of new classes.
Extensibility pattern
a.k.a. framework, Hides complex code behind a simple interface.
Facade pattern
Creates a simplified interface of an existing interface to ease usage for common tasks.
Flyweight pattern
A large quantity of objects share a common properties object to save space.
Marker interface pattern
An empty interface to associate metadata with a class.
Pipes and filters
A chain of processes where the output of each process is the input of the next.
Opaque pointer
A pointer to an undeclared or private type, to hide implementation details.
Proxy pattern
A class functioning as an interface to another thing.

See also

edit

References

edit
  1. ^ "Adapter Pipeline". Cunningham & Cunningham, Inc. 2010-12-31. Archived from the original on 2010-12-31. Retrieved 2012-07-20.
  2. ^ BobbyWoolf (2002-06-19). "Retrofit Interface Pattern". Cunningham & Cunningham, Inc. Archived from the original on 2002-06-19. Retrieved 2012-07-20.
  3. ^ MartinZarate (2010-12-31). "External Polymorphism". Cunningham & Cunningham, Inc. Archived from the original on 2010-12-31. Retrieved 2012-07-20.
  4. ^ "Tomb Stone". Cunningham & Cunningham, Inc. 2007-06-17. Archived from the original on 2007-06-17. Retrieved 2012-07-20.

📚 Artikel Terkait di Wikipedia

Pattern matching

science, pattern matching is the act of checking a given sequence of tokens for the presence of the constituents of some pattern. In contrast to pattern recognition

Structuralism

their relationship to a broader system. It works to uncover the structural patterns that underlie all things that humans do, think, perceive, and feel

Software design pattern

based on what kind of problem they solve. A creational pattern creates objects. A structural pattern organizes classes and objects to form larger structures

Concurrency pattern

Patterns Structural pattern Douglas C. Schmidt, Michael Stal, Hans Rohnert, Frank Buschmann "Pattern-Oriented Software Architecture, Volume 2, Patterns for

Behavioral pattern

to separate an algorithm from an object. Concurrency pattern Creational pattern Structural pattern "Externalize The Stack". c2.com. 2010-01-19. Archived

Syntactic pattern recognition

Syntactic pattern recognition, or structural pattern recognition, is a form of pattern recognition in which each object can be represented by a variable-cardinality

Storiform pattern

A woven or storiform pattern is a histopathologic architectural pattern. The name "storiform" originates from Latin storea 'woven', as storiform tissue

Switch statement

Structural Pattern Matching: Motivation and Rationale". Python Enhancement Proposals. Retrieved 2022-08-19. Moisset, Daniel F. "PEP 636 – Structural Pattern