Dot Functions and Functors

Dot Functions and Functors

For access to this article, please select a purchase option:

Buy chapter PDF
(plus tax if applicable)
Buy Knowledge Pack
10 chapters for £75.00
(plus taxes if applicable)

IET members benefit from discounts to all IET publications and free access to E&T Magazine. If you are an IET member, log in to your account and the discounts will automatically be applied.

Learn more about IET membership 

Recommend Title Publication to library

You must fill out fields marked with: *

Librarian details
Your details
Why are you recommending this title?
Select reason:
A Guide to MATLAB® Object-Oriented Programming — Recommend this title to your library

Thank you

Your recommendation has been sent to your librarian.

In this chapter, the author explores how dotreference member variable syntax might be used to call a member function. The first thing we need to investigate is operator conversion. We need to understand what happens to the arguments when MATLAB converts operator notation into a function call. We already have a good understanding of substruct, but we don't really know the variable types supported. Armed with this knowledge we will be able to tear down the wall that currently exists between member variables and member functions. This will allow us to investigate another common object-oriented specialty class, the functor.

Chapter Contents:

  • 22.1 When Dot-Reference Is Not a Reference
  • 22.2 When Array-Reference Is Not a Reference
  • 22.2.1 Functors
  • 22.2.2 Functor Handles
  • 22.2.3 Functor feval
  • 22.2.4 Additional Remarks Concerning Functors
  • 23.3 Test Drive
  • 22.4 Summary
  • 22.5 Independent Investigations

Inspec keywords: mathematics computing; object-oriented programming

Other keywords: function call; MATLAB; dotreference member variable syntax; member functions; functor

Subjects: Object-oriented programming; Mathematics computing

Preview this chapter:
Zoom in

Dot Functions and Functors, Page 1 of 2

| /docserver/preview/fulltext/books/pc/sbpc001e/SBPC001E_ch22-1.gif /docserver/preview/fulltext/books/pc/sbpc001e/SBPC001E_ch22-2.gif

Related content

This is a required field
Please enter a valid email address