cisst-saw
|
Accessor macros. More...
Go to the source code of this file.
Macros | |
#define | _cmnAccessorMacros_h |
#define | CMN_DECLARE_MEMBER_AND_ACCESSORS_INTERNAL(memberType, memberName) |
#define | CMN_DECLARE_MEMBER_AND_ACCESSORS(memberType, memberName) CMN_DECLARE_MEMBER_AND_ACCESSORS_INTERNAL(memberType, memberName) |
Accessor macros.
#define _cmnAccessorMacros_h |
Author(s): Anton Deguet Created on: 2008-06-26
(C) Copyright 2008-2009 Johns Hopkins University (JHU), All Rights Reserved.
— begin cisst license - do not edit —
This software is provided "as is" under an open source license, with no warranty. The complete license can be found in license.txt and http://www.cisst.org/cisst/license.txt.
— end cisst license —
#define CMN_DECLARE_MEMBER_AND_ACCESSORS | ( | memberType, | |
memberName | |||
) | CMN_DECLARE_MEMBER_AND_ACCESSORS_INTERNAL(memberType, memberName) |
Macro to declare a data member and implement accessor methods. This macro creates 4 different accessors, two to read and two to write. For example, the following call:
will create the 4 following methods:
Finally, when used in conjunction with SWIG, the method Get is modified to return a value by const reference.
#define CMN_DECLARE_MEMBER_AND_ACCESSORS_INTERNAL | ( | memberType, | |
memberName | |||
) |
Macro used to declare a data member and implement accessor methods in a standard way. This macro should not be used, use CMN_DECLARE_MEMBER_AND_ACCESSORS instead.